swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

When playing a video in a web browser the screen locks #173

Closed hramrach closed 1 month ago

hramrach commented 1 month ago

This is not seen under X11

hramrach commented 1 month ago

This is #104, still not resolved

kennylevinsen commented 1 month ago

swayidle does not determine when something is idle, it only reacts to sway saying that the system has been idle for longer than the requested idle timeout.

If the screen locks while playing a video, it is most likely a case of the client (the browser) not using Wayland idle inhibition protocol correctly so that sway does not know to not trigger idle events.

kennylevinsen commented 1 month ago

(While I closed the issue as it is not a swayidle problem, feel free to be more specific about which browser and version.)

hramrach commented 1 month ago

Chromium, any version, as described in #104

kennylevinsen commented 1 month ago

Works fine with chromium here. The browser needs to be run in Wayland mode though: --ozone-platform=wayland --enable-features=UseOzonePlatform. You can usually put that in a ~/.config/chromium-flags.conf` or something, depending on the wrapper script provided by your distro.

hramrach commented 1 month ago

The current option is --ozone-platform-hint=auto, with that it seems to work, thanks.