Wake computer from sleep
Wake computer from sleep
- Subject: Wake computer from sleep
- From: "Mr. Gecko" <email@hidden>
- Date: Thu, 9 Jul 2009 11:28:00 -0500
Hello, I'm working on an alarm and I'm wondering what would be the
best way to make it wake up the computer.
I've heard of IOPMSchedulePowerEvent and I think it's the best way,
but I'll need root privileges and I'm guessing the best way to do that
without making a security hole is to have a helper application that
just tells the computer what time to wake up and have my alarm
application launch it. But there is one thing there, the only way I
can find to do it requires the user to type in a password each time my
alarm starts up and that's not user friendly, so is it possible maybe
to save the user password in the keychain and use that to authenticate
it to schedule an wake up time? Or save the AuthorizationRef and get
that at start up?
Thanks for any tips/help,
Mr. Gecko
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden