I’m trying to figure out how to inhibit sleep and locking. I started using xss-lock as my locker, and it is working out great. Much better than my previous manual locking setup with i3lock. However, it seems that caffeine-ng doesn’t properly inhibit the auto sleep / lock behavior.
After some research, it seems that caffeine-ng communicates with gnome-session-manager, while xss-lock relies on Xserver’s DPMS signaling and systemd-logind.service.
It seems that xset s off turns off screen blanking, and xset -dpms prevents signaling to the monitors telling them to sleep. I haven’t thoroughly tested these yet to see if they work as expected.
The problem is I like my little caffeine systray icon. Is there an alternative to caffeine or a way I can make it work with xss-lock?
EDIT:
Looking at caffeine-ng’s repository, it has this section:
caffeine-ngworks with the following screensavers / screenlockers:
- Anything that implements the
org.freedesktop.ScreenSaverAPI (this includes KDE, amongst others) - gnome-screensaver
- mate-screensaver
- XSS
- Xorg + DPMS
- xautolock
- xidlehook.
It seems like it should work with xss-lock, but it is not. ![]()