GWES Suspend Time-outs (Windows CE 5.0)

Send Feedback

The following table shows the registry values that control the on-to-suspend power state for Windows CE. These values are stored as DWORDs in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power registry key. A value of 0 will disable 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 suspends.
ExtPowerOff 0 (disabled) While running on external power, the number of seconds without user input activity before the system suspends.
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 suspends.
ScreenPowerOff 0 (disabled) Number of seconds without user input activity before GWES posts an APM_POWERBROADCAST, PBT_APMUSERIDLE message to the registered taskbar window.

To enable GWES to control suspend time-outs, you need to use these registry settings. You must also prevent the Power Manager from attempting to control system suspend states. In the sample Power Manager implementation, you can accomplish this by removing definitions for Power Manager time-outs from the registry. When GWES is managing system suspend time-outs, it uses the Power Manager by calling SetSystemPowerState.

Registry Settings

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power]
    "BattPowerOff"=dword:300
    "ExtPowerOff"=dword:0
    "WakeupPowerOff"=dword:60
    "ScreenPowerOff"=dword:0

See Also

Suspend Time-out Support | SetSystemPowerState

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.