- teeedubbGuest
Caffeine + STES does not work on Win 11
Wed Jan 31, 2024 10:57 pm
Hi,
I have been using Caffeinie for a long time and am grateful for its functionality. I only just discovered the STES flag and have tried to use it to stop stray keypresses in Putty, but it does not work on multiple Win 11 machines.
Googling a little it seems the SetThreadExecutionState API has changed in Win 11 and requires parameters. See the first answer on this stack exchange page:
https://stackoverflow.com/questions/72436579/setthreadexecutionstatees-system-required-does-not-prevent-system-sleep-on-win
Is there any chance the app can be updated to include the new changes so the stes method is able to work on Win 11?
Thanks
I have been using Caffeinie for a long time and am grateful for its functionality. I only just discovered the STES flag and have tried to use it to stop stray keypresses in Putty, but it does not work on multiple Win 11 machines.
Googling a little it seems the SetThreadExecutionState API has changed in Win 11 and requires parameters. See the first answer on this stack exchange page:
https://stackoverflow.com/questions/72436579/setthreadexecutionstatees-system-required-does-not-prevent-system-sleep-on-win
Is there any chance the app can be updated to include the new changes so the stes method is able to work on Win 11?
Thanks
Re: Caffeine + STES does not work on Win 11
Fri Feb 02, 2024 8:48 pm
Can you try this build out please:
https://www.dropbox.com/scl/fi/gc15arh9eu2f9yscjsk01/caffeine64_or_continuous.zip?rlkey=j2jgimz75qtad8m32cbo9xxac&dl=0
It's got the extra flag added - does it work better under W11?
Tom
https://www.dropbox.com/scl/fi/gc15arh9eu2f9yscjsk01/caffeine64_or_continuous.zip?rlkey=j2jgimz75qtad8m32cbo9xxac&dl=0
It's got the extra flag added - does it work better under W11?
Tom
- teeedubbGuest
Re: Caffeine + STES does not work on Win 11
Mon Feb 05, 2024 10:35 am
Thanks you - I will try it with the "-allowss -stes" arguments and report back.
- teeedubbGuest
Re: Caffeine + STES does not work on Win 11
Tue Feb 06, 2024 10:27 am
I have tested the version above on one PC two times and it works perfectly. Screensaver activates and the computer does not shutdown.
I will test more extensively and on some other win 11 machines and let you know if it does not work
Thank you very much.
I will test more extensively and on some other win 11 machines and let you know if it does not work
Thank you very much.
- teeedubbGuest
Re: Caffeine + STES does not work on Win 11
Sat Feb 17, 2024 12:05 am
I have tested on another machine (a ryzen based pc, the other, initial machine, was a intel machince... not sure if that matters though) and with -allowss argument caffeine works perfectly.
Thank you!
Thank you!
- eklektycznyGuest
Please consider adding this fix to release
Sat Nov 02, 2024 11:48 am
I've spent some time looking for an alternative to Caffeine for Win11 to find this version, which works perfectly.
Re: Caffeine + STES does not work on Win 11
Sat Nov 02, 2024 6:05 pm
I should have updated the release version a long while back - I've just done so. It's always a nervous thing replacing a build which is known to be OK with one hot off the assembly line, but hey. I can always roll it back.
Tom
Tom
Permissions in this forum:
You can reply to topics in this forum