Re: why this API (SetSystemPowerState) can not change the system power state??



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







.



Relevant Pages

  • Re: why this API (SetSystemPowerState) can not change the system power state??
    ... The powermanager manages the entire system and knows about all the different components (like drivers, applications, running threads, user activity, system activity, etc). ... But I still don't understand why this API, SetSystemPowerState, does not work??? ...
    (microsoft.public.windowsce.embedded)
  • Re: why this API (SetSystemPowerState) can not change the system power state??
    ... the different components (like drivers, applications, running threads, ... user activity, system activity, etc). ... Learn the PM API and architecture. ...
    (microsoft.public.windowsce.embedded)
  • Re: my computer keeps turning itself back on
    ... But modern BIOS' have wake up settings, that when enabled, allow a computer ... > standard H or some jazz like that it would mess up all my drivers and my ... > computer wont turn back on so now ima a littel paranoid to turn my ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Usage of SetSystemPowerState
    ... there any particular API I need to call to set the time duration after ... interrupt, how do I proceed? ... You need set your CPU to wake on the appropriate interrupts. ...
    (microsoft.public.windowsce.platbuilder)
  • F1: News bits and pieces
    ... In the wake of the Malaysian Grand Prix many drivers are off in exotic ... foreign climes preparing for the next event in Australia, ... McLaren began at Paul Ricard in France on Tuesday with test drivers Pedro de ...
    (rec.autos.sport.info)