Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2015 12:46:07 -0700
From:      Colin Percival <cperciva@freebsd.org>
To:        Ian Smith <smithi@nimnet.asn.au>, Dan Lukes <dan@obluda.cz>
Cc:        "freebsd-acpi@freebsd.org" <freebsd-acpi@freebsd.org>
Subject:   Re: disabling sleep when shutting down
Message-ID:  <55FB187F.2090000@freebsd.org>
In-Reply-To: <20150917211219.M29510@sola.nimnet.asn.au>
References:  <55FA3848.7090802@freebsd.org> <55FA7F47.6050508@obluda.cz> <20150917211219.M29510@sola.nimnet.asn.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 09/17/15 04:31, Ian Smith wrote:
> On Thu, 17 Sep 2015 10:52:23 +0200, Dan Lukes wrote:
>  > Colin Percival wrote:
>  > > I think we need to get the kernel ACPI bits to disable Suspend.
>  > 
>  > I consider it is suboptimal solution. I wish the suspend still happen if
>  > shutdown will not complete for any reason. All I want is that lid close
>  > doesn't trigger any action during shutdown.

This doesn't make any sense to me.  If the shutdown fails, how likely is it
that suspend will work?

>  > So what about hw.acpi.lid_switch_state just to be set to NONE during
>  > shutdown ?
> 
> That sounds sensible and likely much easier to accomplish.  It needs to 
> happen early enough in shutdown to beat the fastest of lid-slammers :)

I considered that option but thought that disabling suspend completely
would be better in case it was triggered by something else -- for example,
power management which autosuspends based on battery level or inactivity.

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55FB187F.2090000>