I created two scripts to increase and decrease the minimum fan speed, in order to have more control over this. First I created the file "fans-up" with the following lines:
Code:
echo 4000 | sudo tee /sys/devices/platform/applesmc.768/fan1_min
echo 4000 | sudo tee /sys/devices/platform/applesmc.768/fan2_min
and made a corresponding file "fans-down" with:
Code:
echo 2000 | sudo tee /sys/devices/platform/applesmc.768/fan1_min
echo 2000 | sudo tee /sys/devices/platform/applesmc.768/fan2_min
to restore things to the original settings. Then I made both files executable by:
Code:
chmod +x fans-up
chmod +x fans-down
One can now run "./fans-up" to increase (minimum) fan speed and ./fans-down" to decrease it.
As an added step, to make things nicer, one can create a hidden folder .bin in one's home directory with "mkdir .bin" and then move the scripts there. Then open up your .bashrc file with an editor and add the lines
Code:
PATH=$PATH:$HOME/.bin
export PATH
at the end of the file. This includes your new folder ~/.bin in the search path, so that you can now execute your scripts from the command line no matter what folder you happen to be in.
Hope it helps.
Bookmarks