All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [lm-sensors] w83627dhg chip - stopping fan rotation?
@ 2007-12-29 20:25 Rudolf Marek
  2007-12-29 21:07 ` Casper Gripenberg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rudolf Marek @ 2007-12-29 20:25 UTC (permalink / raw)
  To: lm-sensors

Hi Casper,

Please CC the list too.

Casper Gripenberg napsal(a):
> 
> Hi,
> 
> I'm kind of stuck with this fan problem, and I was wondering
> if anyone of you might know what the problem is, or where or
> how I could troubleshoot it further:
> 
> I have an ASUS P5B-V mb with a W83627DHG chip. My lsmod
> says:
> 
> w83627ehf              19984  0
> i2c_isa                 5248  1 w83627ehf
> i2c_core               26112  2 w83627ehf,i2c_isa
> 
> I'm trying to stop the chassis fan, or actually any
> fan connected to the motheboard without much success.
> I tried to read the docs you wrote which say to write
> 0 into pwm[1-4] to get the fans to stop.
> 
> So I do this:
> 
>  > cd /sys/class/hwmon/hwmon0/device
>  > ls fan* pwm*
> fan1_alarm  fan3_input       pwm1_stop_time   pwm3
> fan1_div    fan3_min         pwm1_target      pwm3_enable
> fan1_input  fan5_alarm       pwm1_tolerance   pwm3_min_output
> fan1_min    fan5_div         pwm2             pwm3_mode
> fan2_alarm  fan5_input       pwm2_enable      pwm3_stop_time
> fan2_div    fan5_min         pwm2_min_output  pwm3_target
> fan2_input  pwm1             pwm2_mode        pwm3_tolerance
> fan2_min    pwm1_enable      pwm2_stop_time
> fan3_alarm  pwm1_min_output  pwm2_target
> fan3_div    pwm1_mode        pwm2_tolerance
>  > cat fan2_input
> 1132
> 
> The speed looks correct. I have a large slow fan. Next:
> 
>  > echo 0 > pwm1
>  > echo 0 > pwm2
>  > echo 0 > pwm3
>  > cat pwm1 pwm2 pwm3
> 0
> 0
> 0
> 
> But the fans just keep on spinning. Why? Did I do something
> wrong or any ideas why I can't stop the fans? Can I somehow
> troubleshoot this further?

Perhaps you have still some kind of automatic mode maybe. What does
cat pwm?_enable print?

echo 1 > pwm1_enable will switch it to manual mode.

You need to set there manual mode first. Imho you can try first with pwmconfig 
script which is doing that for you. Addtitionally you may check documentation 
for the chip in kernel Documentation/hwmon/w83627ehf

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/hwmon/w83627ehf;hÌc2bcb610686aaf44a0d38c5f67db44e8985e82;hb=HEAD

Going for a holiday now, hope others will answer. Oh yeah I have written it for 
third time now ;)

Rudolf

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] w83627dhg chip - stopping fan rotation?
  2007-12-29 20:25 [lm-sensors] w83627dhg chip - stopping fan rotation? Rudolf Marek
@ 2007-12-29 21:07 ` Casper Gripenberg
  2008-01-02 14:06 ` Jean Delvare
  2008-01-02 14:17 ` Casper Gripenberg
  2 siblings, 0 replies; 4+ messages in thread
From: Casper Gripenberg @ 2007-12-29 21:07 UTC (permalink / raw)
  To: lm-sensors

Rudolf Marek wrote:
> Perhaps you have still some kind of automatic mode maybe. What does
> cat pwm?_enable print?

If I enable Asus Q-Fan (automatic fan control) from the
BIOS then pwm?_enable prints 2. If I disable it then it
prints 1.

> echo 1 > pwm1_enable will switch it to manual mode.

