Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 11 powercfg Requestsoverride not working to allow sleep #4

Closed
flowerdealer opened this issue Feb 19, 2023 · 8 comments
Closed

Comments

@flowerdealer
Copy link

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?

@flowerdealer
Copy link
Author

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

@vrubleg
Copy link
Owner

vrubleg commented Feb 19, 2023

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.

@flowerdealer
Copy link
Author

flowerdealer commented Feb 21, 2023 via email

@vrubleg
Copy link
Owner

vrubleg commented Feb 21, 2023

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.

@vrubleg
Copy link
Owner

vrubleg commented Feb 25, 2023

There is a hidden setting "Allow System Required Policy" in the advanced power settings:

image

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.

@flowerdealer
Copy link
Author

flowerdealer commented Feb 25, 2023 via email

@vrubleg
Copy link
Owner

vrubleg commented Feb 25, 2023

No, only when you don't touch input devices.

@flowerdealer
Copy link
Author

flowerdealer commented Feb 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants