From owner-acpi-jp@jp.freebsd.org  Sat Jan 13 06:41:42 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id GAA57066;
	Sat, 13 Jan 2001 06:41:42 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id GAA57060;
	Sat, 13 Jan 2001 06:41:40 +0900 (JST)
	(envelope-from jhb@FreeBSD.org)
Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241])
	by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f0CLeV142647;
	Fri, 12 Jan 2001 13:40:31 -0800 (PST)
	(envelope-from jhb@FreeBSD.org)
Message-ID: <XFMail.010112134114.jhb@FreeBSD.org>
X-Mailer: XFMail 1.4.0 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <20010112232818G.iwasaki@jp.FreeBSD.org>
Date: Fri, 12 Jan 2001 13:41:14 -0800 (PST)
From: John Baldwin <jhb@FreeBSD.org>
To: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Cc: acpi-jp@jp.FreeBSD.org
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 1033
Subject: [acpi-jp 1033] Re: Sysctls to control sleep states
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: jhb@FreeBSD.org


On 12-Jan-01 Mitsuru IWASAKI wrote:
>> Right now the states are just the integer constants.  If S[0-5] had defined
>> names, I would prefer to use those, but I didn't find any official names for
>> them unfortunately.  Since ACPI_STATE_S5 is actually 6, it might make more
>> sense to use a function to map 0 to ACPI_STATE_S0, 2 to S2, 5 to S5, etc. 
>> We
>> could even use the strings "S0", "S1", etc.  Whatever you all prefer can be
>> done with ease.
> 
> I vote for strings (e.g. S0, S1, S2, S3, S4, S4B and S5).
># currently we don't support S2-S4B though :-p

Ok, I've updated acpi_sx.patch to do this.  Also, Mike suggested that I use
'acpi' instead of 'acpi0' for the name of the sysctl tree, so with the latest
patch, one gets:

hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
 
-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
