Fan control script
I've been having a really hot laptop in ubuntu, like i had in OS X before i installed fan-control.
I looked around the net, and figured i wasn't alone, but i could only find 1 script (SantaRosaFanControl i believe), which i didn't quite like...
So, i wrote my own, which also counts fans and sensors by itself, so it should work on anything that the applesmc module supports
All settings are in the top (min/max fan-speeds, min/max temp, so forth), though i wouldn't suggest setting the manFanControl flag to true... if applesmc wants the fans to spin, it probably have a good reason
It's probably not the prettiest thing in the world (haven't been scripting in a while...), but i hope someone will have use of it
By the way, is there anyone who knows which sensor is which on MBP3.1?
This script is designed to automatically recognize fans and sensors on any Apple computer that uses the applesmc kernel module for fans and temperature sensors.
It will also take temperature-input from the coretemp kernel-module if loaded.
It might be very buggy, though!
So far, i'm aware of successful use on various MacBook Pro's and MacBook's...
Sorry for the lack of interest in my script, but i'm not using Ubuntu as heavily as i used to (Actually, i screwed up GRUB when i installed Snow Leopard, so i haven't booted it in a while )
0.1: First version
0.2: Added fatal function, and the debugTo variable
0.2.1: Zipped it with an init and install script
0.2.2, Install script now starts smcfancontrol after install
0.3: Added cornelius2's coretemp/gradual-update-patch, and included a readme, together with a simple fix for the random suicides...
0.3.2: Fix potential non-laptop bug
UPDATE: I installed Karmic on top of my old install, so i'm up and running on Ubuntu again! But now i'm screwed, 'cause i lost my custom keymap 'n stuff... D': (The DK-Mac keymap is actually just the usual DK map, which doesn't work well on a Mac keyboard...)
Last edited by Joushou; November 9th, 2009 at 10:41 PM.
Reason: You don't want to know. No really, you don't.
Once upon a time, there was.
Then, there wasn't.
- A description of life, the universe, and everything.