Мне же нужно, чтобы при закрытии крышки просто блокировался экран.
В /etc/systemd/logind.conf поставил
HandleLidSwitch=ignore
На результат никак не повлияло.
Поставил acpid и в /etc/acpi/handler.sh добавил
button/lid) case $3 in close) # The lock command need to be run as the user who owns the xscreensaver process and not as root. # See: man xscreensaver-command. $xs will have the value of the user owning the process, if any. xs=$(ps -C xscreensaver -o user=) if test $xs; then su $xs -c «xscreensaver-command -lock»; fi ;;
Аналогично.
В менеджере питания xfce тоже указано блокировать экран при закрытии крышки. Уже не знаю, куда копать.