-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
[FIX] Power saver blocker disabling after library updates #3519
Conversation
I'm curious how is the lock even working when playing a game, because if we are playing with no other operation then I'm always bad with filtering and negative logic but I think we should remove the then |
yeah me as well, i think it almost instantly unlocks it again The original logic doesn't make sense either, it will prevent from sleeping when a game is simply not installed? |
I think we broke the logic at some point a long time ago. I believe that we used to have two logics: For downloading, etc. We were blocking only the machine to sleep. Looking at the code now in The Electron docs says:
so your logic looks good @Etaash-mathamsetty , but a proper fix would need to include the display-sleep as well. So in the past we used to pass an argument to the 'lock' command. Could be either At some point we removed it and kept only one, which won't work properly. |
fc3296e
to
888014b
Compare
888014b
to
dfc363f
Compare
Any updates here? I NEEEEEEEED this. Ever since I installed heroic my windows machine will not put the display to sleep, nor will it go into suspended mode. Since I don't care to compile a build of heroic myself, I'm going back to the epic launcher (yuck) until this can get merged in. |
you can download the portable binary from https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/actions/runs/8804826042?pr=3519 no need to compile heroic yourself (actually it would be good to have someone test this to check if it solves the issue, since it seems to be system and DE dependent |
On Win 11 pro. Looks like this actually sorta works. I can launch the game and it acquires the screen lock
and then I can exit the game, and the request is released and no long shows
Whereas using the current installer version 2.14.1.321 it will acquire the display power request, but never release it after closing out the game. However this branch still does acquire an EXECUTION lock, so it still prevents the PC from going to sleep while heroic is running (minimized to the system icon tray), but at least it now lets my screens turn off, so slight improvement. |
i don't see any bug in my code but it's possible that there's a bug, will let someone else look into it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested here and everything seems to be working fine
Title, I think this is reason why the power saver blocker doesn't work
Use the following Checklist if you have changed something on the Backend or Frontend: