Ramp-up time for fan speed
Hi, everyone.
I've recently discovered lm_sensors, pwmcontrol, and fancontrol. IIUC, they're all part of the same package. My CPU fan is under automatic control by the system hardware, but the case fans were fixed, and this system has allowed me to make the fan speeds vary with temperature, which has made my system a LOT quieter when it's relatively idle, yet I can launch compute-intensive apps and still maintain a cool system.
Anyhow, I'm running into a problem with leaving the fans off. The fans take too long to come up to speed from stop. It's not a function of the fans themselves; when I power the system on, the snap from zero to full speed in less than a second. So my best guess is that fancontrol won't just SET the duty cycle but wants to gradually ramp it up or down.
If I leave the fans on all the time at a setting of 100/255, then it's okay. But if I leave them off until they're needed, it takes way too long for the fans to even begin spinning.
Is there a way I can control fancontrol's ramp-up rate? I wasn't able to find anything on this in the documentation.
Thanks!
Signature · 8 lines
Timothy Normand Miller http://www.cse.ohio-state.edu/~millerti Open Graphics Project _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Timothy,
Quoted 15 lines · Timothy Normand Miller
I've recently discovered
lm_sensors, pwmcontrol, and fancontrol. IIUC, they're all part of the same package. My CPU fan is under automatic control by the system hardware, but the case fans were fixed, and this system has allowed me to make the fan speeds vary with temperature, which has made my system a LOT quieter when it's relatively idle, yet I can launch compute-intensive apps and still maintain a cool system.Anyhow, I'm running into a problem with leaving the fans off. The fans take too long to come up to speed from stop. It's not a function of the fans themselves; when I power the system on, the snap from zero to full speed in less than a second. So my best guess is that fancontrol won't just SET the duty cycle but wants to gradually ramp it up or down.
Quoted 6 lines
If I leave the fans on all the time at a setting of 100/255, then it's okay. But if I leave them off until they're needed, it takes way too long for the fans to even begin spinning.
Is there a way I can control fancontrol's ramp-up rate? I wasn't able to find anything on this in the documentation.
The fancontrol script really isn't that smart. It doesn't implement any form of ramp-up, the target speed (actually, output duty cycle) is computed linearly based on the measured temperature, and applied immediately.
However it is known that fans need a relatively high duty cycle to start spinning, and we do have a mechanism for that: MINSTART. I suppose you didn't set its value high enough. Probably the best is that you share your /etc/fancontrol configuration file with us and I'll tell you what I think should be changed.
Please also tell us which version of lm-sensors you're running, to make sure you aren't affected by an old bug.
Signature · 7 lines
Jean Delvare http://khali.linux-fr.org/wishlist.html _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 23 lines · Jean Delvare
Hi Timothy,
Quoted 19 lines · Timothy Normand Miller
I've recently discovered
lm_sensors, pwmcontrol, and fancontrol. IIUC, they're all part of the same package. My CPU fan is under automatic control by the system hardware, but the case fans were fixed, and this system has allowed me to make the fan speeds vary with temperature, which has made my system a LOT quieter when it's relatively idle, yet I can launch compute-intensive apps and still maintain a cool system.Anyhow, I'm running into a problem with leaving the fans off. The fans take too long to come up to speed from stop. It's not a function of the fans themselves; when I power the system on, the snap from zero to full speed in less than a second. So my best guess is that fancontrol won't just SET the duty cycle but wants to gradually ramp it up or down.
If I leave the fans on all the time at a setting of 100/255, then it's okay. But if I leave them off until they're needed, it takes way too long for the fans to even begin spinning.
Quoted 8 lines
Quoted 2 lines
Is there a way I can control fancontrol's ramp-up rate? I wasn't able to find anything on this in the documentation.
The fancontrol script really isn't that smart. It doesn't implement any
form of ramp-up, the target speed (actually, output duty cycle) is computed linearly based on the measured temperature, and applied immediately.
I got the source code to fancontrol and discovered that, although I'm not so great at reading either bash or perl. It occurs to me that whatever circuitry controls the duty cycle itself has slow reaction time. I'd love to know what makes it snap on full quickly at boot time. Actually, that I can get. But how it so quickly drops to 50% (under control of BIOS) would be interesting to know. When fancontrol sets 50%, it takes a while to slow down.
Quoted 6 lines
However it is known that fans need a relatively high duty cycle to start spinning, and we do have a mechanism for that: MINSTART. I suppose you didn't set its value high enough. Probably the best is that you share your
/etc/fancontrolconfiguration file with us and I'll tell you what I think should be changed.
Actually, after 150 wasn't quick enough, I tried 255 for MINSTART. It didn't seem to help any. I'll fiddle with it a bit more, but I'm quite sure that it's not fancontrol's problem. And besides, since it's a script, I can easily alter it.
Quoted 3 lines
Please also tell us which version of lm-sensors you're running, to make sure you aren't affected by an old bug.
sensors version 2.10.7 with libsensors version 2.10.7
Thanks for the help!
Quoted 5 lines
--
Jean Delvare
http://khali.linux-fr.org/wishlist.html
Signature · 8 lines
Timothy Normand Miller http://www.cse.ohio-state.edu/~millerti Open Graphics Project _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Timothy,
Quoted 10 lines · Timothy Normand Miller
Quoted 8 lines · Jean Delvare
Quoted 2 lines · Timothy Normand Miller
Is there a way I can control fancontrol's ramp-up rate? I wasn't able to find anything on this in the documentation.
The fancontrol script really isn't that smart. It doesn't implement any
form of ramp-up, the target speed (actually, output duty cycle) is computed linearly based on the measured temperature, and applied immediately.
Quoted 4 lines
I got the source code to fancontrol and discovered that, although I'm not so great at reading either bash or perl. It occurs to me that whatever circuitry controls the duty cycle itself has slow reaction time.
Does it? In my experience it was always pretty fast.
Quoted 4 lines
I'd love to know what makes it snap on full quickly at boot
time. Actually, that I can get. But how it so quickly drops to 50% (under control of BIOS) would be interesting to know. When fancontrol sets 50%, it takes a while to slow down.
Are you speaking of the same fan in both cases? Different fans can behave differently. Large fans have more inertia. Also, 4-pin fans are a totally different beast, as they include additional electronics which converts the PWM signal. For 3-pin fans, the PWM signal controls the fan directly, which frequently results in a non-linear response (that is, 50% duty cycle does _not_ lead to 50% speed.)
Quoted 8 lines
Quoted 5 lines
However it is known that fans need a relatively high duty cycle to start spinning, and we do have a mechanism for that: MINSTART. I suppose you didn't set its value high enough. Probably the best is that you share your
/etc/fancontrolconfiguration file with us and I'll tell you what I think should be changed.Actually, after 150 wasn't quick enough, I tried 255 for MINSTART. It didn't seem to help any.
That's what I would have suggested, but if it did not help...
Quoted 3 lines
I'll fiddle with it a bit more, but I'm
quite sure that it's not fancontrol's problem. And besides, since it's a script, I can easily alter it.
Correct. You can also access the sysfs interface directly if it makes your testing easier.
Quoted 4 lines
Quoted 2 lines
Please also tell us which version of lm-sensors you're running, to make sure you aren't affected by an old bug.
sensors version 2.10.7 with libsensors version 2.10.7
That's a little old... Assuming you're running a 2.6 kernel, you may want to try the fancontrol script from lm-sensors 3.1.0 instead, it includes a number of bugfixes.
If you need more help, please make sure to mention the kernel version you're running, the driver use for fan speed control, the mainboard brand and model, and the characteristics of the fans (in particular, size and number of pins.)
Signature · 7 lines
Jean Delvare http://khali.linux-fr.org/wishlist.html _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors