Re: CPU Speed ...
Re: CPU Speed ...
- Subject: Re: CPU Speed ...
- From: m <email@hidden>
- Date: Thu, 13 May 2004 15:57:12 -0700
On Apr 12, 2004, at 12:53 PM, Jonathan 'Wolf' Rentzsch wrote:
J Nozzi, email@hidden, wrote:
Portables have the ability to adjust the CPU speed to extend battery
life. I'd like to control this function directly, rather than via the
System Preferences (Energy Saver) panel.
[snip]
You need to talk to IOKit.
[snip]
the magic call is IOPMSetAggressiveness().
Note you cannot "get" the "aggressiveness" (at least not when I last
tried in 2002), so System Prefs->Energy Saver will *not* reflect any
aggressiveness it does not set itself.
The reason that Energy Saver isn't reflecting the changes made by your
calls to IOPMSetAggressiveness() is that its idea of reduced processor
performance is not the same as that of IOPMSetAggressiveness().
The command line tool pmset appears to have the same semantics for
processor performance as Energy Saver, and you could certainly call it
from your Cocoa app, though making changes (as opposed to simply
looking around) requires it to be run as root.
_murat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.