disabling sleep when shutting down
Colin Percival
cperciva at freebsd.org
Sun Sep 27 08:04:39 UTC 2015
On 09/27/15 00:07, Ian Smith wrote:
> On Sat, 26 Sep 2015 11:56:10 -0700, Colin Percival wrote:
> > Ok, so you're satisfied with having the suspend-disabling triggered by
> > init (i.e., not happening until shutdown(8) reaches "now")?
>
> Sure, if you're satisfied that 'shutdown [..] now' - or hitting the
> power button as Dan mentioned - then quickly closing the lid will lose
> that race. As you say, with this mechanism in place, accessing it from
> shutdown(8) would be straightforward if deemed necessary. So, yes.
I'll check before committing, but I'd be very surprised if you could close
the lid of a laptop in the window between hitting enter on 'shutdown -p now'
and when init sets the sysctl. The code path is very direct... we should be
talking a few ms at most.
--
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