How disable DPMS screen blanking when playing videos?

Support and discussions for the x86/x64 Linux version of Pale Moon.

Moderators: trava90, satrow

User avatar
terranigma
Apollo supporter
Apollo supporter
Posts: 36
Joined: 2018-03-10, 01:46

How disable DPMS screen blanking when playing videos?

Unread post by terranigma » 2018-04-03, 10:12

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).
Last edited by terranigma on 2018-04-03, 20:51, edited 1 time in total.

tooshorttoolong
Fanatic
Fanatic
Posts: 130
Joined: 2017-09-11, 14:28

Re: How disable DPMS screen blanking when playing videos?

Unread post by tooshorttoolong » 2018-04-04, 20:23

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…

User avatar
terranigma
Apollo supporter
Apollo supporter
Posts: 36
Joined: 2018-03-10, 01:46

Re: How disable DPMS screen blanking when playing videos?

Unread post by terranigma » 2018-04-05, 20:53

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.
Last edited by terranigma on 2018-04-05, 21:24, edited 1 time in total.

User avatar
terranigma
Apollo supporter
Apollo supporter
Posts: 36
Joined: 2018-03-10, 01:46

Re: How disable DPMS screen blanking when playing videos?

Unread post by terranigma » 2019-02-08, 10:01

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.

mrtok
Newbie
Newbie
Posts: 6
Joined: 2019-03-17, 13:11

Re: How disable DPMS screen blanking when playing videos?

Unread post by mrtok » 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

paulus
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: 2016-02-10, 13:32

Re: How disable DPMS screen blanking when playing videos?

Unread post by paulus » 2019-06-05, 09:29

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 ;)

Axatax
Apollo supporter
Apollo supporter
Posts: 30
Joined: 2018-05-17, 14:05

Re: How disable DPMS screen blanking when playing videos?

Unread post by Axatax » 2019-06-05, 15:32

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.

User avatar
pr0fessor
Newbie
Newbie
Posts: 6
Joined: 2018-08-31, 16:55

Re: How disable DPMS screen blanking when playing videos?

Unread post by pr0fessor » 2019-06-06, 20:12

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

Post Reply