As far as I know, the lack of cpu scaling on macbook(pro)s is a big problem. Don't bother using your brain to find a solution, for I am here to do that for you. Note that the script will not work very properly on the new quad-core computers. You can do some tweaking to get it running though.
Step 0: If you read the official Ubuntu MacbookPro page, you can skip this.
We need to ensure that sensors are working properly here. Do these things:
apt-get install lm-sensors
sensors-detect (make sure you allow it to edit /etc/modules)
And for now: modprobe coretemp
Step 1: Put the following script in /usr/local/sbin:
Step 2: Add this script to root's crontab. It needs to run every minute. Here is my crontab line:
for i in `seq 1 9`
if test $CURRTEMP1 -ge $TEMP2; then
echo $FANSPEED2 > /sys/devices/platform/applesmc.768/fan1_min
elif test $CURRTEMP1 -ge $TEMP1; then
echo $FANSPEED1 > /sys/devices/platform/applesmc.768/fan1_min
echo $FANSPEEDLOW > /sys/devices/platform/applesmc.768/fan1_min
echo "Sleeping for 6 seconds"
Use google if you don't know how to do this. You're a linux user now, get used to it.
* * * * * /usr/local/sbin/temp.sh >> /var/log/temp.sh.log
Step 3: Check /var/log/temp.sh.log to see if things are working
Step 4: Tweak the values to suit your temperature needs. Resting that hot computer on your leg is bad for your sperm count you know.