From owner-freebsd-acpi@FreeBSD.ORG Fri Jan 4 15:43:25 2008 Return-Path: Delivered-To: acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6719316A469; Fri, 4 Jan 2008 15:43:25 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id D932013C447; Fri, 4 Jan 2008 15:43:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8q) with ESMTP id 227269487-1834499 for multiple; Fri, 04 Jan 2008 10:41:32 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id m04FhLSj039965; Fri, 4 Jan 2008 10:43:21 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Fri, 4 Jan 2008 10:12:24 -0500 User-Agent: KMail/1.9.6 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801041012.25643.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 04 Jan 2008 10:43:21 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/5363/Fri Jan 4 08:37:27 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: acpi@freebsd.org, questions@freebsd.org, Ian Smith Subject: Re: how to suspend/wake-up a FreeBSD machine? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 15:43:25 -0000 On Friday 04 January 2008 03:13:20 am Ian Smith wrote: > On Fri, 4 Jan 2008, Norberto Meijome wrote: > > On Sun, 30 Dec 2007 11:51:41 +0100 > > Henrik Brix Andersen wrote: > > > > > That depends largely on the hardware - on e.g. ThinkPads you need to > > > press the 'Fn' button to wake up the laptop after sleep. > > > > hmm i think it's not so much the Fn key, u need to do anything that > > triggers an ACPI event in the BIOS - like opening the lid , or > > pressing Fn. I *think* 'thinkVantage' blue btn should work too. > > On my T23 I have suspend/wake on lid switch off (in BIOS), preferring to > have to use the Fn key to wake. No other keys do that on mine including > the ThinkPad key, so then called. > > While consulting 'sysctl hw.acpi' about that I see: > hw.acpi.lid_switch_state: NONE > which I assume reflects my don't-do-that BIOS setting. No, that's the FreeBSD default. > And confirming: > # sysctl hw.acpi.lid_switch_state=1 # (or =0) > hw.acpi.lid_switch_state: NONE > sysctl: hw.acpi.lid_switch_state: Invalid argument This is because this sysctl is not an on/off, but it takes an Sx state to suspend to when you close the lid. So if you set this to S1 it will try to enter S1 when you close the lid, etc. For example: sysctl hw.acpi.lid_switch_state=S3 Would make it enter S3 when you closed the lid. -- John Baldwin