All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] CPU fan with full speed
Date: Mon, 02 Jul 2012 02:09:16 +0000	[thread overview]
Message-ID: <20120702020916.GA16341@roeck-us.net> (raw)
In-Reply-To: <jsm40t$qk8$1@dough.gmane.org>

On Mon, Jul 02, 2012 at 03:28:19AM +0200, Philipp Kraus wrote:
> On 2012-07-02 03:14:03 +0200, Philipp Kraus said:
> 
> >On 2012-06-30 21:24:59 +0200, Guenter Roeck said:
> >
> >>On Sat, Jun 30, 2012 at 07:27:49PM +0200, Philipp Kraus wrote:
> >>>On 2012-06-30 19:03:44 +0200, Guenter Roeck said:
> >>>
> >>>>On Sat, Jun 30, 2012 at 06:04:53PM +0200, Philipp Kraus wrote:
> >>>>>On 2012-06-30 17:33:38 +0200, Guenter Roeck said:
> >>>>>
> >>>>>>On Sat, Jun 30, 2012 at 04:37:28PM +0200, Philipp Kraus wrote:
> >>>>>>>
> >>>>>>>the grep command shows
> >>>>>>>grep: /sys/class/hwmon/hwmon1/device/driver: Is a directory
> >>>>>>>grep: /sys/class/hwmon/hwmon1/device/hwmon: Is a directory
> >>>>>>>grep: /sys/class/hwmon/hwmon1/device/power: Is a directory
> >>>>>>>grep: /sys/class/hwmon/hwmon1/device/subsystem: Is a directory
> >>>>>>>
> >>>>>>>and within the directory are the in*, pwm* temp* files
> >>>>>>>
> >>>>>>Not sure I understand.
> >>>>>>
> >>>>>>I'll need the names and output for the pwm* and temp* files. They
> >>>>>>_should_ be in
> >>>>>>/sys/class/hwmon/hwmon1/device/pwm* and /sys/class/hwmon/hwmon1/device/temp*.
> >>>>>
> >>>>>the command grep /sys.... does not work, I have run an ls -l and
> >>>>
> >>>>Phil,
> >>>>
> >>>>It wasn't "grep /sys/...", it was "grep . /sys/class/hwmon/hwmon1/device/*".
> >>>>The "." is important. Your output gives me the file names, but I need names and
> >>>>content, not names and permissions.
> >>>
> >>>Sorry, my mistake, I haven't seen that it ist "grep . <space> /sys..."
> >>>Hope this the correct output now
> >>>
> >>>/sys/class/hwmon/hwmon1/device/pwm1:252
> >>
> >>Looks like all pwm values report the "default" pwm value.
> >>
> >>>/sys/class/hwmon/hwmon1/device/temp1_auto_channels_pwm:1
> >>
> >>If I understand the code and the data sheet correectly, this attribute
> >>is a bit map used to map a temperature source to one or multiple fans.
> >>And it looks like all temperature sources are mapped to fan1, which
> >>in turn means that effectively temp4 controls the speed of fan1 (the highest
> >>temperature determines the fan speed), and all other fans are not mapped to
> >>a temperature input.
> >>
> >>What you should probably do is to find the association between tempX and pwmX
> >>and program tempX_auto_channels_pwm such that the two map.
> >>For example, if temp1
> >>is the CPU1 temperature, and pwm4 (fan4) is connected to the CPU1 fan, write
> >>0b00001000 = 0x08 into /sys/class/hwmon/hwmon1/device/temp1_auto_channels_pwm.
> >>Similar, if temp2 is the CPU2 temperature and fan5/pwm5 controls its fan,
> >>write 0x10 (\x16) into /sys/class/hwmon/hwmon1/device/temp2_auto_channels_pwm.
> >
> >You are write, temp1 and temp2 are the values for the CPU 1 and CPU 2.
> >The fans for the CPU
> >are fan7 = CPU 1 and fan8 = CPU 2
> >
> >Can you explane me in detail how you create the map 0b00001000 = 0x08 ?
> >I think 0x08 = 0x8 = 8 is a hexadecimal value but is this 0b00001000
> >also a hexadecimal value, in this case both values are not equal !?
> >Should I write with echo -e "\x8" >
> >/sys/class/hwmon/hwmon1/device/temp1_auto_channels_pwm ?
> >
> >IMHO I must enable (1) the n-th bit on the auto_channels_pwm value for
> >the n-th fan, so in my configuration the 7 and 8 bit (begin = 0)?
> 
> I have set with
> echo 128 >  /sys/class/hwmon/hwmon1/device/temp1_auto_channels_pwm
> echo 256 >  /sys/class/hwmon/hwmon1/device/temp2_auto_channels_pwm
> 
> the 7th and 8th fan-bit but nothing is changed
> 
Does pwm7 and pwm8 still report 252 ? If so, we must be missing something.

What do you get if you read back
/sys/class/hwmon/hwmon1/device/temp1_auto_channels_pwm and
/sys/class/hwmon/hwmon1/device/temp2_auto_channels_pwm ?

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2012-07-02  2:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-30  5:52 [lm-sensors] CPU fan with full speed Philipp Kraus
2012-06-30 13:41 ` Guenter Roeck
2012-06-30 14:06 ` Philipp Kraus
2012-06-30 14:21 ` Guenter Roeck
2012-06-30 14:37 ` Philipp Kraus
2012-06-30 15:33 ` Guenter Roeck
2012-06-30 16:04 ` Philipp Kraus
2012-06-30 17:03 ` Guenter Roeck
2012-06-30 17:27 ` Philipp Kraus
2012-06-30 19:24 ` Guenter Roeck
2012-06-30 22:46 ` Michael Zintakis
2012-07-01  0:06 ` Philipp Kraus
2012-07-01  0:24 ` Guenter Roeck
2012-07-01  0:31 ` Guenter Roeck
2012-07-01  3:46 ` Michael Zintakis
2012-07-01  4:53 ` Guenter Roeck
2012-07-01 10:03 ` Michael Zintakis
2012-07-02  1:14 ` Philipp Kraus
2012-07-02  1:28 ` Philipp Kraus
2012-07-02  2:09 ` Guenter Roeck [this message]
2012-07-02  2:09 ` Guenter Roeck
2012-07-02  3:25 ` Philipp Kraus
2012-07-02 15:02 ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120702020916.GA16341@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.