Re: "Kicking" the screensaver/display timers
Re: "Kicking" the screensaver/display timers
- Subject: Re: "Kicking" the screensaver/display timers
- From: Ethan Bold <email@hidden>
- Date: Fri, 18 Jul 2008 16:49:05 -0700
Check out IOPMAssertionCreate() with type
kIOPMAssertionTypeNoDisplaySleep. This is new in 10.5.
It's described in the 10.5 Darwin release notes here:
http://developer.apple.com/releasenotes/Darwin/RN-IOKitPowerManagment/index.html
And discussed in practice here on a cocoa mailing list:
http://www.cocoabuilder.com/archive/message/cocoa/2008/6/19/210697
-Ethan
On Jul 18, 2008, at 4:24 PM, Shayne Wissler wrote:
Hello,
I need an API call/approach for "kicking" the the
display-sleep/screensaver timers, as if the user had moved the mouse
or pressed a key. I need a program to be able to wake up the display
and/or stop the screensaver, without having the user interact with the
mouse or keyboard. (E.g., for an app used in a classroom situation to
broadcast a message to a Mac hanging on a wall that happened to be in
sleep mode).
Any pointers to a relevant API would be appreciated.
Shayne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden