On Sun, 21 Mar 2021 15:13:09 -0700 John Jason Jordan <[email protected]> wrote:
> On Sun, 21 Mar 2021 13:59:58 -0700 > Dick Steffens <[email protected]> dijo: > > >Is there a way to tell the computer to suspend power management while > >watching a video that's longer than the set timeout? > > > >OS is Zubuntu 20.04 with XFCE. > > There is a setting in VLC to disable power management (i.e., stop the > screen saver from coming on) while watching a video. It worked great > until 18.04, and then stopped working. I now have 20.04 and it still > doesn't work. > > When it first stopped working I searched the net and found advice on > how to get it working again, but none of the suggestions ever worked. The screensaver is provided by the xscreensaver package. It depends on what actually going in. If your display is actually powering off that's handled by DPMS (Xorg display power managment) and can be configured via ~/.Xresources. I found this in MPV's man page: Disabling Screensaver By default, mpv tries to disable the OS screensaver during playback (only if a VO us‐ ing the OS GUI API is active). --stop-screensaver=no disables this. A common problem is that Linux desktop environments ignore the standard screensaver APIs on which mpv relies. In particular, mpv uses the Screen Saver extension (XSS) on X11, and the idle-inhibit on Wayland. GNOME is one of the worst offenders, and ignores even the now widely supported idle-inhibit protocol. (This is either due to a combination of malice and incompe‐ tence, but since implementing this protocol would only take a few lines of code, it is most likely the former. You will also notice how GNOME advocates react offended whenever their sabotage is pointed out, which indicates either hypocrisy, or even worse ignorance.) Such incompatible desktop environments (i.e. which ignore standards) typically re‐ quire using a DBus API. This is ridiculous in several ways. The immediate practical problem is that it would require adding a quite unwieldy dependency for a DBus li‐ brary, somehow integrating its mainloop into mpv, and other generally unacceptable things. However, since mpv does not officially support GNOME, this is not much of a problem. If you are one of those miserable users who want to use mpv on GNOME, report a bug on the GNOME issue tracker: https://gitlab.gnome.org/groups/GNOME/-/issues Alternatively, you may be able to write a Lua script that calls the xdg-screensaver command line program. (By the way, this a command line program is an utterly horrible kludge that tries to identify your DE, and then tries to send the correct DBus com‐ mand via a DBus CLI tool.) If you find the idea of having to write a script just so your screensaver doesn't kick in ridiculous, do not use GNOME, or use GNOME video software instead of mpv (good luck). Before mpv 0.33.0, the X11 backend ran xdg-screensaver reset in 10 second intervals when not paused. This hack was removed in 0.33.0. _______________________________________________ PLUG: https://pdxlinux.org PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
