Skip to contentSkip to conversation

w83627dhg chip - stopping fan rotation?

lm-sensors Rudolf Marek 3 participants 4 messages Dec 29, 2007 – Jan 2, 2008

lore
Share & tools
lore
#0 lore raw

Hi Casper,

Please CC the list too.

Casper Gripenberg napsal(a):

Quoted 42 lines

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:

Quoted 2 lines

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
Quoted 1 line

cat fan2_input

1132

The speed looks correct. I have a large slow fan. Next:

Quoted 4 lines

echo 0 > pwm1
echo 0 > pwm2
echo 0 > pwm3
cat pwm1 pwm2 pwm3

Quoted 7 lines

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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 2 lines · Rudolf Marek

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.

Quoted 1 line

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 :(

Quoted 5 lines

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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Rudolf Marek

Hi Casper,

Quoted 7 lines · Casper Gripenberg
Quoted 2 lines · Rudolf Marek

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...

Quoted 5 lines
Quoted 1 line

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.

Quoted 7 lines
Quoted 6 lines

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

Quoted 7 lines

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.

Quoted 4 lines

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
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Rudolf Marek
Quoted 7 lines · Jean Delvare

[...]
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

Quoted 2 lines

--
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors