-
Couldn't load subscription status.
- Fork 23
Description
Hi,
In my testing on Win11, the "Ignore sleep prevention requests from applications such as media playback" setting only seems to work when Windows Media Player (modern one--not the legacy one) is playing full-screen. When modern WMP isn't full screen, idle logoffs still occur. I've also tried other apps too (VLC, legacy WMP, browsers @youtube or podcasts) and they also idle-logoff whether full-screen or not.
Does anyone else have this experience or have a solution? It would be nice to implement idle-logoff on a classroom instructor computer to prevent idle logoff if they are playing any video or just audio too.
Devs:
I found that the command "powercfg.exe /requests" seems to always indicate that some audio or video is playing--at least on Win10/11. Tip: Create a batch file that continuously runs this command. This led me to find the project @ https://github.com/diversenok/Powercfg (which itself has dependencies @ https://github.com/diversenok/phnt). This project queries the low level Windows API to extract the info that the command shows. Any thoughts on implementing this? Or if I can figure how to implement it within idle-logoff's source code, would you accept a PR?
cheers,
Scott