From owner-acpi-jp@jp.FreeBSD.org Sat Sep 20 02:59:32 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h8JHxW794662;
	Sat, 20 Sep 2003 02:59:32 +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 h8JHxUJ94656
	for <acpi-jp@jp.FreeBSD.org>; Sat, 20 Sep 2003 02:59:31 +0900 (JST)
	(envelope-from nate@rootlabs.com)
Received: (qmail 22846 invoked by uid 1000); 19 Sep 2003 17:59:26 -0000
From: Nate Lawson <nate@root.org>
To: Philip Paeps <philip+freebsd@paeps.cx>
cc: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20030919161053.GG652@hermes.nixsys.be>
Message-ID: <20030919105549.A22778@root.org>
References: <20030914225148.2e1a21f7.aizu@navi.org> <20030916161328.Q10247@root.org>
 <20030918231149.7e57383b.aizu@navi.org> <20030919.013121.43004805.iwasaki@jp.FreeBSD.org>
 <20030918102054.T15072@root.org> <20030920005756.01481912.aizu@navi.org>
 <20030919161053.GG652@hermes.nixsys.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Fri, 19 Sep 2003 10:59:25 -0700
X-Sequence: acpi-jp 2685
Subject: [acpi-jp 2685] Re: TOSHIBA HCI driver on ACPI.
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030902

On Fri, 19 Sep 2003, Philip Paeps wrote:
> On 2003-09-20 00:57:56 (+0900), Hiroyuki Aizu <aizu@navi.org> wrote:
> > I'd like to research and design the way that pass through Hot-key event to
> > userland application. It is enable us to cooperation with GUI application
> > like Windows.
>
> I've been toying with the idea of dealing with the multimedia keys in the
> kernel, but everything I've come up with so far has been extremely ugly and
> just plain wheel-reinvention. :-/
>
> Another idea would be to find a way to assign keysyms to the extra keys, such
> as F13-F24, as appropriate?

See moused(8) or devd(8).  I plan to add a daemon to monitor acpi
including:
  * Receive Notify events on various devices
  * Check for power/thermal transitions
  * Set power policy

Since your keys come in as notifies, it would be a good place to hook to
perform actions.

-Nate
