Date: Mon, 4 Dec 2023 19:24:11 +0000 From: Christian Moerz <freebsd@ny-central.org> To: "Dr. Amr Osman" <dr3mro@gmail.com>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: devd lid close event Message-ID: <PAXPR08MB6766B7D13322DE8A0F1545B99486A@PAXPR08MB6766.eurprd08.prod.outlook.com> In-Reply-To: <CAEYFr1A0_qe5BJR_FVnkEEL1bdYZHbSeidqy6L4mZbVtzROKuw@mail.gmail.com> References: <CAEYFr1A0_qe5BJR_FVnkEEL1bdYZHbSeidqy6L4mZbVtzROKuw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--_000_PAXPR08MB6766B7D13322DE8A0F1545B99486APAXPR08MB6766eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Not sure - doesn't this run slock under root? It's not going to have any DI= SPLAY 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=3DACPI subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DAC= PI subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DACPI subsystem=3DSuspend type=3D\ notify=3D0x03 !system=3DIFNET subsystem=3Dwlan= 0 type=3DLINK_DOWN ``` what am I doing wrong? Thank You Dr. Amr Osman --_000_PAXPR08MB6766B7D13322DE8A0F1545B99486APAXPR08MB6766eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"= > </head> <body> <div dir=3D"auto">Not sure - doesn't this run slock under root? It's not go= ing to have any DISPLAY variable set, I assume?</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto">Chris</div> <div><br> </div> <div dir=3D"auto" id=3D"ms-outlook-mobile-signature"></div> <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> owner-freebsd-hackers= @freebsd.org <owner-freebsd-hackers@freebsd.org> on behalf of Dr. Amr= Osman <dr3mro@gmail.com><br> <b>Sent:</b> Monday, December 4, 2023 7:24:30 PM<br> <b>To:</b> freebsd-hackers@freebsd.org <freebsd-hackers@freebsd.org><= br> <b>Subject:</b> devd lid close event</font> <div> </div> </div> <div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;= "> <div class=3D"PlainText">Hello,<br> I have freeBSD 14 on Thinkpad x270,<br> I just did do a fresh install and installed dwm and slock<br> the issue is I want to make laptop lock screen whenever I close the lid<br> <br> here is my /usr/local/etc/devd/lid.conf<br> ```<br> notify 10 {<br> match "system" &n= bsp; "ACPI";<br> match "subsystem" "Lid&= quot;;<br> match "notify" &n= bsp; "0x00";<br> action "/usr/local/bin/slock";<br> };<br> <br> ```<br> here is my /var/run/devd.pipe when I close the lid<br> <br> ```<br> !system=3DACPI subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DAC= PI<br> subsystem=3DLid type=3D\_SB_.LID_ notify=3D0x00 !system=3DACPI<br> subsystem=3DSuspend type=3D\ notify=3D0x03 !system=3DIFNET subsystem=3Dwlan= 0<br> type=3DLINK_DOWN<br> ```<br> <br> what am I doing wrong?<br> <br> Thank You<br> Dr. Amr Osman<br> <br> </div> </span></font></div> </body> </html> --_000_PAXPR08MB6766B7D13322DE8A0F1545B99486APAXPR08MB6766eurp_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PAXPR08MB6766B7D13322DE8A0F1545B99486A>