Page 1 of 1

How disable DPMS screen blanking when playing videos?

Posted: 2018-04-03, 10:12
by terranigma
System doesn't know there is a video playback in Browser (Pale Moon in this case) and dpms shouldn't have triggered for blank/dim the screen during playback. Other video playback apps (and Chromium) handle this issue very well on Linux. This is an old issue related with mozilla derived projects and I wonder is it possible that Pale Moon devs implement their own solution (except offering manually disabling dpms of course).

Re: How disable DPMS screen blanking when playing videos?

Posted: 2018-04-04, 20:23
by tooshorttoolong
My solution is to use the "watch with mpv" addon (aka mpv-youtube-dl-binding), with mpv and youtube-dl. This way I get a good video player.

If Palemoon was to implement a proper anti-screensaver system on Linux, it would probably use xdg-screensaver…

Re: How disable DPMS screen blanking when playing videos?

Posted: 2018-04-05, 20:53
by terranigma
Yes, mpv-youtube-dl-binding also providing hardware accelerated video playback as well as viewtube + vlc plugin (which I use) but these solutions don't provide flexibility and well integrated user interface that native html5 player does.

* Native html5 video player with x11 dpms support
* Hardware accelerated video playback (vdpau or vaapi)

These are the features that I miss most with Pale Moon on Linux atm besides some minor responsiveness issues.

Re: How disable DPMS screen blanking when playing videos?

Posted: 2019-02-08, 10:01
by terranigma
This issue still presents on PaleMoon 28. Firefox has fixed this issue at some point but which version or commit I can' find out. Probably post version 57.

Re: How disable DPMS screen blanking when playing videos?

Posted: 2019-03-22, 13:09
by mrtok
you probably already tried this but just in case...

Code: Select all

xset -dpms

Code: Select all

xset s off
mrtok

Re: How disable DPMS screen blanking when playing videos?

Posted: 2019-06-05, 09:29
by paulus
Turning off dpms before launching a browser is "ingeniously" #sarcasm
v.2.8.1 does not stop the screensaver when fullscreen video :( Add in fix-plans for 2025 ;)

Re: How disable DPMS screen blanking when playing videos?

Posted: 2019-06-05, 15:32
by Axatax
mrtok wrote: ↑
2019-03-22, 13:09
you probably already tried this but just in case...

Code: Select all

xset -dpms

Code: Select all

xset s off
mrtok
That turns off screen blanking *completely*. What the browser should do is suspend the screen blanker only when it's playing video.

Re: How disable DPMS screen blanking when playing videos?

Posted: 2019-06-06, 20:12
by pr0fessor
my solution:
install xdotool
create hidden file with name .fakekeyb_awk.sh

Code: Select all

#!/bin/sh
#prevent standby when firefox/chrome/palemoon playing video
#first make this file executable: chmod +x .fakekeyb_awk.sh
while true; do
sleep 60
usage=$(top -bn1|grep Content|awk '{print $9; exit}')0
[ $usage -gt 300 ] && xdotool key shift
usage=$(top -bn1|grep plugin|awk '{print $9; exit}')0
[ $usage -gt 300 ] && xdotool key shift
usage=$(top -bn1|grep chrome|awk '{print $9; exit}')0
[ $usage -gt 300 ] && xdotool key shift
usage=$(top -bn1|grep palemoon|awk '{print $9; exit}')0
[ $usage -gt 300 ] && xdotool key shift
done
make it executable with chmod + x .fakekeyb_awk.sh
then read for your linux (in mine (lubuntu 12.04): sudo nano /etc/xdg/lxsession/Lubuntu/autostart and add path to created file) how to autostart when login... to work correctly check usage

Code: Select all

echo $(top -bn1|grep palemoon|awk '{print $9; exit}')0
when playing movie in palemoon and adjust "300" to lower value than $usage