Hello, if system running fancontrol is suspended and resumed, fancontrol will abort, as writing the pwm value will fail because of pwm control being set to automatic control after the resume (google for 'fancontrol suspend' for various discussions about this). The attached patch fixes the problem. I'm not subscribed, so please CC me on any possible replies. -- Lubos Lunak
--- prog/pwm/fancontrol.sav 2014-04-01 20:06:29.000000000 +0200 +++ prog/pwm/fancontrol 2014-04-02 12:40:52.376746067 +0200 @@ -504,8 +504,14 @@ function UpdateFanSpeeds echo $pwmval > $pwmo # write new value to pwm output if [ $? -ne 0 ] then - echo "Error writing PWM value to $DIR/$pwmo" >&2 - restorefans 1 + # Try enabling the fan again (may be reset e.g. after a suspend/resume). + pwmenable $pwmo + echo $pwmval > $pwmo + if [ $? -ne 0 ] + then + echo "Error writing PWM value to $DIR/$pwmo" >&2 + restorefans 1 + fi fi if [ "$DEBUG" != "" ] then
_______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors