From owner-freebsd-acpi@FreeBSD.ORG Sat Jan 5 07:44:33 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E1C216A481; Sat, 5 Jan 2008 07:44:33 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id D67F513C44B; Sat, 5 Jan 2008 07:44:30 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id SAA08100; Sat, 5 Jan 2008 18:44:27 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 5 Jan 2008 18:44:26 +1100 (EST) From: Ian Smith To: John Baldwin In-Reply-To: <200801041012.25643.jhb@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-acpi@freebsd.org, questions@freebsd.org 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: Sat, 05 Jan 2008 07:44:33 -0000 On Fri, 4 Jan 2008, John Baldwin wrote: > 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. Um, der .. I see that and other sysctls are in acpi(4) now, but weren't in my (oldish) 5.5-STABLE nor 6.1-RELEASE. Time for upgrades for sure! > > 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. Thanks John. S3 works on mine, but S1 doesn't. Didn't try S5 :) but NONE is really what I want there anyway. cheers, Ian