elementary/switchboard-plug-power

Don't turn off screen when playing audio option?

peteruithoven opened this issue · 1 comments

One off the things I've struggled with on Linux was preventing sleep when watching youtube video's for example.

Approaches like LightOn.sh, check running processes for specific applications. It, for example, has separate checks for fullscreen flash and the HTML 5 video player for specifically Firefox, Chromium, Chrome, Opera etc. It requires checks for specific video players. Which seems very fragile and not scalable?

Couldn't we cover some of the usecases in a more future proof, robust way with an option like "Don't turn off screen or sleep when playing audio"? Maybe dependent on whether the computer is plugged in, like the "Sleep when inactive for" option?

(I also really like the Prevent screensaver mode from activating idea)

(I understand Videos for example has code to prevent the screensaver and suspension when playing a file)

(My related Stack exchange question: https://elementaryos.stackexchange.com/questions/13896/screen-lock-prevention-when-playing-video-on-os-level)

I'm not sure how, but in Juno it never seems to disable the screen when a video is playing, even in a browser. So this issue is much less relevant.