Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'You can use AppleScript and Temperature Monitor to prevent fan activation' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You can use AppleScript and Temperature Monitor to prevent fan activation
Authored by: jasper vicenti on Nov 30, '05 01:32:45AM

You can also use the terminal (and thus, applescript) to change your settings:

-- fast
do shell script "sudo pmset -c -a dps 0 reduce 0" password "administrator password" with administrator privileges

-- automatic
do shell script "sudo pmset -c -a dps 1 reduce 0" password "administrator password" with administrator privileges

-- slow
do shell script "sudo pmset -c -a dps 0 reduce 1" password "administrator password" with administrator privileges

You will need to change the password to your administrator password. In order to protect your password, you should save as an applescript application and check the box marked "Run Only", which prevents the plain text from being embedded in the app.

Why is this more useful than the FastAndSlow (which I also use)? You can set up Temperature Monitor (http://www.versiontracker.com/dyn/moreinfo/macosx/19994) to automatically launch your script if the temperature exceeds or drops below a certain value.

On my PowerBook, I have found the fan turns on at about 138 degrees F, so you can have it launch the "slow" script at 134 degrees (there is a slight delay). This will prevent the fan from turning on for any processes running. I have it set up to switch to "automatic", so that my user processes will still run fast, but niced processes should not cause the fan to turn on by themselves.

I had to run two copies of Temperature Monitor in order to have the two separate scripts run. The second copy is set to launch the "fast" script at 128 degrees F. When properly ventilated, this provides an "effective" processor speed about halfway between the Fast and Reduced settings.

I may write a simple program that can do all of this automatically, but I probably won't have time in the next two months due to other work.

Jasper



[ Reply to This | # ]