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

Prevent sleep using recorder mode AWAY_REQUIRED #336

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

jwallet
Copy link
Owner

@jwallet jwallet commented Jan 14, 2021

see if the process gets attached : powercfg /requests

ES_AWAYMODE_REQUIRED

Away mode should be used only by media-recording and media-distribution applications that must perform critical background processing on desktop computers while the computer appears to be sleeping. See Remarks.

https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate

@jwallet jwallet merged commit 4b14144 into master Jan 14, 2021
@jwallet jwallet deleted the prevent-sleep-right-mode branch January 14, 2021 02:25
jwallet added a commit that referenced this pull request Jan 14, 2021
Prevent sleep using recorder mode AWAY_REQUIRED
@jwallet jwallet mentioned this pull request Jan 14, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant