Ticket #2305 (closed defect: worksforme)
pwmconfig and fancontrol incorrectly report "hwmon1/device/pwm1 stuck to 0"
|Reported by:||ticket||Owned by:||khali|
On my system running linux 2.6.24-11 on an Asus A8V-E SE motherboard with a w83627ehf sensor chip, I see "hwmon1/device/pwmN stuck to 0" for N=1 to 3 when I run pwmconfig from lm_sensors-3.0.1. However, I have no problem setting /sys/class/hwmon/hwmon1/device/pwm1 to any value from 0 to 255 using echo and it stays there.
Even stranger, adding a single echo command to the pwmdisable function in the pwmconfig script causes it to work correctly. It does not seem to be a timing problem, since replacing the echo with "sleep 1" doesn't have the same effect. Adding the single echo to the fancontrol script's pwmdisable function allows it to reset the fan to full speed when it is killed.
I have no idea what is causing this problem or why adding a single echo to the script fixes it. I'm not even sure if it should be considered a bug in the scripts, the kernel driver, or what. I only discovered the fix because I added an echo line for debugging.