IBM T23 volume keys handling
Fabian Keil
freebsd-listen at fabiankeil.de
Mon May 28 12:48:36 UTC 2007
"Michał Frynas" <mfrynas at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-acpi/attachments/20070528/a85ee936/signature.pgp
More information about the freebsd-acpi
mailing list