[opensuse-factory] Videos not disabling screen dimming or locking in Plasma Wayland
Videos do not seem to disable the screen dimming or locking mechanism automatically in Plasma Wayland. Did I miss something, or is this a bug? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2018-04-26 18:45, Chan Ju Ping wrote:
Videos do not seem to disable the screen dimming or locking mechanism automatically in Plasma Wayland.
Did I miss something, or is this a bug?
I think this depends on the particular application you use to view the videos. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
On 2018-04-27 04:06, Chan Ju Ping wrote:
On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. wrote:
I think this depends on the particular application you use to view the videos.
SMPlayer with mpv as the backend.
I'm not familiar with it, but "man mpv" and search for "screensaver" finds things. You could try with the possibilities (--heartbeat-cmd=... or --stop-screensaver). -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
On Friday, 27 April 2018 12:02:01 +08 Carlos E. R. wrote:
On 2018-04-27 04:06, Chan Ju Ping wrote:
On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. wrote:
I think this depends on the particular application you use to view the videos.
SMPlayer with mpv as the backend.
I'm not familiar with it, but "man mpv" and search for "screensaver" finds things. You could try with the possibilities (--heartbeat-cmd=... or --stop-screensaver).
My impression is that settings should be generalised whether on Wayland or X (where there are no problems). Does this mean per application settings is required when using media players under WAyland?
Am 27.04.2018 um 09:54 schrieb Chan Ju Ping:
My impression is that settings should be generalised whether on Wayland or X (where there are no problems). Does this mean per application settings is required when using media players under WAyland?
Wayland is probably just lacking the infrastructure (or QT / Plasma / whoever). IIRC, under X an application could just tell the X server to not blank the screen and the screensaver then would honor that wish. Maybe this is just not implemented for Wayland? -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2018-04-27 09:54, Chan Ju Ping wrote:
On Friday, 27 April 2018 12:02:01 +08 Carlos E. R. wrote:
On 2018-04-27 04:06, Chan Ju Ping wrote:
On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. wrote:
I think this depends on the particular application you use to view the videos.
SMPlayer with mpv as the backend.
I'm not familiar with it, but "man mpv" and search for "screensaver" finds things. You could try with the possibilities (--heartbeat-cmd=... or --stop-screensaver).
My impression is that settings should be generalised whether on Wayland or X (where there are no problems). Does this mean per application settings is required when using media players under WAyland?
Well, each application that displays video must do something to impede screen blanking or screensaver, and the method varies per application and per desktop. For example, one application toggled an indicator LED on the keyboard to emulate keyboard activity, and thus impede the computer from sleeping. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)
On Freitag, 27. April 2018 14:09:56 CEST Carlos E. R. wrote:
On 2018-04-27 09:54, Chan Ju Ping wrote:
On Friday, 27 April 2018 12:02:01 +08 Carlos E. R. wrote:
On 2018-04-27 04:06, Chan Ju Ping wrote:
On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. wrote:
I think this depends on the particular application you use to view the videos.
SMPlayer with mpv as the backend.
I'm not familiar with it, but "man mpv" and search for "screensaver" finds things. You could try with the possibilities (--heartbeat-cmd=... or --stop-screensaver).
My impression is that settings should be generalised whether on Wayland or X (where there are no problems). Does this mean per application settings is required when using media players under WAyland?
Well, each application that displays video must do something to impede screen blanking or screensaver, and the method varies per application and per desktop.
For example, one application toggled an indicator LED on the keyboard to emulate keyboard activity, and thus impede the computer from sleeping.
Carlos, if you don't have a clue what you are talking about, please refrain from endless posts on this list. There *is* a generalized method for screensaver inhibition, org.freedesktop.ScreenSaver https://standards.freedesktop.org/idle-inhibit-spec/latest/re01.html Regards, Stefan-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2018-04-27 16:15, Brüns, Stefan wrote:
On Freitag, 27. April 2018 14:09:56 CEST Carlos E. R. wrote:
On 2018-04-27 09:54, Chan Ju Ping wrote:
On Friday, 27 April 2018 12:02:01 +08 Carlos E. R. wrote:
On 2018-04-27 04:06, Chan Ju Ping wrote:
On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. wrote:
I think this depends on the particular application you use to view the videos.
SMPlayer with mpv as the backend.
I'm not familiar with it, but "man mpv" and search for "screensaver" finds things. You could try with the possibilities (--heartbeat-cmd=... or --stop-screensaver).
My impression is that settings should be generalised whether on Wayland or X (where there are no problems). Does this mean per application settings is required when using media players under WAyland?
Well, each application that displays video must do something to impede screen blanking or screensaver, and the method varies per application and per desktop.
For example, one application toggled an indicator LED on the keyboard to emulate keyboard activity, and thus impede the computer from sleeping.
Carlos,
if you don't have a clue what you are talking about, please refrain from endless posts on this list.
There *is* a generalized method for screensaver inhibition, org.freedesktop.ScreenSaver
https://standards.freedesktop.org/idle-inhibit-spec/latest/re01.html
Well,
I'm happy to hear about it, but not all video players know about it. You could have said that information earlier. - -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlrjMlAACgkQja8UbcUWM1x0hQD/d5ajxf0eQ5+J8uld066fInlh 1kd5mGG52R9wv0WI5T4A/3jAyZ+ElRld+fafmydHpDDI1xcltHdW/aaQHZkvOGl7 =u9NP -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 27 Apr 2018 16:23:12 +0200
"Carlos E. R."
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2018-04-27 16:15, Brüns, Stefan wrote:
On Freitag, 27. April 2018 14:09:56 CEST Carlos E. R. wrote:
On 2018-04-27 09:54, Chan Ju Ping wrote:
On Friday, 27 April 2018 12:02:01 +08 Carlos E. R. wrote:
On 2018-04-27 04:06, Chan Ju Ping wrote:
On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. wrote: > I think this depends on the particular application you > use to view the videos.
SMPlayer with mpv as the backend.
I'm not familiar with it, but "man mpv" and search for "screensaver" finds things. You could try with the possibilities (--heartbeat-cmd=... or --stop-screensaver).
My impression is that settings should be generalised whether on Wayland or X (where there are no problems). Does this mean per application settings is required when using media players under WAyland?
Well, each application that displays video must do something to impede screen blanking or screensaver, and the method varies per application and per desktop.
For example, one application toggled an indicator LED on the keyboard to emulate keyboard activity, and thus impede the computer from sleeping.
Carlos,
if you don't have a clue what you are talking about, please refrain from endless posts on this list.
There *is* a generalized method for screensaver inhibition, org.freedesktop.ScreenSaver
https://standards.freedesktop.org/idle-inhibit-spec/latest/re01.html
Well,
I'm happy to hear about it, but not all video players know about it.
You could have said that information earlier.
And you can set up the --heartbeat-cmd= of mpv in the mpv package to a command that uses this interface so the users do not need to configure it. That's what the "distribution integration" thing is about. Unfortunately, some media players like web browsers do not have this configuration option so cannot be configured to prevent screen blanking. Thanks Michal -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJa40CHAAoJEFCz6i1PzvpbhYkH/3nfLo20AV0d6jj7wEa8P/oU HUHM8Rl5JZCdICZzPu4jvTRL/Oz1AMeXlg4k4jyqRmAobSKRQirrSUTjPoxP6ySO JT2dK3qXTihAqLENRxqp4GK+dqD5itl3GHXI8XA6e+rynLkWpl2B/b9TlKl0DBy1 HU5338NqlbeA68nqrb4yqSMb3eR+qIzpSvExrnrzaKEX2cwcnMa/2A+FSHlsomNg 1ThC8vqL4asypLsu6xwuPfYl+5vBJJNcO0XveCZWRzVYYOhL8kPw61U8mGnvalc1 E2o9vojzqfART1RfT9VmOcN9n4H0BAo3irNjZpTdI+E9DwaOejAkePxMxUChupY= =KsCx -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2018-04-27 17:23, Michal Suchánek wrote:
On Fri, 27 Apr 2018 16:23:12 +0200 "Carlos E. R." <> wrote:
On 2018-04-27 16:15, Brüns, Stefan wrote:
On Freitag, 27. April 2018 14:09:56 CEST Carlos E. R. wrote:
On 2018-04-27 09:54, Chan Ju Ping wrote:
On Friday, 27 April 2018 12:02:01 +08 Carlos E. R. wrote:
On 2018-04-27 04:06, Chan Ju Ping wrote: > On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. > wrote: >> I think this depends on the particular application >> you use to view the videos. > > SMPlayer with mpv as the backend.
I'm not familiar with it, but "man mpv" and search for "screensaver" finds things. You could try with the possibilities (--heartbeat-cmd=... or --stop-screensaver).
My impression is that settings should be generalised whether on Wayland or X (where there are no problems). Does this mean per application settings is required when using media players under WAyland?
Well, each application that displays video must do something to impede screen blanking or screensaver, and the method varies per application and per desktop.
For example, one application toggled an indicator LED on the keyboard to emulate keyboard activity, and thus impede the computer from sleeping.
Carlos,
if you don't have a clue what you are talking about, please refrain from endless posts on this list.
There *is* a generalized method for screensaver inhibition, org.freedesktop.ScreenSaver
https://standards.freedesktop.org/idle-inhibit-spec/latest/re01.html
Well,
I'm happy to hear about it, but not all video players know about it.
You could have said that information earlier.
And you can set up the --heartbeat-cmd= of mpv in the mpv package to a command that uses this interface so the users do not need to configure it. That's what the "distribution integration" thing is about.
Well, yes, I suggested using this option as soon as I found out the OP is using mpv, but it is a hack as ugly as toggling the keyboard LED. And it is deprecated, says man mpv. It simply calls an external command to tell the screensaver not to start, twice per minute. I would call integration having an API to call internally on the desktop, as the link describes, not this. Using --stop-screensaver is cleaner, but the man says does not always work. I don't clearly see if it is using the freedesktop api or not.
Unfortunately, some media players like web browsers do not have this configuration option so cannot be configured to prevent screen blanking.
- -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlrjaNkACgkQja8UbcUWM1yxCQD/XFLJwEK7zIEtz/70RXtDkTAN q3Z6mjc12Om+xGU5ozcBAJ2GajtJnIzD2hmHakfydV64d+RDUD/P82ZvUnZqq+tr =dJ6W -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Il giorno Fri, 27 Apr 2018 10:06:11 +0800
Chan Ju Ping
SMPlayer with mpv as the backend.
Does SMPlayer support the power management inhibition interface? That's what Plasma uses to suspend screen locking / energy management when there's a full screen video.
Chan Ju Ping wrote:
On Friday, 27 April 2018 01:24:54 +08 Carlos E. R. wrote:
I think this depends on the particular application you use to view the videos.
SMPlayer with mpv as the backend.
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? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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.
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) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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
Le vendredi 27 avril 2018 à 16:56 +0200, Dominique Leuenberger / DimStar a écrit :
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.
There is already a wayland protocol for that ( https://github.com/wayla nd-project/wayland-protocols/tree/master/unstable/idle-inhibit ) but I'm not sure how if any DE or toolkit implement it.. -- Frederic Crozat Enterprise Desktop Release Manager SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
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.
participants (9)
-
Brüns, Stefan
-
Carlos E. R.
-
Chan Ju Ping
-
Dominique Leuenberger / DimStar
-
Frederic Crozat
-
Luca Beltrame
-
Michal Suchánek
-
Peter Suetterlin
-
Stefan Seyfried