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
MPV not preventing blank screen while watching a video #5459
Comments
After some testing I found that if I run mpv under a "Gnome on X.org" session then the blank screen doesn't appear during video playback, which solves the problem. I also tested the |
Maybe a duplicate of #5015 . Also, running mpv with gnome-session-inhibit solves the problem, although I find it a bit hacky and would prefer that mpv does inhibit idle by itself:
|
If I understand correctly mpv uses |
is your mpv running under wayland or xwayland? |
@orbea Sure, I'll try to find a way to check that Gnome 3 respects xdg-screensaver. All I can tell for now is that running @glaubersm my mpv is running under Wayland. I will follow the Gnome bug thread you mentioned. It is not exactly the same issue that I have though, since the screen blanking during playback is only happening with mpv (Firefox and VLC are fine). |
After some testing I can say that Gnome 3 seems to respect Note for Fedora users: Digging deeper into mpv, I found that it doesn't use the wayland code though my Gnome session runs on Wayland.
and
See https://gist.github.com/zakora/8f004063d2d32b39bdcd706fdc4481fe#file-mpv-log-L747 (lines 747 and 762). I would have expected to see the logging strings The git history shows that there was a lot of work done on Wayland recently by @atomnuker . Maybe he could give us some insights? |
Can you try with |
This option is not available in mpv 0.28.0:
Also,
|
Your mpv is built without Wayland support.
|
I just tested mpv 0.27 in Gnome 3.26.2, Wayland session, Arch Linux |
0.27.0 is too old and lacks many bugfixes for Wayland support. Also, the lack of window decorations is a Wayland protocol/compositor issue, not our problem. We won’t implement client-side decorations in the foreseeable future. |
installed 0.28 from AUR some minutes ago. |
@lachs0r Indeed, my mpv was not build with Wayland support. I'll try to build it manually or ask the package maintainer to enable wayland support. @glaubersm Could you check |
I installed mpv-full. Wayland support is enabled. |
Probably using a GTK/Gnome version without the server side decoration protocol then. I'm fairly sure atomnuker implemented it. |
As far as gnome that bug report does seem relevant. Doesn't matter if mpv builds with support for the protocol as the current compositor doesn't support it. Ex. 0.024][v][vo/gpu/opengl] Initializing GPU context 'wayland' |
So to summarise:
If points 1 through 3 are not applicable, it's not upstream mpv's issue. |
Both Gnome and mpv 0.28 use Wayland backend on my system. Monitor turns off during video playback anyway. |
Where's the full debug log then, @glaubersm ? |
See attachment. Thanks. |
Well there's your problem. |
Which Wayland compositor currently supports any of these protocols? |
KWin supports both of them. Sway supports the decorations protocol. GNOME should be supporting the decorations protocol too in an upcoming release of Gtk, if I remember correctly. |
Thanks. I will test mpv 0.28 under KDE Plasma 5.12 Wayland later. |
Just tested... mpv 0.28 keeps my monitor active under KDE Plasma Wayland. |
To sum up, in order to circumvent the screen blanking under a Wayland session:
If this is correct we should close the issue, as mpv is not at fault. |
I can be wrong, but I think Gnome currently does not support screensavers. |
The idle-inhibit protocol is being implemented.
GTK supports it, but GNOME (aka Mutter) doesn't. It means mpv won't be able to use the decorations protocol in a GNOME session. |
Closing for now, as the original screen blanking issue is solved by having the latest mpv and capable environment. |
On 02/07/2018 08:27 AM, zakora wrote:
Closing for now, as the original screen blanking issue is solved by
having the latest mpv and capable environment.
I will reopen if I have the issue when I can test mpv 0.28 with
Wayland support under Gnome Wayland.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5459 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFr3We8LWmgQPG5_nYUF5DuLyKbEq4xrks5tSaTLgaJpZM4RwWVW>.
wayland support for mpv 0.28+ in gnome won't solve your issue, I believe
you'll also need support for the inhibit protocol in mutter. If that's
so you may check here on occasion.
https://gitlab.gnome.org/GNOME/mutter/issues/20
|
Thanks for the valuable info @mc4man , I'll keep on eye on the Gnome issue. |
I know this issue is closed, but on gnome it works to set up an inhibitor. It works with the dbus API of 'org.gnome.SessionManager'. I made a small example in python for inhibiting when mpd is playing, code is very simple: https://github.com/MrMagne/mpdIdleInhibitor/blob/master/mpdIdleInhibitor.py |
Bug still present. To fix: https://wiki.archlinux.org/title/Mpv#GNOME_Blank_screen_(Wayland) |
Same issue under ubuntu 22.04 (20.04 was fine), wayland, mpv 2.0.33-focal1 |
Well, I had the same problem in almost 2023, and that is why I came here in the first place. But it may not be a "bug". Installing this solved the problem, and its author says:
I do not know well about Linux, but if Gnome's way is not "the standard", then maybe it is Gnome's fault that it does not follow the standard. |
mpv version and platform
OS: Fedora 27
Gnome 3.26.2 on Wayland
Reproduction steps
mpv --no-config TalkativeCat2012.mp4
ormpv --fullscreen --no-config TalkativeCat2012.mp4
Expected behavior
Video playing without getting a blank screen after 1 min.
Actual behavior
After 1 min, the blank screen appears.
Log file
https://gist.github.com/zakora/4474d0e31996a9befda59336d8774750#file-mpv-log
Sample files
https://ia800609.us.archive.org/26/items/TheTalkativeCat/TalkativeCat2012.mp4
The text was updated successfully, but these errors were encountered: