From owner-freebsd-questions Wed Nov 20 15:22: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8148937B401 for ; Wed, 20 Nov 2002 15:22:04 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F354243E3B for ; Wed, 20 Nov 2002 15:22:03 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id gAKNM2Dq099720; Wed, 20 Nov 2002 17:22:02 -0600 (CST) (envelope-from dan) Date: Wed, 20 Nov 2002 17:22:02 -0600 From: Dan Nelson To: Ertan Kucukoglu Cc: David =?utf-8?Q?Sieb=C3=B6rger?= , freebsd-questions@FreeBSD.ORG Subject: Re: shutdown with power button Message-ID: <20021120232202.GA92797@dan.emsphone.com> References: <20021120092348.GA1516@rucus.net> <20021120223926.GB35255@dan.emsphone.com> <3DDC1072.E63B59C0@softhome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DDC1072.E63B59C0@softhome.net> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Nov 21), Ertan Kucukoglu said: > > Yes. You can also tell the system whether to sleep or shutdown, for > > every button ACPI has access to (handly for laptops where you want the > > lid switch to shutdown the system instead of put it in standby, for > > example). > > Last question. Where to set it up? man pages etc. ? I believe 5.0 will load acpi automatically if a module exists for it. If it doesn't, rebuild your kernel with "options acpi". I don't think there are any real docs for it yet. For setting the switch states, run "sysctl hw.acpi" to list the switches acpi knows about. The switch names will all end in _state and have a value of S0..S5, S0 being "full power", S1-S3 being different sleep states, S4 being hibernate (not supported afaik), and S5 being "power off". Run "sysctl -w hw.acpi.blahblah_state=S1" to set. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message