Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The following table shows the registry values that control the on-to-suspend power state for Windows Embedded CE. These values are stored as DWORDsin the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Powerregistry key. A value of zero disables the action.
Registry value name | Default value | Description |
---|---|---|
BattPowerOff |
300 (5 minutes) |
While running on battery power, the number of seconds without user input activity before the system is suspended. |
ExtPowerOff |
0 (disabled) |
While running on external power, the number of seconds without user input activity before the system is suspended. |
WakeupPowerOff |
60 (1 minute) |
Following a non-user input event wakeup such as an alarm, the number of seconds without user input activity before the system is suspended. |
ScreenPowerOff |
0 (disabled) |
Number of seconds without user input activity before the Graphics, Windowing, and Events Subsystem (GWES) posts an APM_POWERBROADCAST, PBT_APMUSERIDLE message to the registered taskbar window. |
To enable GWES to control suspend timeouts, you must use these registry settings. You must also prevent Power Manager from attempting to control system suspended states. In the sample Power Manager implementation, you can do this by removing definitions for Power Manager timeouts from the registry. When GWES is managing system suspend time-outs, it uses Power Manager by calling SetSystemPowerState.
Registry Settings
Copy Code | |
---|---|
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power] "BattPowerOff"=dword:12C // 300 seconds "ExtPowerOff"=dword:0 "WakeupPowerOff"=dword:3C // 60 seconds "ScreenPowerOff"=dword:0 |