Dr. Amr Osman
2023-12-04 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
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
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
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de