Re: why this API (SetSystemPowerState) can not change the system power state??
- From: "Hzh" <HuZhh@xxxxxxxxxxxxxxxx>
- Date: Thu, 24 Apr 2008 11:01:10 +0800
Hi, Michel
Could you help me again? I got another problem, and maybe this problem has
relationship with the PM too.
When my system get in suspend mode, I can not resume it. This function,
OEMPowerOff(), has been called, and I used a GPIO interrupt as a wake up
source to wake up my system, and the system can recognize this wake up
source, those functions, XXX_PowerUp, has been called too, but not all those
functions had been called. Could you tell me what and how we should do when
we want to wake up our system?
Could you give me some advice? Thank you.
Best Regards
Ricky
--
"Hzh" <HuZhh@xxxxxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ:eTQe95NpIHA.3860@xxxxxxxxxxxxxxxxxxxxxxx
Got it.
Thank you, Michel.
"Michel Verhagen (eMVP)" <michel@xxxxxxxxxx>
??????:ee0vY%23MpIHA.1768@xxxxxxxxxxxxxxxxxxxxxxx
I could explain you but that would take a lot of time. As I said earlier,
take a look at the PM source code (\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\PM)
and read the code.
In short: The powermanager manages the entire system and knows about all
the different components (like drivers, applications, running threads,
user activity, system activity, etc). You, as an application (or driver),
can not know what is going on on the entire system so how can you be the
one making a decision for everyone else?
Learn the PM API and architecture. Documentation is very good on this.
Good luck,
Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog
GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
Hzh wrote:
Hi, Michel
Thank you.
According to what you said, it works. I can change the system power
state from useridle to on. Thank you very much.
But I still don't understand why this API, SetSystemPowerState, does not
work??? Could you tell me why?
Thank you again.
Best Regards
Ricky
.
- Follow-Ups:
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Michel Verhagen (eMVP)
- Re: why this API (SetSystemPowerState) can not change the system power state??
- References:
- why this API (SetSystemPowerState) can not change the system power state??
- From: Hzh
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Michel Verhagen (eMVP)
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Hzh
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Michel Verhagen (eMVP)
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Hzh
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Michel Verhagen (eMVP)
- Re: why this API (SetSystemPowerState) can not change the system power state??
- From: Hzh
- why this API (SetSystemPowerState) can not change the system power state??
- Prev by Date: Re: WinCE6.0 - Notifications for "Unknown" usb devices
- Next by Date: Re: RTL 8139D Lan card using in Windows CE 5.0
- Previous by thread: Re: why this API (SetSystemPowerState) can not change the system power state??
- Next by thread: Re: why this API (SetSystemPowerState) can not change the system power state??
- Index(es):
Relevant Pages
|
|