sammoth / foo_mpv

mpv video player UI element for foobar2000
GNU General Public License v3.0
57 stars 2 forks source link

prevents screensaver while paused and playing #18

Open FoilGear opened 4 months ago

FoilGear commented 4 months ago

I use foobar2000 v2.1.5 (x86), and use MPV as an Album Art Viewer replacement that also displays any video contents, and I love it, however, my monitor stays awake at night whilst foobar is open, even while paused and with nothing else happening in the background, no activity. I used CMD powercfg /requests to see what might be keeping my monitor up. Foobar appears, but doesn't clarify the source problem. I looked up if MPV itself had these issues, and found that other users (albeit on Linux, or other distros of Linux?) have had issues in the past with screensaver/standby not working "until restart"? https://bbs.archlinux.org/viewtopic.php?id=294438 (its a different OS so idk if it holds significance here.) I wanted to make sure it was coming from foo_mpv, so I changed my monitor standby time to 1 minute, and enabled the previously disabled screensaver, in case relevant, and I did these following tests, no particular order:

Allows screensaver/standby:

Does not allow screensaver/standby:

There are options elsewhere in my foobar pertaining to preventing screensaver/standby, and both I could find are not currently enabled. Whether adding an additional option to prevent standby for MPV, or relegating this function to foobar itself, I would really appreciate a fix for this. Thank you.