• 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
controlling display sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

controlling display sleep


  • Subject: controlling display sleep
  • From: arri <email@hidden>
  • Date: Mon, 16 Apr 2007 09:27:15 +0200

hoi list,


i'd like to have control over the power-managers' display sleep status. ideally i would like to control the display sleep directly from my code.

the best solution i have found so far would be to set an as short displaysleep-delay as possible in system-prefs or using pmset(), and then keep the screen awake by calling UpdateSystemActivity() at regular intervals.
then whenever i want the screen to sleep i would stop calling UpdateSystemActivity(), and about a minute later the screen goes to sleep...


is there a better or more direct way to do this?

in this case it is for a kiosk application, so the human-interface guidelines don't apply.

thanks,
arri
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Re: CGEventKeyboardGetUnicodeString + modifier key (From: email@hidden)
 >Re: CGEventKeyboardGetUnicodeString + modifier key (From: Eric Schlegel <email@hidden>)
 >Re: CGEventKeyboardGetUnicodeString + modifier key (From: Bill <email@hidden>)
 >Re: CGEventKeyboardGetUnicodeString + modifier key (From: Eric Schlegel <email@hidden>)

  • Prev by Date: makeKeyandOrderFront not working.
  • Next by Date: Re: makeKeyandOrderFront not working.
  • Previous by thread: Re: CGEventKeyboardGetUnicodeString + modifier key
  • Next by thread: Re: CGEventKeyboardGetUnicodeString + modifier key
  • Index(es):
    • Date
    • Thread