Added hysteresis to fancontrol
I rewrote the fancontrol script, and added a hysteresis to the fan speed calculation. This prevents the fan from being switched between off and minimum speed every $INTERVAL seconds because the temperature changes by 1?C. Another important change which allows fancontrol to be started from the lm_sensors service script is also included.
The syntax of /etc/fancontrol is appropriately extended, the change will be ignored by previous versions of the script.
Please replace the fancontrol script in the lm_sensors package with the one at http://volker.dnsalias.net/soft/script/fancontrol . No diff because it's a complete tidy-up, with many clumsy parts being rewritten.
Thanks + greetings,
Volker
Signature · 2 lines
Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
Hi again,
Now after a release is good time to go on and apply it. Have you some new version?
regards
Rudolf
Quoted 2 lines
Now after a release is good time to go on and apply it. Have you some new version?
Everything I have is here:
http://volker.dnsalias.net/linux/tech/lm_sensors/
No change to /usr/sbin/fancontrol since I posted it to this list on 24 Jan, and it works very well for me, but I added more comments just now. The script is a complete tidyup, the diff is longer than the file.
If you have the idea to pick'n'mix, pay attention to the sleep and signal handling, or you'll break the usability of the fancontrol script within system service scripts. The construction I have now is already in SUSE 10.1 and works, don't unfix it.
I haven't put the hysteresis handling into pwmconfig yet, and because I don't really need it myself, I'm reluctant to work on it unless I can feel somewhat assured that it'll make it into the official source.
Someone posted a patch to fancontrol on 14 Feb, the only real difference to my script I can see is that awk is no longer used. In my opinion I don't see the point, awk is a low-resource barebones program which can be relied upon to exist for system services (remove it and your system will no longer as much as boot). The expression evaluation is also better and less headachey in gawk than in bash.
The fancontrol also needs to be started by /etc/init.d/lm_sensors, I had added that and SUSE made some more changes to it. The current state is at the above URL. Works fine for me.
Thanks + greetings,
Volker
Signature · 2 lines
Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
Quoted 6 lines · Volker Kuhlmann
Quoted 2 lines
Now after a release is good time to go on and apply it. Have you some new version?
Everything I have is here:
http://volker.dnsalias.net/linux/tech/lm_sensors/
OK
Quoted 4 lines
No change to
/usr/sbin/fancontrolsince I posted it to this list on 24 Jan, and it works very well for me, but I added more comments just now. The script is a complete tidyup, the diff is longer than the file.
Quoted 8 lines
If you have the idea to pick'n'mix, pay attention to the sleep and signal handling, or you'll break the usability of the fancontrol script within system service scripts. The construction I have now is already in SUSE 10.1 and works, don't unfix it.
I haven't put the hysteresis handling into pwmconfig yet, and because I don't really need it myself, I'm reluctant to work on it unless I can feel somewhat assured that it'll make it into the official source.
Well if you want to be an anctive maintainer for this type of stuff you will be wellcomed.
Quoted 6 lines
Someone posted a patch to fancontrol on 14 Feb, the only real difference to my script I can see is that awk is no longer used. In my opinion I don't see the point, awk is a low-resource barebones program which can be relied upon to exist for system services (remove it and your system will no longer as much as boot). The expression evaluation is also better and less headachey in gawk than in bash.
I think I agree with you.
Quoted 3 lines
The fancontrol also needs to be started by
/etc/init.d/lm_sensors, I had added that and SUSE made some more changes to it. The current state is at the above URL. Works fine for me.
Ok I will check everuthing once I'm able to commit into SVN.
Thanks,
Regards
Rudolf
Quoted 2 lines
Well if you want to be an anctive maintainer for this type of stuff you will be wellcomed.
Yes that would be fine with me. My professional background is in electronics / embedded systems.
Regards,
Volker
Signature · 2 lines
Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
Quoted 2 lines · Volker Kuhlmann
Quoted 2 lines
Well if you want to be an anctive maintainer for this type of stuff you will be wellcomed.
Cool. Please send the ssh public key to and you will get access to svn. If Jean agrees of course :)
Quoted 2 lines
Yes that would be fine with me. My professional background is in electronics / embedded systems.
We need you :)
Regards
Rudolf
Hi Rudolf, Axel, Volker,
Quoted 5 lines · Rudolf Marek
Well if you want to be an anctive maintainer for this type of stuff you will be wellcomed.
Cool. Please send the ssh public key to and you will get access to svn. If Jean agrees of course :)
No problem. My only requirement is that Volker posts with his real e-mail address rather than expecting everyone to manually replace "hidden" by "list0570". This is inefficient and annoying, we really don't have extra time for this kind of trick.
That left apart, welcome, Volker. You'll just have to wait for us to switch from CVS to SVN before your committer access works. Should happen soon now, hopefully.
Axel, are SVN changes now reported on the lm-sensors-notify list? We can't switch until it works.
Thanks,
--
Jean Delvare