Good: You can use ‘sleep’ and ‘hibernate’ on a laptop again.
Bad: You disable Hyper-V until you reset the registry key and reboot once again.
Originally spotted
here.
The original post references changing a registry setting, with a reboot in between, namely:
Disable Hyper-V, enable Power Management features (Sleep, Hibernate, etc):
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hvboot]
"Start"=dword:00000003
Enable Hyper-V, disable Power Management features:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hvboot]
"Start"=dword:00000000
I figured out an easier way, for me, at least, is to use the sc.exe command:
Disable Hyper-V, enable Power Management features (Sleep, Hibernate, etc):
sc config hvboot start= disabled
Enable Hyper-V, disable Power Management features:
sc config hvboot start= boot
Keep in mind sc.exe has syntax from another planet - namely, you really do need a space between "start=" and "boot" or "disabled", or sc.exe will error out.