site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=LuTsTykeVc0akzhKjQ82DQS636YoI/2aV8V2dyU/G1Q=; b=QTPFSXR0Bdg6VO+Lg2yZSfwMwE1bf9qnpHnNV58qB2E8QPcgNwkHzezgiblTNTbHIN hLEQC5azcHSd2R/2wp+LBIDwHOc9/kpZjH5pPDu6b43nGyzCSame0pORWtQqnmROI3IO LvkLFsWkjE0GPRWgYItnkPrA8lWf8CzNQNcZo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Lcp1mVGCy+Nu1dJYtGwUfi9a8Lx2KrfZ6l09hGUXqiCs2mqesFiJUIZKfUcXgt7j7J vnlbvccyXtQUBafGdEYKDLJQ0A6+Zjf32pUeLf6POteqnaTKiL48K9Qpu8MUEBcEtjvo 73vRywgB+g6YW01f5l9ulDgYyyUV0Ajhs/5Sg= Thanks again Ethan for your help. This code has the "kicking" effect I was after for *display sleep*, but has no effect on the screensaver: IOPMAssertionID assertionID; IOReturn err = IOPMAssertionCreate(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn, &assertionID); err = IOPMAssertionRelease(assertionID); I can probably get by with just this by disabling the screensaver, but it'd be nice if the screensaver could be "kicked" as well. Any ideas? Shayne On Fri, Jul 18, 2008 at 5:49 PM, Ethan Bold <ebold@apple.com> wrote:
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....
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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/ebold%40apple.com
This email sent to ebold@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com