You are not logged in.

#1 2021-11-14 10:16:19

860lacov
Member
Registered: 2020-05-02
Posts: 452

MPV blank screen warning in Gnome Wayland (Failed to execute inhibit)

When I run a movie from terminal I get:

[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.

I've found GNOME Blank_screen (Wayland)
I've changed

Exec=mpv --player-operation-mode=pseudo-gui -- %U

to

Exec=gnome-session-inhibit mpv --player-operation-mode=pseudo-gui -- %U

and It works for movies started by mouse click from Nautilus.
I wanted to do similar thing as an alias in .bashrc
With:
alias mpv='gnome-session-inhibit inhibit mpv'
or
alias mpv='gnome-session-inhibit --inhibit idle mpv'
or
alias mpv='exec=gnome-session-inhibit mpv'
or
alias mpv=gnome-session-inhibit mpv'

I get an error,

Failed to execute inhibit

Offline

Board footer

Powered by FluxBB