On Fri, 2018-04-27 at 15:48 +0100, Peter Suetterlin wrote:
Chan Ju Ping wrote:
On Friday, 27 April 2018 18:22:53 +08 Peter Suetterlin wrote:
MPV by itself does stop screen savers when in FS mode - don't know who handles it when used as backend only.
Can you try playing with mpv directly and see if that also starts dimming?
Fired up a video with mpv only. Screen does begin dimming and then locks.
Googling a bit suggests this is mostly an issue of Weston, cf. https://github.com/mpv-player/mpv/issues/589 (scroll down to the end and read newer comments from 2017)
A few things to clarify: * Wayland is mostly a protocol, not an implementation * Weston is a reference implementation, which you will hardly ever run on your system. Certainly not if you run GNOME, Plasma or Enlightenment. They all implement 'their own' compositor, following the wayland protocol. As every DE implements 'the wayland protocol', there are going to be variations on how the various DEs react to things. So, in this case, Plasma would be the source to look at if it handles the screen save inhibit (usually toggled on/off using dbus Now, with weston being a reference implementation, there is of course a certain chance that the DE-Teams will copy/mimmick a good part of the code from there. But, as the bug refrenced by Peter so nicely states in a comment: """ There is currently no way for inhibiting in mpv under wayland. The only way to do it is to use dbus, but I didn't want to introduce another dependency just for wayland outputs. """ And yes, dbus is exactly the way this would be done - in a standardized way, DE-agnostic. Anything else is either simulating keypresses/mousemovements or otherwise tricking X into believing it is being active. Such hacks should be forbidden :) As a 'workaround' one could crete a script to inhibit the screen saver, start mpv and upon termination of mpv allow the screensaver again. This would not be tied to MPV actually playing something, but probably better than what the current situation is (other video players like VLC or TOTEM could possibly handle the screensaver on their own already) Cheers Dominique