RE: About flags in PoRegisterSystemState

Hello,
Can anyone let me know
What mean flag ES_USER_REQIRED ?
The calling PoRegisterSystemState with flag ES_USER_REQIRED prevent
put keyboard device to sleep mode ?
I need avoid going keyboard device to sleep mode dirking the same sequence requests to other device?
Regards
Mark


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

PoRegisterSystemState(ES_USER_REQUIRED) means that a user is present and
any idle timers related to power management should be reset, any display
devices which are off should be turned on, etc etc. It does not
actually affect the power state of the keyboard itself. In fact, just
because you call this API does mean that the system will not go to sleep
immediately (consider the case where the battery is very low and the
machine must turn off or the user’s data is lost).

If you are trying to keep the keyboard device in full power, you must a
pnp filter in the keyboard stack and pariticpate in the powering down of
the device. The KMDF sample kbfiltr is a good place to start. I sure
hope that you are not touching the keyboard’s I/O ports and interrupt
outside of the keyboard stack or outside of the control of i8042prt…

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, December 11, 2006 11:25 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] About flags in PoRegisterSystemState

Hello,
Can anyone let me know
What mean flag ES_USER_REQIRED ?
The calling PoRegisterSystemState with flag ES_USER_REQIRED prevent
put keyboard device to sleep mode ?
I need avoid going keyboard device to sleep mode dirking the same
sequence requests to other device?
Regards
Mark


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thank you very much Doron for your explanation,
I used now one PoRegisterSystemState into one IRP to device
and PoUnRegisterSystemState in other IRP and it prevent successfully go system to sleep automatically until calling PoUnRegisterSystemState .
Regards
Mark

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Doron Holan
Sent: Monday, December 11, 2006 10:09 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] About flags in PoRegisterSystemState

PoRegisterSystemState(ES_USER_REQUIRED) means that a user is present and
any idle timers related to power management should be reset, any display
devices which are off should be turned on, etc etc. It does not
actually affect the power state of the keyboard itself. In fact, just
because you call this API does mean that the system will not go to sleep
immediately (consider the case where the battery is very low and the
machine must turn off or the user’s data is lost).

If you are trying to keep the keyboard device in full power, you must a
pnp filter in the keyboard stack and pariticpate in the powering down of
the device. The KMDF sample kbfiltr is a good place to start. I sure
hope that you are not touching the keyboard’s I/O ports and interrupt
outside of the keyboard stack or outside of the control of i8042prt…

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Shnaider
Sent: Monday, December 11, 2006 11:25 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] About flags in PoRegisterSystemState

Hello,
Can anyone let me know
What mean flag ES_USER_REQIRED ?
The calling PoRegisterSystemState with flag ES_USER_REQIRED prevent
put keyboard device to sleep mode ?
I need avoid going keyboard device to sleep mode dirking the same
sequence requests to other device?
Regards
Mark


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer