• 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: How to handle wake up from sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to handle wake up from sleep


  • Subject: Re: How to handle wake up from sleep
  • From: Ethan Bold <email@hidden>
  • Date: Tue, 10 Feb 2009 13:43:14 -0800

I'd recommend you read this if you haven't already:

http://developer.apple.com/documentation/devicedrivers/conceptual/IOKitFundamentals/PowerMgmt/chapter_10_section_1.html#//apple_ref/doc/uid/TP0000020-BABCCBIJ

Do you call PMinit(), joinPMtree(), registerPowerDriver() in your driver? See "implementing basic power management" section in the IOKitFundamentals document.

-EThan

On Feb 9, 2009, at 6:58 PM, searockcliff wrote:

Hello,
My driver (kext) is one USB driver.
Whey system goes to sleep, I plugout then plugin the USB device.
Then the system wakes up, but my driver cannot respond to any request, it seems that it is still in sleep mode.
 
I have registered a function handlePowerEvent to handle sleep.
But it only handles kIOMessageCanSystemSleep and kIOMessageSystemWillNotSleep, why is there no message type for Wake up?
 
Regards,
Boyd




免费送你钻戒作情人节礼物 Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to handle wake up from sleep (From: searockcliff <email@hidden>)

  • Prev by Date: Re: Dual load -- was Re: sub-KEXT question
  • Next by Date: Mach Bootstrap_create_server, "server_command" parameter
  • Previous by thread: Re: How to handle wake up from sleep
  • Next by thread: Re:Re: How to handle wake up from sleep
  • Index(es):
    • Date
    • Thread