Re: Re: How to handle wake up from sleep
Re: Re: How to handle wake up from sleep
- Subject: Re: Re: How to handle wake up from sleep
- From: mm w <email@hidden>
- Date: Mon, 16 Feb 2009 19:45:27 -0800
Hi, 1 2 3 soleil,
it's not your concern it does it for you, fortunately people who are
implementing this don't have wind
between their hears,
further details can be easily find here and you will get the answers:
http://developer.apple.com/DOCUMENTATION/Darwin/Reference/KernelIOKitFramework/IOCommandGate_h/Classes/IOCommandGate/index.html
Best Regards
On Mon, Feb 16, 2009 at 6:59 PM, searockcliff <email@hidden> wrote:
> Thanks!
> Now I have another question about the IOCommandGate.
> http://developer.apple.com/documentation/devicedrivers/conceptual/IOKitFundamentals/PowerMgmt/chapter_10_section_7.html#//apple_ref/doc/uid/TP0000020-SW6
> Should I put all the IO request to runAction()?
> When should I call commandSleep() and commandWakeup()?
>
> When system goes to sleep, should I call commandSleep()?
> When system goes to wakeup, should I call comandWakeup()?
> But the system cannot be waken up if I use above methods.
>
> 在2009-02-11,"Ethan Bold" <email@hidden> 写道:
>
> 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
>
>
> ________________________________
> 网易邮箱,中国第一大电子邮件服务商
> _______________________________________________
> 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