From owner-acpi-jp@jp.FreeBSD.org Tue Sep 23 16:36:25 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h8N7aPt02535;
	Tue, 23 Sep 2003 16:36:25 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rootlabs.com (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id h8N7aOJ02530
	for <acpi-jp@jp.FreeBSD.org>; Tue, 23 Sep 2003 16:36:24 +0900 (JST)
	(envelope-from nate@rootlabs.com)
Received: (qmail 44857 invoked by uid 1000); 23 Sep 2003 07:36:21 -0000
From: Nate Lawson <nate@root.org>
To: Philip Paeps <philip+freebsd@paeps.cx>
cc: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20030923072516.GC645@hermes.nixsys.be>
Message-ID: <20030923003457.P44831@root.org>
References: <20030923072516.GC645@hermes.nixsys.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 23 Sep 2003 00:36:21 -0700
X-Sequence: acpi-jp 2692
Subject: [acpi-jp 2692] Re: Driver for Asus extras
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030902

On Tue, 23 Sep 2003, Philip Paeps wrote:
> I found some time yesterday to clean and finish up things a little bit.
> Attached is a driver which I found to function well on the three laptops it
> currently supports.

Great!

> I'll write a little manual (asus(4)) later today, and also think about a way
> to handle the events the machine notifies.
>
> In the interests of simplicity, would it be a good idea to 'translate' the
> device-specific notifies into some known constants?  Something like:
>
>   #define ACPI_HOTK_BUTTON0     0x0001
>   #define ACPI_HOTK_BUTTON1     0x0002
>
> That adds a bit more code to the different drivers, but it makes the daemon a
> lot easier to maintain and implement.  Any thoughts on that?

I've thought about this and am looking over some code a developer supplied
that does something like this and am working on a model to unify Toshiba
and ASUS (and anything else that comes up).  I'll get back to you with an
API.

Thanks,
Nate
