You are not logged in.
journal logs:
> systemd-logind[500]: Lid opened.
> systemd-logind[500]: Lid closed.
Any ideas? Thanks a lot!
Last edited by smoneck (2018-09-30 20:28:50)
Offline
This feature may not be provided by your desktop environment, or you may have to activate it. If you are not running any DE you may have to setup it using additional tools.
Arch is home!
https://github.com/Docbroke
Offline
This is not a DE issue. It should even work on the Arch image booted from USB. And it does for another laptop.
I rather suspect that udev is not properly catching the event. Anyone any ideas on where this is (to be) configured?
Last edited by smoneck (2018-09-30 11:14:41)
Offline
Are you using a DE at all?
Some of them over-ride the settings in logind.conf.
Offline
Are you using a DE at all?
No, I directly boot into i3. And afaik logind is not responsible for switching the screen of ... or at least that how I interpret the options of HandleLidSwitch.
Offline
Fixed it now. Since I don't know a way to create my custom systemd-logind actions for HandleLidSwitch, I utilized acpid.
/etc/acpi/handler.sh
button/lid)
case "$3" in
close)
logger 'LID closed'
XAUTHORITY=/home/USERNAME/.Xauthority DISPLAY=:0 xset dpms force off
;;
open)
logger 'LID opened'
XAUTHORITY=/home/USERNAME/.Xauthority DISPLAY=:0 xset dpms force on
;;
*)
logger "ACPI action undefined: $3"
;;
Offline