Re: How to handle wake up from sleep
Re: How to handle wake up from sleep
- Subject: Re: How to handle wake up from sleep
- From: mm w <email@hidden>
- Date: Mon, 9 Feb 2009 21:38:42 -0800
http://developer.apple.com/DOCUMENTATION/Darwin/Reference/KernelIOKitFramework/IOMessage_h/index.html
kIOMessageSystemHasPoweredOn is good for you
On Mon, Feb 9, 2009 at 6:58 PM, searockcliff <email@hidden> 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
>
--
-mmw
_______________________________________________
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