On Thu, Jul 30, 2026 at 01:42:28PM +0600, broke wrote:
> I am trying to figure out what kind of acpi event is triggered on lid
> close and looking to be able to manually trigger it. When I use X's
> display management tools like 'xset dpms force off' while playing
> audio, it seems to pause as the display turns off. But on lid close
> that doesn't happen. I want to be able to trigger that lid close
> event manually if possible. I've read acpi(4) and other manpages
> hoping to figure something out, but because I'm new to interacting
> with the BSD kernel, I don't really know how to do this. I know
> a bit of C programming if that requires it. I would like to know
> what acpi event is trigged on lid close. Thank you!
> 

It depends on the value set for machdep.lidaction on /etc/sysctl.conf.

>From /etc/examples/sysctl.conf:

machdep.lidaction=0  # laptop lid closing action: 0=none, 1=suspend, 2=hibernate


Suspend and hibernate are equivalent to issuing zzz and ZZZ on the
command line, respectively (see apm(8)), assuming you are running apmd.
What happens at a lower level, ACPI-wise, is beyond me.

-- 
 

Reply via email to