From owner-acpi-jp@jp.freebsd.org  Fri Nov 16 00:34:05 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id AAA38492;
	Fri, 16 Nov 2001 00:34:05 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (root@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id AAA38487
	for <acpi-jp@jp.freebsd.org>; Fri, 16 Nov 2001 00:34:04 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92])
	(authenticated as iwa with CRAM-MD5)
	by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id fAFFY2W79573;
	Fri, 16 Nov 2001 00:34:02 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Date: Fri, 16 Nov 2001 00:33:58 +0900 (JST)
Message-Id: <20011116.003358.92590352.iwasaki@jp.FreeBSD.org>
To: acpi-jp@jp.freebsd.org, sanpei@sanpei.org
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
In-Reply-To: <20011115.195554.71140207.sanpei@sanpei.org>
References: <20011115.195554.71140207.sanpei@sanpei.org>
X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1469
Subject: [acpi-jp 1469] Re: I want to set LCD Brightness level via Keyboard
 or software.
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

Hi, sanpei-san.

>   I am testing FreeBSD ACPI code with NEC MobioNX.
> 
> 	<<Current status>>
> 		S3 suspend/resume	OK(with PSM_HOOKRESUME)
> 		ACPI speed control	OK

:-)

Also you should be able to BIOS hibernation with phdisk partition and
hw.acpi.s4bios=1 I think.

>   I could control LCD brightness under APM BIOS with Function
> keys([Fn]+[Up]/[Down]).
>   But I could not under ACPI.
> 
>   I read ACPI spec.  It need _BCM methods, I think.  But there is no
> _BCM methods in MobioNX's ACPI tables which I already posted and
> committed ACPI table Database.

Yes, I also saw few DSDT with _BCM.  I guess that brightness is
controlled by _Qxx method in many implementation.  Actually, my FIVA
can control LCD brightness up/down thru _SB_.PCI0.ISA_.EC0_._Q0A and
_Q0B, like
                Method(_Q0A) {
                    /* LCD brightness down */
                    Store(0x87, \_SB_.PCI0.ISA_.BCMD)
                    Store(0x0, \_SB_.PCI0.ISA_.SMIC)
                }
                Method(_Q0B) {
                    /* LCD brightness up */
                    Store(0x88, \_SB_.PCI0.ISA_.BCMD)
                    Store(0x0, \_SB_.PCI0.ISA_.SMIC)
                }

>   I never control LCD brightness with ACPI, is that right?

Maybe yes, but yours have BCMD and SMIC field too...
/dev/io and /dev/mem are your friends?

Thanks
