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 and sleep #17

Open
filthyfreak opened this issue Oct 13, 2024 · 2 comments
Open

Windows 11 and sleep #17

filthyfreak opened this issue Oct 13, 2024 · 2 comments

Comments

@filthyfreak
Copy link

First of all, I must give my thanks for this developing this software, it is keeping my headset from turning itself off all the time which is a nuisance.

This issue has previously been mentioned here.

To summarize, SoundKeeper prevents Windows 11 from entering sleep mode. It is not an issue in Windows 10 or older operating systems.

I am not satisfied with the proposed solution of allowing Windows 11 to go into sleep mode no matter what is occurring on the screen, for example you could be watching a movie or Youtube video and the computer will go to sleep.

With Windows 10 updates becoming deprecated soon perhaps it's time to revisit this problem and implement a proper solution?

@vrubleg
Copy link
Owner

vrubleg commented Oct 13, 2024

Microsoft needs to either provide a way to stream audio using WASAPI without blocking automatic sleep mode (that is currently not possible), or fix NtPowerInformation(SystemPowerInformation, ...) (that does not work on Windows 11).

I have ideas how to workaround it, but the priority of this task is low since I don't use Windows 11 yet, and there is a tiny hope that Microsoft could still eventually provide the required API in newer updates.

Manual sleep mode should work. For now, you can just set up a hotkey like Win+Ctrl+L that locks your desktop and switches your PC to sleep mode, and use it whenever you leave your computer for long time.

@Sipu
Copy link

Sipu commented Nov 15, 2024

You can use windows task scheduler to create an event based trigger for soundkeeper which runs it at logon and kills/runs it it on workstation lock/unlock optionally. There are a ton of other types of events that are available in the task scheduler for a new task that may be suitable to improve this use-case.

This is also a method i would recommend for running this in the first place instead of adding it to the start-up. This allows also the program to optionally die on workstation lock in case there are long term memory issues. I have this triggered to run at logon, but i personally don't need the lock/unlock events because this is a desktop that never sleeps :)

@vrubleg You could consider creating some pre-baked taskmanager tasks that users can import through their task scheduler as part of your package to help set them up and configure them, and updating the readme accordingly :)

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

3 participants