Re: devd lid close event
- In reply to: Dr. Amr Osman: "devd lid close event"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Dec 2023 19:24:11 UTC
Not sure - doesn't this run slock under root? It's not going to have any DISPLAY variable set, I assume? Chris ________________________________ From: owner-freebsd-hackers@freebsd.org <owner-freebsd-hackers@freebsd.org> on behalf of Dr. Amr Osman <dr3mro@gmail.com> Sent: Monday, December 4, 2023 7:24:30 PM To: freebsd-hackers@freebsd.org <freebsd-hackers@freebsd.org> Subject: devd lid close event Hello, I have freeBSD 14 on Thinkpad x270, I just did do a fresh install and installed dwm and slock the issue is I want to make laptop lock screen whenever I close the lid here is my /usr/local/etc/devd/lid.conf ``` notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; match "notify" "0x00"; action "/usr/local/bin/slock"; }; ``` here is my /var/run/devd.pipe when I close the lid ``` !system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x00 !system=ACPI subsystem=Lid type=\_SB_.LID_ notify=0x00 !system=ACPI subsystem=Suspend type=\ notify=0x03 !system=IFNET subsystem=wlan0 type=LINK_DOWN ``` what am I doing wrong? Thank You Dr. Amr Osman