Zhorn Software
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
teeedubb
Guest

Caffeine + STES does not work on Win 11 Empty 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
Admin
Admin
Admin
Posts : 526
Join date : 2018-03-30
Location : London
http://www.zhornsoftware.co.uk

Caffeine + STES does not work on Win 11 Empty 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
avatar
teeedubb
Guest

Caffeine + STES does not work on Win 11 Empty 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.
avatar
teeedubb
Guest

Caffeine + STES does not work on Win 11 Empty 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.
avatar
teeedubb
Guest

Caffeine + STES does not work on Win 11 Empty 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!
Sponsored content

Caffeine + STES does not work on Win 11 Empty Re: Caffeine + STES does not work on Win 11

Back to top
Permissions in this forum:
You can reply to topics in this forum