• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wake computer from sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wake computer from sleep


  • Subject: Re: Wake computer from sleep
  • From: "Mr. Gecko" <email@hidden>
  • Date: Fri, 10 Jul 2009 14:25:15 -0500

I decided to write a daemon that my alarm tells where the alarm file is and it tells the system when to wake up automatically.

Thanks for helping anyway,
Mr. Gecko

On Jul 10, 2009, at 3:40 AM, Jean-Daniel Dupas wrote:


Le 9 juil. 09 à 18:28, Mr. Gecko a écrit :

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,

Does this help you ?

http://developer.apple.com/samplecode/BetterAuthorizationSample/listing6.html






_______________________________________________

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


References: 
 >Wake computer from sleep (From: "Mr. Gecko" <email@hidden>)
 >Re: Wake computer from sleep (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: NSConnection Proxy Crash
  • Next by Date: Re: Cocoa Frontend to SDL App
  • Previous by thread: Re: Wake computer from sleep
  • Next by thread: Using private APIs
  • Index(es):
    • Date
    • Thread