jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.11k stars 311 forks source link

Screen blanks when watching content #101

Open jpmvferreira opened 3 years ago

jpmvferreira commented 3 years ago

Describe the bug The screen blanks when watching content on the Jellyfin client in full screen, when set by the client using the f key and when set by the window manager itself.

System:

Additional context: So far this has only happened to me in Zoom, which has bad compatibility with Linux so I always assumed it was their fault for making it barely Linux compatible, but now it seems to happen with this client as well. Previously in MPV Shim everything worked as expected, and watching videos on youtube in FireFox also brings no trouble.

iwalton3 commented 3 years ago

This is a known issue. There is a dbus module here in the player, but different screen lockers such as xscreensaver do not support dbus to prevent screen blanking. https://github.com/jellyfin/jellyfin-media-player/blob/master/src/power/PowerComponentX11.cpp

Awkor commented 2 years ago

Maybe related to https://github.com/jellyfin/jellyfin-media-player/issues/267?

bgstack15 commented 2 months ago

xscreensaver has a command you can run:

xscreensaver-command --deactivate

MPV can do it with a small user script: https://github.com/mpv-player/mpv/wiki/User-Scripts#lua-scripts I noticed this wrapper command is already in the code base, but perhaps it doesn't work? https://github.com/jellyfin/jellyfin-media-player/blob/3ce21e0c3f2daefe353166f5db1f74cd5cdb6b47/src/power/PowerComponentX11.cpp#L24