Closed roman-holovin closed 10 years ago
Normally, the problem is that GNOME enables the screensaver while mpv is playing...
Anyway, I'm pretty sure this is a GNOME problem. We enable the screensaver (which covers turning off display) again after exit with XScreenSaverSuspend, or if that is not available, with DPMSForceLevel. Even if we didn't, there would be a timeout XResetScreenSaver (but not if DPMS is used - probably what happens here). In any case, the gnome screenlocker could just override application settings.
I'd suggest reporting this behavior to whoever maintains the GNOME session manager.
Some trivia:
There is a DBus interface called org.freedesktop.PowerManagement
which works with at least XFCE and KDE, but sure enough, GNOME wants to be a special snowflake and has its own interface in the session manager, called org.gnome.SessionManager
. And to begin with, that former DBus interface isn't actually specified by freedesktop.org, but these DEs just use the freedesktop namespace!
There has been a related issue in VLC for a very long time: https://trac.videolan.org/vlc/ticket/4739
To sum it up: Fuck GNOME. And freedesktop.org twice.
Well, when I got this issue, I can manually do "xset dpms force off", and after turning on display, gnome will be able to turn off diplay again.
To sum it up: Fuck GNOME. And freedesktop.org twice.
OK. Closing, since there haven't been any new developments anyway.
Gnome has feature to turn display off if user locks desktop. But this doesn't happen after mpv was launched and successfully exited.