GNOME Bugzilla – Bug 709500
Apps running on Xwayland don't inhibit screen blanking
Last modified: 2021-07-05 14:14:36 UTC
Friends, after a time of inactivity (say, watching a movie), screen is getting dark time to time. I have set setting->power->blank screen=>never and dim screen when inactive=>off.
Sorry, I forget to post system details: $ rpm -qa|/usr/bin/grep ^kernel kernel-modules-extra-3.11.3-301.fc20.x86_64 kernel-3.11.3-301.fc20.x86_64 kernel-headers-3.11.3-301.fc20.x86_64 kernel-devel-3.11.3-301.fc20.x86_64 $ rpm -qa|/usr/bin/grep gnome-shell gnome-shell-3.10.0.1-1.fc20.x86_64
Is it still a problem with a recent version of GNOME (3.24 or later)? Is xscreensaver installed and running?
yes..it is still a problem in gnome 3.26 (Fedora 27).
Rudra: Is xscreensaver installed and running?
No, Its all from gnome: rpm -q xscreensaver package xscreensaver is not installed In power management, I have screen to get dark after 5 min of inactivity, but I think that should not happen while I have some video running in full screen.
I can confirm this problem on Arch Linux (Gnome 3.26.2) only under Wayland. My monitor gets dark and my session is locked during video playback using any of these apps (all running on Xwayland): vlc mpv mplayer snplayer (both mpv and mplayer backends) chromium Opera browser Vivaldi browser My monitor remains active when I use Totem player (Wayland native). Dragon player and Firefox (tested html5 video in youtube) are the only Xwayland apps that keep my monitor active during video playback.
(In reply to Rudra from comment #5) > In power management, I have screen to get dark after 5 min of inactivity, > but I think that should not happen while I have some video running in full > screen. You realise that is a completely different issue from what you initially reported, right? In comment #1 you said it was set to never dim, now you say it's set to dim and the issue is that video players don't inhibit it. (In reply to Strangiato from comment #6) > I can confirm this problem on Arch Linux (Gnome 3.26.2) only under Wayland. > My monitor gets dark and my session is locked during video playback using > any of these apps (all running on Xwayland): > vlc > mpv > mplayer > snplayer (both mpv and mplayer backends) > chromium > Opera browser > Vivaldi browser > > My monitor remains active when I use Totem player (Wayland native). > Dragon player and Firefox (tested html5 video in youtube) are the only > Xwayland apps that keep my monitor active during video playback. Thanks, those details are very useful. Updating the summary as a consequence.
Currently the only way to suspend the screen blanking is to use the org.freedesktop.ScreenSaver API. I suspect those clients use some X11 specific method, so the quickest way for a client to solve the issue is to just use the API tied to a windowing system. Alternatives that can be investigated is to see if it is possible to map XScreenSaverSuspend to the idle-inhibit Wayland protocol (which would need an implementation in mutter).
(In reply to Jonas Ådahl from comment #8) ... > Alternatives that can be investigated is to see if it is possible to map > XScreenSaverSuspend to the idle-inhibit Wayland protocol (which would need > an implementation in mutter). This is assuming these clients actually use this protocol and not some fake-input hack. Such hacks I don't see us supporting.
Any progress on this big usability problem?
Strangiato: See the previous comments in this very ticket.
Gnome 3.28 has the same problem.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.