Re: Periodic waking from a "deep" sleep ?
Re: Periodic waking from a "deep" sleep ?
- Subject: Re: Periodic waking from a "deep" sleep ?
- From: Alastair Houghton <email@hidden>
- Date: Mon, 8 Mar 2004 21:34:00 +0000
On 7 Mar 2004, at 21:38, Jerry LeVan wrote:
>
It would be nice to able able to wakeup the mac from a deep sleep
>
just before cron would fire.
If you're just after support for periodic tasks, have you considered
anacron? I have a packaged installer on my site, which sets it up for
you, if you're interested... the URL is
http://www.alastairs-place.net/anacron.html
>
I have found the discussion of the power manager in Carbon and the
>
IOKit in OSX to be "referentially opaque".
>
>
Mamasam had three inconclusive articles about a year ago.
>
>
Does anyone have a "Wakeup For Dummies" coding example?
What's wrong with the IOPMSchedulePowerEvent() function?
There was a lower-level way of doing this in earlier versions of Mac OS
X, as I recall, by programming it into the PMU somehow. Anyway, this
looks better.
If you want to send it back to sleep again afterwards, it looks easiest
to use IOPMFindPowerManagement() and IOPMSleepSystem().
BTW, if you're going to distribute a program that does this, you should
probably point-out that running it on a PowerBook may not be such a
good plan... they *can* overheat, particularly with the screen folded
down, and also running this sort of program would drain the battery
even when the machine was notionally "off" (because it'd keep waking up
to run cron jobs).
Kind regards,
Alastair.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.