How disable DPMS screen blanking when playing videos?
Moderator: trava90
Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
How disable DPMS screen blanking when playing videos?
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.
-
- Fanatic
- Posts: 137
- Joined: 2017-09-11, 14:28
Re: How disable DPMS screen blanking when playing videos?
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…
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?
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.
* 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.
Re: How disable DPMS screen blanking when playing videos?
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?
you probably already tried this but just in case...
mrtok
Code: Select all
xset -dpms
Code: Select all
xset s off
Re: How disable DPMS screen blanking when playing videos?
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
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?
That turns off screen blanking *completely*. What the browser should do is suspend the screen blanker only when it's playing video.mrtok wrote: ↑2019-03-22, 13:09you probably already tried this but just in case...
Code: Select all
xset -dpms
mrtokCode: Select all
xset s off
Re: How disable DPMS screen blanking when playing videos?
my solution:
install xdotool
create hidden file with name .fakekeyb_awk.sh
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 when playing movie in palemoon and adjust "300" to lower value than $usage
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
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