Windows 11 powercfg Requestsoverride not working to allow sleep
Closed this issue · 8 comments
Hi, after installing SoundKeeper my sound issues are gone, but my PC won't go to sleep. I've run powercg -requestsoverride and made sure that I have the correct driver listed, but it still prevents sleep no matter what (even after doing the override the driver keeps appearing in the powercg -requests command. Any other ideas for workarounds?
Device is:
NVIDIA High Definition Audio (HDAUDIO\FUNC_01&VEN_10DE&DEV_00A3&SUBSYS_145840BF&REV_1001\5&2ce84b24&0&0001)
Overrides read as following (I've tried a few variations):
NVIDIA High Definition Audio Device SYSTEM
HDAUDIO\FUNC_01&VEN_10DE&DEV_00A3&SUBSYS_145840BF&REV_1001\5&2ce84b24&0&0001 SYSTEM
High Definition Audio Device SYSTEM
NVIDIA High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10DE&DEV_00A3&SUBSYS_145840BF&REV_1001\5&2ce84b24&0&0001) SYSTEM
NVIDIA High Definition Audio SYSTEM
NVIDIA High Definition Audio (HDAUDIO\FUNC_01&VEN_10DE&DEV_00A3&SUBSYS_145840BF&REV_1001\5&2ce84b24&0&0001) SYSTEM
Unfortunately, I don't have Windows 11 for testing this. I would just recommend to make a keystroke for putting your PC into sleep mode.
I consider adding such feature as an option in the future, it is in by backlog. But there are no exact plans when it will be implemented though. One day in the future =)
You can run soundkeeper kill
from the Task Scheduler to stop current Sound Keeper instance gracefully. Also, you can conveniently pass all required settings (like stream type) in command line if you start it from the Task Scheduler, so executable could be named just soundkeeper.exe
. So you can try to imitate required behavior using Task Scheduler.
There is a hidden setting "Allow System Required Policy" in the advanced power settings:
Run this command to make this setting visible and configurable:
powercfg -attributes SUB_SLEEP SYSTEMREQUIRED -ATTRIB_HIDE
It allows you to prevent programs from going into sleep mode (if you set it to "No").
To hide this setting back, run:
powercfg -attributes SUB_SLEEP SYSTEMREQUIRED +ATTRIB_HIDE
As another way to do the same, you can disable the "Allow applications to prevent automatic sleep" policy in Group Policy Editor > Computer Configuration > Administrative Templates > System > Power Management > Sleep Settings.
Keep in mind that with this setting, Windows will go into sleep mode even if you just watch a movie right now, so set idle timeout for 2-3 hours to avoid unexpected interruption.
No, only when you don't touch input devices.