From owner-acpi-jp@jp.FreeBSD.org Thu Apr  1 00:54:24 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2VFsOC11070;
	Thu, 1 Apr 2004 00:54:24 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from aragorn.middle.earth ([2002:dba4:1d1d:b001:202:2dff:fe3e:4ee5])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet6 id i2VFsNd11065
	for <acpi-jp@jp.FreeBSD.org>; Thu, 1 Apr 2004 00:54:23 +0900 (JST)
	(envelope-from t-ogawa@triaez.kaisei.org)
Received: from aragorn.middle.earth (localhost [127.0.0.1])
	by aragorn.middle.earth (8.12.11/8.12.11) with ESMTP id i2VFrsgS001209;
	Thu, 1 Apr 2004 00:53:54 +0900 (JST)
	(envelope-from t-ogawa@triaez.kaisei.org)
Message-ID: <864qs5qagd.wl.t-ogawa@triaez.kaisei.org>
From: OGAWA Takaya <t-ogawa@triaez.kaisei.org>
To: Nate Lawson <nate@root.org>
Cc: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20040330125842.U82732@root.org>
References: <86oeqixi4y.wl.t-ogawa@triaez.kaisei.org>
	<20040330125842.U82732@root.org>
User-Agent: Wanderlust/2.10.1 (Watching The Wheels) Emacs/21.3 Mule/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen")
Content-Type: text/plain; charset=ISO-2022-JP
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Thu, 01 Apr 2004 00:53:54 +0900
X-Sequence: acpi-jp 3178
Subject: [acpi-jp 3178] Re: acpi_panasonic: ACPI hotkey driver for Panasonic laptops
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: t-ogawa@triaez.kaisei.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

Thank you for taking a look at it.

At Tue, 30 Mar 2004 13:06:15 -0800 (PST),
Nate Lawson wrote:
> I took a quick glance at the code and it looks good.  Care to submit a man
> page also?

I'll try this weekend.

> We need to figure out a good way to handle hotkeys in a more generic way
> than creating an rc.d script for each laptop.  It probably makes sense to
> implement a /etc/rc.d/hotkey script (see power_profile for an example) and
> have a /etc/rc.conf option that selects the event model (Panasonic, ASUS,
> etc.)  Actually, a better way is to implement a hotkey driver that
> attaches to the hardware-specific drivers and provides standard sysctls
> and events (EVENT_VOLUME_UP, etc.)

Agreed.

> It appears that Fn+F3 could be handled by acpi_video.  Does that work for
> you?  I cannot test this since I do not have any Panasonic laptops.

Unfortunately not.
acpi_video does attach, but hitting Fn+F3 causes no effect.
There are two devices, CRT1 and LCD1, defined in DSDT and they
have _DCS, _DGS and _DSS method.

Relevant sysctl contents are:
hw.acpi.video.crt0.active: 0
hw.acpi.video.out0.active: 1

Both two MIBs look like read-only when accessing via sysctl(8).

----------
$B$*$,$o(B $B$?$+$d(B
t-ogawa@triaez.kaisei.org
