Issue with screensaver

Hi everyone,

I’m using i3wm and I have an issue with the screensaver/display timeout.

When I play videos from YouTube, Twitch, or any other application, the screen should stay awake during playback. However, after about 8 minutes, the screen still goes black as if no video were playing.

This did not happen before. It’s a recent issue that started around 15 days ago. I waited to see if a system update would fix it, but the problem is still happening.

It seems like the system is not respecting video playback activity.

Does anyone know what could be causing this?

Hi and welcome to the forum @ju4nqleyton !
This reminds me of T H I S

Hi @ju4nqleyton

I have the same behavior on Openbox. The cause is that xdg-desktop-portal-gtk — which Firefox uses to request screen blanking inhibition during fullscreen video — doesn’t actually work on X11/Openbox.

The practical fix is caffeine-ng, which bypasses that portal entirely and controls DPMS directly via Xorg:

sudo pacman -S caffeine-ng

Add caffeine to your autostart and enable “Activate when a fullscreen application is running” in its settings.