Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2009 11:12:03 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        sclark46@earthlink.net
Cc:        freebsd-acpi@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: 6.x acpi powerbutton
Message-ID:  <49DEFF53.1040306@icyb.net.ua>
In-Reply-To: <49DE596E.2050406@earthlink.net>
References:  <49DE1F8B.2080400@earthlink.net> <49DE2E6D.5050001@icyb.net.ua> <49DE596E.2050406@earthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
on 09/04/2009 23:24 Stephen Clark said the following:
> Probably not. But I spent a couple of hours googling without much luck
> so I got desperate. ;-)

Let me introduce freebsd-acpi@freebsd.org

> Is there a reason it doesn't send and event like Linux that can be acted
> upon by user space other
> than signaling init? I like to have a message written in
> /var/log/messages that someone pressed
> the powerbutton.

I think that for all suspend states except S5 userland is notified via
devd mechanism and potentially can veto the suspend. S5 (soft-off) is
coded to start shutdown immediately. You can try to hack on
acpi_ReqSleepState in sys/dev/acpica/acpi.c.

I am not sure what is the reason for this special behavior of S5. But I
like it, because it sometimes allows me to perform semi-clean shutdown
when X goes crazy. But I also see when it could be useful to have S5
request go through userland. So this could be configurable.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49DEFF53.1040306>