disabling sleep when shutting down
Colin Percival
cperciva at freebsd.org
Sat Sep 26 09:15:35 UTC 2015
On 09/26/15 01:54, Dan Lukes wrote:
> Colin Percival wrote:
>> I've written (but not yet actually compiled or tested, so beware of typos) a patch which I think makes sense.
>
> It look good.
>
> But it seems to me the goal has been lost during discussion. It has been
> started because of unwilling interaction of LID close and ongoing
> shutdown, isn't it ?
Yes, I tripped over this in the context of "tell FreeBSD to shut down, then
close the lid of my laptop".
> Unless I misunderstood the code, your patch seems to solve it for
> special case only:
> hw.acpi.lid_switch_state=S3
>
> But what about Sx states for x -ne 3 ?
>
> I don't feel to be expert on ACPI code, thus it's possible those states
> are handled (=ignored) correctly as well. In such case ignore this message.
I may be wrong, but I believe all the ACPI Sx states go through the same
function which is checking for suspend_blocked in my patch.
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
More information about the freebsd-acpi
mailing list