From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helmut Grohne Date: Wed, 12 Mar 2008 01:14:32 +0000 Subject: [lm-sensors] serious w83627ehf problem stopping cpu fan Message-Id: <20080312011430.GA20751@alf.mars> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org Hi, (I'm posting from outside, so please CC me on a reply.) Some time ago I updated my kernel to 2.6.23.14 (vanilla) from something pre-20. My system has a w83627ehf chip (the chip is labeled like that) and the support for this chip seemed to have improved. However my cpu fan "occasionally" stops spinning. This happened three times at the time of this writing. It seems to happen when the system is completely idle. As a result the cpu heats up and maybe destroying or damaging itself over time. This is BAD! I therefore tried to play with the /sys/devices/platform/w83627ehf.*/ interface. Changing the files pwm2* "sometimes" has an barely predictable effect on the cpu fan. I was for instance able to start the fan again by writing 2 to pwm2_enable the last time it stopped. However I cannot disable the fan now by writing 0 to pwm2 which sometimes worked before. Most of my writing data to these files seems to get ignored. The only thing I really need now is a stable cpu fan. Can I somehow lock it to maximum speed or something similar? Can I somehow run w83627ehf with reduced functionality (like no longer modifying the fan at all)? Please help me debug this. Do you want any other information not found below? Helmut Grohne root@# i2cdetect ... Installed I2C busses: i2c-0 smbus SMBus Via Pro adapter at 5000 root@# i2cdetect 0 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0. I will probe address range 0x03-0x77. Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: 50 51 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- 69 -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@# isadump 0x295 0x296 WARNING! Running this program can cause system crashes, data loss and worse! I will probe address register 0x295 and data register 0x296. Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: 01 01 01 ff 03 00 01 30 01 b1 01 01 3c 3c 01 01 10: 01 ff 10 01 00 01 01 3c 43 07 00 00 57 00 00 c7 20: 98 e4 cf cf ff c7 c7 26 ff 04 ff 01 00 01 df fd 30: ef 5f b6 01 dc 01 01 01 ed 01 28 01 05 01 1f ff 40: 01 ff a8 de ff ff 00 f0 2d ff 40 c1 10 15 01 a3 50: 2c 00 00 01 00 50 00 ff ff ff ff ff ff ff ff ff 60: 01 ff 40 01 01 01 3c ff 01 ff 01 ff ff ff ff ff 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff root@# cat sensor_fix.sh #!/bin/bash # this script is now invoked every 5 minutes from cron to try and fix # the fan automatically. cd /sys/devices/platform/w83627ehf.* || exit 1 test $( pwm2_enable sleep 1 test $( pwm2 sleep 1 test $( pwm2_enable sleep 1 test $( pwm2 sleep 1 test $( pwm2_target sleep 1 test $(