Date: Mon, 28 May 2007 14:48:27 +0200 From: Fabian Keil <freebsd-listen@fabiankeil.de> To: "=?UTF-8?Q?Micha=C5=82?= Frynas" <mfrynas@gmail.com> Cc: freebsd-acpi@freebsd.org Subject: Re: IBM T23 volume keys handling Message-ID: <20070528144827.62866846@localhost> In-Reply-To: <8af9710705280508n5d70c888ke406557f47c4e2c3@mail.gmail.com> References: <8af9710705280508n5d70c888ke406557f47c4e2c3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
"MichaĆ Frynas" <mfrynas@gmail.com> wrote:
> can someone of you guys, point me a place within the kernel sources, where
> the volume up/volume down keys are handled?
> In more specific I'd like to find a place where the volume keys press event
> is being handled, and add there something like this:
>
> devctl_notify("ACPI_CUSTOM", "ACPI_VOLUME", (arg > val) ? "ACPI Volume Up" :
> "ACPI Volume Down", NULL);
Are you already aware of the events mentioned in acpi_ibm(4)?
Quote:
| devd(8) Events
| Hotkey events received by devd(8) provide the following information:
|
| system "ACPI"
| subsystem "IBM"
| type The source of the event in the ACPI namespace. The
| value depends on the model.
| notify Event code (see below).
|
| Depending on the ThinkPad model, event codes may vary. On a ThinkPad
| T41p these are as follows:
|
| 0x01 Fn + F1
|[...]
| 0x15 Volume Up
| 0x16 Volume Down
Either way, I think you're looking for:
/usr/src/sys/dev/acpi_support/acpi_ibm.c
Fabian
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQFGWs+bBYqIVf93VJ0RAq5AAJ904xMUf6yltfPKKewZcBOelQM4XQCfccUY
M+/jZydm3Ev1OSJS4ajvb78=
=nIg3
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070528144827.62866846>
