From owner-freebsd-acpi@freebsd.org Thu Sep 17 23:24:35 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 4B49C9CFF6A for ; Thu, 17 Sep 2015 23:24:35 +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 11A9E1E60 for ; Thu, 17 Sep 2015 23:24:34 +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=zoaAe2tZeYIkl9Kk+FljaZfbE2s=; b=c+pescJtPxPmv+sqm0 lM4HsgLELwzCO5R8EE+iJJq1Ptq3x12FDpSgRgakEclwszN/jHMRb/9P65B8CGsW Ihdc+7mM6JHhUha9MlCVFiyYNSD7d23tWGqrZCvXX6wkfif9UL5qMF2uMlDHP5bM 7kfLjv7kd+iaipCDq7Hm4gTRs= Received: by filter0643p1mdw1.sendgrid.net with SMTP id filter0643p1mdw1.8650.55FB4BB0B 2015-09-17 23:24:32.177003854 +0000 UTC Received: from mail.tarsnap.com (ec2-54-86-246-204.compute-1.amazonaws.com [54.86.246.204]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id SYKS_HrUSMOWDVxSQeD6hA for ; Thu, 17 Sep 2015 23:24:32.266 +0000 (UTC) Received: (qmail 48744 invoked from network); 17 Sep 2015 23:24:29 -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 23:24:29 -0000 Received: (qmail 50156 invoked from network); 17 Sep 2015 23:22:55 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 17 Sep 2015 23:22:55 -0000 Subject: Re: disabling sleep when shutting down To: Dan Lukes , Ian Smith References: <55FA3848.7090802@freebsd.org> <55FA7F47.6050508@obluda.cz> <20150917211219.M29510@sola.nimnet.asn.au> <55FB187F.2090000@freebsd.org> <55FB331A.4010908@obluda.cz> Cc: "freebsd-acpi@freebsd.org" From: Colin Percival X-Enigmail-Draft-Status: N1110 Message-ID: <55FB4B4F.2080700@freebsd.org> Date: Thu, 17 Sep 2015 16:22:55 -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: <55FB331A.4010908@obluda.cz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SG-EID: t2fXfoZHCw6vGsGKHqKxJ9qWwHSlQfPdDS+3+p6rOCtpxtdtzD42i4YSLVNknqyRAGwXrZMyRrGJYN f3YTL+QBq4Z0kBlJIZOt2U1o0vbuBUrqKu9sjvfGLqFGOFrDT+WctyP+FuJQhqX/VIX517MAch/yzm pcNnP8VcCeAryUU= 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 23:24:35 -0000 On 09/17/15 14:39, Dan Lukes wrote: > Colin Percival wrote: >> I considered that option but thought that disabling suspend completely >> would be better in case it was triggered by something else > > You has been affected by LID issue - and here I'm with you. Ok. But adjusting the sysctl might not be enough; KDE has a "suspend when lid closed" setting which seems to be broken right now, but if it worked we would need to figure out how to disable that as well. > Suspend triggered by exhausted battery case needs to be evaluated > carefully. Battery may be so exhausted so shutdown will not be > completed. Note that some system (hardware) require no power to maintain > suspend context, thus suspend may save system. > > And what about other reasons for suspends ? I can tell nothing about all > those cases. Suspend may be triggered for any reason, thus so many > possible causes. I can't claim all of them are illegitimate and can be > safely ignored. I wish we should have stronger reason for system global > behavior change than just feeling (no offense!). The example of a system which can usefully suspend but doesn't have enough battery life left to allow it to complete a normal shutdown seems a bit implausible, but I'll concede that it's theoretically possible. Maybe we should have an rc.d script which checks an rc.conf setting? -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid