The minimum viable fan control script
ounapuu.ee
The minimum viable fan control script
1–10 of 32 posts
Re: The minimum viable fan control script
#2Re: The minimum viable fan control script
#3> temp=$(cat /sys/class/thermal/thermal_zone1/temp)
temp=$(</sys/class/thermal/thermal_zone1/temp)
Re: The minimum viable fan control script
#4Re: The minimum viable fan control script
#5There is no need to call cat to read from a file. > temp=$(cat /sys/class/thermal/thermal_zone1/temp) temp=$(</sys/class/thermal/thermal_zone1/temp)
Re: The minimum viable fan control script
#6As an alternative, been using this PID fan control script to keep my HDDs cool for ages. https://forums.freenas.org/index.php?threads/pid-fan-control...
Supermicro could be so good for "prosumers" but I feel like they are bogged down by historic garbage. I had to pay (crack) something in the BIOS just to use a feature.
Re: The minimum viable fan control script
#7Re: The minimum viable fan control script
#8As an alternative, been using this PID fan control script to keep my HDDs cool for ages. https://forums.freenas.org/index.php?threads/pid-fan-control...
Re: The minimum viable fan control script
#9The only way to do this reliably and without fire hazard is to passively cool the hardware completely by having HUGE heatsinks and THEN you can add a fan that you slow down with a resistor.
The fan is only there to prolong the life span, the hardware should be able to run passivley at 100% and you should be able to hold your finger on the heatsink forever. If not you have a problem.
All other solutions are just meaningless.
Re: The minimum viable fan control script
#10What is this syntax? I would have assume something like `[ $temp -gt 90000 ]` or `$((temp > 90000))`. Is the dollar here optional? Is this something bash specific?