I had seen the references to changing power plans but thought that was
a bit excessive and unnecessary since I can change the settings
'When the computer sleeps' within the same power plan by changing the
settings in control panel.
Presumably, switching to an alternate power plan via the referenced
shortcuts would necessitate changing the 'Change when the computer sleeps'
setting under one particular alternate plan while retaining the default
for the other. This would not seem all that involved but when I made a
comparison of the Power registry key set to "Never" and "5 minutes", under
the same power plan, the only change was to the following key:
Never:
Code:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
381b4222-f694-41f0-9685-ff5bb260df2e\
238c9fa8-0aad-41ed-83f4-97be242c8f20\
29f6c1db-86da-48c5-9fdb-f2b67b1f44da]
"ACSettingIndex"=dword:00000000
Five Minutes:
Code:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\
381b4222-f694-41f0-9685-ff5bb260df2e\
238c9fa8-0aad-41ed-83f4-97be242c8f20\
29f6c1db-86da-48c5-9fdb-f2b67b1f44da]
"ACSettingIndex"=dword:0000012c
Unfortunately, when I tried to place each different setting into .reg files and load them into the
registry, I got the following error message:
Code:
Cannot import File.reg: Not all data was successfully wrtten to
the registry. Some keys are open by the system or other processes.
Apparently security configurations only allow the change to "ACSettingIndex" if it is done through the control panel.
I also do not wish to enter sleep/hybrid sleep mode with a command line entry, so
"Standby and Hibernate from Command Line" doesn't apply. I simply want to change
the idle time before the system enters sleep mode automatically.
While I haven't yet tested the shortcuts switching power plans, I wonder if there
isn't some other way to alter the "ACSettingIndex" under the same user. If Microsoft
allows it through Control Panel, it would seem possible.