Index
|
Name
|
Description
|
0
|
Disabled
|
Away Mode is not available.
|
1
|
Enabled
|
Away Mode is available.
|
Hidden
|
Yes
|
If the Allow Away Mode power setting is set to Enabled for the currently active power plan, then Away Mode can be enabled by an application by using the Power Management function. When Away Mode is enabled by an application and allowed by the current power plan, any Sleep power action causes the system to enter Away Mode.
If the Allow Away Mode power setting is set to disabled for the currently active power plan, the system never enters Away Mode. Any Sleep power action results in the system entering Sleep, even if an application has enabled Away Mode with the Power Management function or Away Mode is enabled in the Windows Registry.
If the system is in Away Mode and then transitions power sources to a state that does not allow Away Mode, the system immediately exits Away Mode. For example, this change may occur if Away Mode is not allowed on DC power for the active power plan and then the user switches the PC to battery power.
The Allow Away Mode power setting is hidden by default and is not shown in Power Options Advanced Settings. Therefore, to configure the Allow Away Mode power setting, use the PowerCfg tool. For more information about how to use the PowerCfg tool to configure Windows power policy, see “Windows Power Policy Configuration and Deployment” in “Resources” at the end of this paper.
You can examine the value of the Allow Away Mode power setting by using the /qh (Query Hidden settings) command. The following example shows how to view the value of the Allow Away Mode power setting in the default Power Saver power plan:
C:\>powercfg /qh SCHEME_MAX SUB_SLEEP
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)
Subgroup GUID: 238c9fa8-0aad-41ed-83f4-97be242c8f20 (Sleep)
Power Setting GUID: 25dfa149-5dd1-4736-b5ab-e8a37b5b8187 (Allow Away Mode Policy)
Possible Setting Index: 000
Possible Setting Friendly Name: No
Possible Setting Index: 001
Possible Setting Friendly Name: Yes
Current AC Power Setting Index: 0x00000001
Current DC Power Setting Index: 0x00000000
The following example shows how to set the Allow Away Mode power setting to Enabled on AC power for the currently active power plan:
C:\>powercfg –setdcvalueindex SCHEME_CURRENT SUB_SLEEP 25dfa149-5dd1-4736-b5ab-e8a37b5b8187 1
The following example shows how to set the Allow Away Mode power setting to Disabled on DC power for the Windows default Power Saver plan:
C:\>powercfg –setdcvalueindex SCHEME_MAX SUB_SLEEP 25dfa149-5dd1-4736-b5ab-e8a37b5b8187 0
After you change the power plan value, you must set the power plan active for the new Allow Away Mode setting value to be applied to the system. The following PowerCfg command reapplies the currently active power plan:
C:\>powercfg –setactive SCHEME_CURRENT
|