IOKit Power Manager Help
IOKit Power Manager Help
- Subject: IOKit Power Manager Help
- From: "Huyler, Christopher M" <email@hidden>
- Date: Tue, 1 Jul 2003 17:50:49 -0400
- Thread-topic: IOKit Power Manager Help
Here's what I want to do:
I want to be able to set the Power Manager options from within my program.
Specifically I would like to be able to do two things: check to see if "wake
on network admin access" is set, and turn it on if it isn't (provided that is
is available on the machine), and also check the sleep time and be able to
change it.
I know this can be done with 'pmset' at the command line, but is there an API
to go along with it?
I have read through the IOKit Fundamentals and figured out how to detect when
the computer is about to go to sleep, but I can't figure out how to obtain the
user set values based on the documenation and the examples in the Power
Manager DDK.
Can anyone lead me in the right direction with this?
~ Chris
On a side note, can anyone explain this "Magic Packet" that can be sent over
the network to wake a machine up?
_______________________________________________
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.