Which Win API that diffrentiate S3 and S5 Power Mode?

Posted: 09-21-2004, 07:10 AM



"About Power-Meter setting control, It's setted that when press power button, system shutdown."

But When press power button, it goes S3 not S5.


About S3 operation,

my Shell works in this procedure,
If they get the WM_POWERBROADCAST message,

then if PBT_APMQUERYSUSPEND,

then my shell wait until other programs are gone in normal,

after others are gone,

my shell goes S3 mode.



But As the result we query power states while going S3 and S5,

both power modes send the same message,

(this operation is different from XP Pro.

I guess maybe this problem is also from minlogon.)



So, I want to know the SYSTEM_POWER_STATE correctly.

Please give me some information about this?





(office) +82-2-2191-4948
(anycall) +82-16-396-9783
(email) lins77@samsung.com
±è Àº Èñ(Kim, Eunhui)
¼±ÀÓ ¿¬±¸¿ø

Software Engineer
Device Solution Group
Solution Development Team
Digital Solution Center
SAMSUNG ELECTRONICS CO.,LTD


Reply With Quote

Responses to "Which Win API that diffrentiate S3 and S5 Power Mode?"

JC
Guest
Posts: n/a
 
Re: Which Win API that diffrentiate S3 and S5 Power Mode?
Posted: 09-21-2004, 04:54 PM
Kim,

Take a look here:
http://msdn.microsoft.com/library/de...IReference.asp

This explains the PM API useage for XPE...

Also, look here: http://msdn.microsoft.com/library/de...ower_state.asp

This explains the API for the System_Power_State.



Also, The power button control is usually governed by the system BIOS, and then you have to have all ACPI components in your image... the system drivers all have to be functioning correctly as well, in order for this to work properly.

if the system is going S3 instead of S5, check the system BIOS, to make sure that APM is set to go S5 when power button is pressed... seems pretty basic, but I have overlooked this many times in the past! :-)

HTH,
JC

--
JC- BSquare Corp.
If you wish to reply directly to me, remove the <nospam_ > from the address.
"EunHui Kim" <lins7777@hotmail.com> wrote in message news:uwpwcG6nEHA.1800@TK2MSFTNGP15.phx.gbl...



"About Power-Meter setting control, It's setted that when press power button, system shutdown."

But When press power button, it goes S3 not S5.


About S3 operation,

my Shell works in this procedure,
If they get the WM_POWERBROADCAST message,

then if PBT_APMQUERYSUSPEND,

then my shell wait until other programs are gone in normal,

after others are gone,

my shell goes S3 mode.



But As the result we query power states while going S3 and S5,

both power modes send the same message,

(this operation is different from XP Pro.

I guess maybe this problem is also from minlogon.)



So, I want to know the SYSTEM_POWER_STATE correctly.

Please give me some information about this?





(office) +82-2-2191-4948
(anycall) +82-16-396-9783
(email) lins77@samsung.com
±è Àº Èñ(Kim, Eunhui)
¼±ÀÓ ¿¬±¸¿ø

Software Engineer
Device Solution Group
Solution Development Team
Digital Solution Center
SAMSUNG ELECTRONICS CO.,LTD


Reply With Quote
EunHui Kim
Guest
Posts: n/a
 
Re: Which Win API that diffrentiate S3 and S5 Power Mode?
Posted: 09-22-2004, 02:51 AM
Thank U JC.
*Have a greate day*
"JC" <JCBSQ@nospam_yahoo.com> wrote in message news:ua7efM$nEHA.3908@TK2MSFTNGP09.phx.gbl...
Kim,

Take a look here:
http://msdn.microsoft.com/library/de...IReference.asp

This explains the PM API useage for XPE...

Also, look here: http://msdn.microsoft.com/library/de...ower_state.asp

This explains the API for the System_Power_State.



Also, The power button control is usually governed by the system BIOS, and then you have to have all ACPI components in your image... the system drivers all have to be functioning correctly as well, in order for this to work properly.

if the system is going S3 instead of S5, check the system BIOS, to make sure that APM is set to go S5 when power button is pressed... seems pretty basic, but I have overlooked this many times in the past! :-)

HTH,
JC

--
JC- BSquare Corp.
If you wish to reply directly to me, remove the <nospam_ > from the address.
"EunHui Kim" <lins7777@hotmail.com> wrote in message news:uwpwcG6nEHA.1800@TK2MSFTNGP15.phx.gbl...



"About Power-Meter setting control, It's setted that when press power button, system shutdown."

But When press power button, it goes S3 not S5.


About S3 operation,

my Shell works in this procedure,
If they get the WM_POWERBROADCAST message,

then if PBT_APMQUERYSUSPEND,

then my shell wait until other programs are gone in normal,

after others are gone,

my shell goes S3 mode.



But As the result we query power states while going S3 and S5,

both power modes send the same message,

(this operation is different from XP Pro.

I guess maybe this problem is also from minlogon.)



So, I want to know the SYSTEM_POWER_STATE correctly.

Please give me some information about this?





(office) +82-2-2191-4948
(anycall) +82-16-396-9783
(email) lins77@samsung.com
±è Àº Èñ(Kim, Eunhui)
¼±ÀÓ ¿¬±¸¿ø

Software Engineer
Device Solution Group
Solution Development Team
Digital Solution Center
SAMSUNG ELECTRONICS CO.,LTD


Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
power saver mode joan Windows XP Help & Support 2 01-15-2004 05:21 PM
power saving mode CK Windows XP Help & Support 1 10-21-2003 04:38 PM
power saving mode macfaam Windows XP Video 0 09-08-2003 03:49 AM
power save mode luke Windows XP Embedded 0 07-15-2003 06:07 AM
NIC Power Save Mode Stephan Windows XP Setup 2 07-02-2003 07:36 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90