New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] Usage of org.freedesktop.ScreenSaver for generic idle inhibit on Wayland? #9275
Comments
mpv will not add support for dbus garbage. There's an open MR on GNOME's side for the non-dbus-garbage method of idle inhibition: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/111 |
Until that MR is done this might be useful to some other flatpak users: (besides myself 🙂 )
(this is better than just blindly inhibiting with an alias as suggested in #7713) |
For the record, I downvoted the "dbus garbage" comment because I'm a KDE+MPV user who refuses to install "GNOME garbage". The D-Bus API is intended to be a cross-desktop standard (that's why it begins with (I have to manually turn off screensaver inhibiting in a specialized MPV wrapper for playing stuff I fall asleep to or my tool for tracking my sleep cycle can't tell real activity apart from MPV's faked input events.) |
I ran into this same issue on KDE under Wayland on Fedora 39. KDE didn't notice a video playing in I forked a version of mpv-freedesktop-screensaver-plugin.c and added it as an I thinking of packaging up the plugin and distributing it like mpv-mpris. P.S. |
Description
Latest mpv is reporting "GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback." while running on GNOME wayland.
mpv/video/out/wayland_common.c
Line 1730 in 2d34898
Other apps started using the org.freedesktop.ScreenSaver interface as an generic way to support idle inhibit. Could this also be a candidate for mpv?
The text was updated successfully, but these errors were encountered: