From owner-freebsd-acpi@freebsd.org Thu Sep 17 19:47:46 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ABCE99CF7A5 for ; Thu, 17 Sep 2015 19:47:46 +0000 (UTC) (envelope-from bounces+73574-3fe6-freebsd-acpi=freebsd.org@sendgrid.net) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5FE751BA4 for ; Thu, 17 Sep 2015 19:47:45 +0000 (UTC) (envelope-from bounces+73574-3fe6-freebsd-acpi=freebsd.org@sendgrid.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=subject:to:references:cc:from:mime-version:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=BVESU7YFQkcXkulyXXz7lR2iF0Y=; b=mAKkhx7CIbizq9yc2b JnKNtgB6ExMtGDLcY6rpdufNzS9r4dd2iydcGHsvTfmj0fHFQtAawcNRcaevIPSC n94L8UkWHvTib06wIaxLlzRuA+zcdAeNOSYPVxKZhnbFepZXLg7tlWKGYVqG93Jb +WHSqvbZ5jr0gBX2dZ2THzEsw= Received: by filter0601p1mdw1.sendgrid.net with SMTP id filter0601p1mdw1.16686.55FB18DF13 2015-09-17 19:47:43.457740424 +0000 UTC Received: from mail.tarsnap.com (ec2-54-86-246-204.compute-1.amazonaws.com [54.86.246.204]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id 8caVgGPySbubEIlTEZnUvw for ; Thu, 17 Sep 2015 19:47:43.543 +0000 (UTC) Received: (qmail 41188 invoked from network); 17 Sep 2015 19:47:40 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 17 Sep 2015 19:47:40 -0000 Received: (qmail 49265 invoked from network); 17 Sep 2015 19:46:07 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 17 Sep 2015 19:46:07 -0000 Subject: Re: disabling sleep when shutting down To: Ian Smith , Dan Lukes References: <55FA3848.7090802@freebsd.org> <55FA7F47.6050508@obluda.cz> <20150917211219.M29510@sola.nimnet.asn.au> Cc: "freebsd-acpi@freebsd.org" From: Colin Percival X-Enigmail-Draft-Status: N1110 Message-ID: <55FB187F.2090000@freebsd.org> Date: Thu, 17 Sep 2015 12:46:07 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20150917211219.M29510@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SG-EID: t2fXfoZHCw6vGsGKHqKxJ9qWwHSlQfPdDS+3+p6rOCsY6W3IcldreKT8XAXWHzEg3dtBwSylw2s+qb xgDY+w+xS4tB0AcEDz+9aS81xaEpWnUxr0ZOUkqVnUKq+s/PhUNir0AqxcPnlFHN1Q2dQClkdFhigM BAxzSHglXPAkBBMKvjWQCdiBJMopa0jR2goq X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2015 19:47:46 -0000 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