devd lid close event
- Reply: Steffen Nurpmeso : "Re: devd lid close event"
- Reply: Christian Moerz : "Re: devd lid close event"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Dec 2023 18:24:30 UTC
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