I’m using i3
, so I have these two lines in my config to change screensaver to a blank screen and disable screen savers by default:
exec --no-startup-id xset s blank
exec --no-startup-id xset s off -dpms
Then, I have a keybinding that enables the screensaver, telling the computer to blank the screen after 60 seconds of inactivity:
bindsym "some key combo" exec --no-startup-id xset s 60 600
The keybindings work, but the screen will automatically turn back on even though I never touched my computer.
At first, I thought SDL was the culprit, so I set the environment variable in my /etc/environment
:
SDL_HINT_VIDEO_ALLOW_SCREENSAVER=1 #sdl version: 2.24.1
Unfortunately, that didn’t resolve the problem at all. Many people reported a similar issue (https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/447728), but that post was made over 10 years ago. I assume the problem would be solved by now. Besides, the problem reported on the forum is related to gnome-power-manager
, so I’m not sure it’s relevant since I’m not using gnome.
My hardware info can be found here: https://0x0.st/ox6S.txt