I am currently trying to get the session lock running on my DELL XPS 15. Everytime I suspend the system it fails and there is an error message telling me that all session lock tools failed. When booting it already reports a problem with setuid command (which I don't entirely understand what it means).
I tried configuring my system according to the guix documentation here but even after installing slock the executable is not in /bin/sloc but in /run/setuid-programs/ so I changed the configuration file like so:
(service screen-locker-service-type
(screen-locker-configuration
(name "slock")
(program (file-append slock "/run/setuid-programs/slock"))))
If anyone has got this running even with another set of screenlockers I would be happy to adopt. At the moment I am just confused because I am unfamiliar with setuid and the underlying processes happening there in the OS.
swapon -s
if you only have a /dev/zram0 then check for swap on disk creation (you cannot suspend the system as swap is used to store current system status and /dev/zram0 is RAM so lost during suspend), 2nd is setuid which allows users to run some commands as root/administrator in this case slock. – admstg Mar 15 '24 at 14:34