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: searockcliff <email@hidden>
- Date: Tue, 17 Feb 2009 10:59:51 +0800 (CST)
Thanks!
Now I have another question about the IOCommandGate.
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:
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