Comment 11 for bug 670127

Revision history for this message
Walter Nuss (walt-nuss) wrote :

Thank you, Julian Viereck.
I have written script for automatic fan-control. Maybe, somebody can use it.
But WARNING it is not perfect and this script cause damage your Thinkpad through overheating. I would reccomend to use it only as a pattern, not more..

while [ 1 ]
do
temperatur=$(cat /sys/devices/platform/thinkpad_hwmon/temp1_input)
echo $temperatur
if [ $temperatur -gt 53000 ]
then
echo "level 1" | sudo tee /proc/acpi/ibm/fan
if [ $temperatur -gt 60000 ]
then
echo "level 2" | sudo tee /proc/acpi/ibm/fan
if [ $temperatur -gt 75000 ]
then
echo "level auto" | sudo tee /proc/acpi/ibm/fan
fi
else
echo "level 0" | sudo tee /proc/acpi/ibm/fan
fi
sleep 10
done