On Friday, 27 April 2018 22:56:35 +08 Dominique Leuenberger / DimStar wrote:
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)
Thanks for the clarification. And I have run through videos with Dragon Player and VLC, which seems to properly inhibit the dimming and locking settings. Looks like this is a more convenient workaround at present.