Ok. I tried this both with automatic control enabled in
the BIOS and disabled. And then I tried again to echo
0 into pwm[1-4] with either mode. Nothing :(

> You need to set there manual mode first. Imho you can try first with 
> pwmconfig script which is doing that for you. Addtitionally you may 
> check documentation for the chip in kernel Documentation/hwmon/w83627ehf
> 
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/hwmon/w83627ehf;hÌc2bcb610686aaf44a0d38c5f67db44e8985e82;hb=HEAD 

Thanks for the link. Seems the one that comes with my distro
(Ubuntu 7.10) was a bit outdated.

I also have files called pwm?_mode, which are not explained
in the docs. I'm guessing these set either DC or pulse control
of the fan output. I tried modifying the values here too (either
0 or 1 was accepted). Didn't help either :-/

Anything else I could try?

Thanks.

Casper

Btw. with ASUS Q-Fan enabled the fans do spin down, so at
least the Q-Fan thing is working. But manual control not..





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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] w83627dhg chip - stopping fan rotation?
  2007-12-29 20:25 [lm-sensors] w83627dhg chip - stopping fan rotation? Rudolf Marek
  2007-12-29 21:07 ` Casper Gripenberg
@ 2008-01-02 14:06 ` Jean Delvare
  2008-01-02 14:17 ` Casper Gripenberg
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2008-01-02 14:06 UTC (permalink / raw)
  To: lm-sensors


Hi Casper,

Le 29/12/2007, Casper Gripenberg a écrit:

>Rudolf Marek wrote:
>> Perhaps you have still some kind of automatic mode maybe. What does
>> cat pwm?_enable print?
>
>If I enable Asus Q-Fan (automatic fan control) from the
>BIOS then pwm?_enable prints 2. If I disable it then it
>prints 1.

As expected...

>> echo 1 > pwm1_enable will switch it to manual mode.
>
>Ok. I tried this both with automatic control enabled in
>the BIOS and disabled. And then I tried again to echo
>0 into pwm[1-4] with either mode. Nothing :(

That's strange.

>> You need to set there manual mode first. Imho you can try first with
>> pwmconfig script which is doing that for you. Addtitionally you may
>> check documentation for the chip in kernel
>> Documentation/hwmon/w83627ehf
>>
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/hwmon/w83627ehf;hÌc2bcb610686aaf44a0d38c5f67db44e8985e82;hb=HEAD
>
>Thanks for the link. Seems the one that comes with my distro
>(Ubuntu 7.10) was a bit outdated.
>
>I also have files called pwm?_mode, which are not explained
>in the docs. I'm guessing these set either DC or pulse control
>of the fan output. I tried modifying the values here too (either
>0 or 1 was accepted). Didn't help either :-/

These are standard sysfs files, they are described in
Documentation/hwmon/sysfs-interface. The external circuitry needed by
each mode is different, so you shouldn't change the mode. The only
reason why these files are writable is in case the BIOS did not properly
setup the control mode, but that's not the case for you.

>Anything else I could try?
>(...)
>Btw. with ASUS Q-Fan enabled the fans do spin down, so at
>least the Q-Fan thing is working. But manual control not..

If the automatic mode (Q-Fan as Asus names it) works, it means that the
chip is properly setup and the hardware is OK (both the board and the
fans.) I have to admit that I have no idea why manual mode doesn't work
then. But OTOH it seems that you are using a relatively old version of
the driver, maybe that's an old bug causing the problem. If you have
the opportunity to test with a recent live distribution (i.e. kernel >2.6.23), please give it a try.

--
Jean Delvare

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [lm-sensors] w83627dhg chip - stopping fan rotation?
  2007-12-29 20:25 [lm-sensors] w83627dhg chip - stopping fan rotation? Rudolf Marek
  2007-12-29 21:07 ` Casper Gripenberg
  2008-01-02 14:06 ` Jean Delvare
@ 2008-01-02 14:17 ` Casper Gripenberg
  2 siblings, 0 replies; 4+ messages in thread
From: Casper Gripenberg @ 2008-01-02 14:17 UTC (permalink / raw)
  To: lm-sensors

Jean Delvare wrote:
 > [...]
> If the automatic mode (Q-Fan as Asus names it) works, it means that the
> chip is properly setup and the hardware is OK (both the board and the
> fans.) I have to admit that I have no idea why manual mode doesn't work
> then. But OTOH it seems that you are using a relatively old version of
> the driver, maybe that's an old bug causing the problem. If you have
> the opportunity to test with a recent live distribution (i.e. kernel >> 2.6.23), please give it a try.

Thanks. I'm going settle for Q-Fan for now. It works reasonably
well for my purpose. I guess it could also be that when you
disable Q-Fan Asus forces the fans to max speed no matter what.
Although it does seem a little strange. With Q-Fan enabled I can
see the pwm values fluctuate, so the driver is peeking at the
values in the right place. But if / when I get the kernel updated
I will give it another go and report my findings. Thanks for
the help.

Casper

> --
> Jean Delvare


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-02 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-29 20:25 [lm-sensors] w83627dhg chip - stopping fan rotation? Rudolf Marek
2007-12-29 21:07 ` Casper Gripenberg
2008-01-02 14:06 ` Jean Delvare
2008-01-02 14:17 ` Casper Gripenberg

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.