• 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: slow NSWorkspaceDidWakeNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: slow NSWorkspaceDidWakeNotification


  • Subject: Re: slow NSWorkspaceDidWakeNotification
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 16 Mar 2005 19:02:24 -0800

On Mar 16, 2005, at 6:19 AM, Gerriet M. Denkmann wrote:

When I put the computer to sleep (via the Apple-menu) I get after 1 seccond the message "kIOMessageSystemWillSleep", but then it takes 30 seconds until the computer really starts sleeping. This is not very nice.

2. Why is there the 30 seconds delay between kIOMessageSystemWillSleep and the actual sleep?
What can I do to avoid this?

Inside the power-event notification callback, you need to call:

	IOAllowPowerChange(root_power_service, (long)messageArgument);

...otherwise the 30-second delay is the default behavior.
--
Shaun Wexler
MacFOH
http://www.macfoh.com

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: slow NSWorkspaceDidWakeNotification
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >slow NSWorkspaceDidWakeNotification (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: slow NSWorkspaceDidWakeNotification (From: "Sean McBride" <email@hidden>)
 >Re: slow NSWorkspaceDidWakeNotification (From: Shaun Wexler <email@hidden>)
 >Re: slow NSWorkspaceDidWakeNotification (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Help with code...
  • Next by Date: Re: Self-scheduling threading
  • Previous by thread: Re: slow NSWorkspaceDidWakeNotification
  • Next by thread: Re: slow NSWorkspaceDidWakeNotification
  • Index(es):
    • Date
    • Thread