IBM T23 volume keys handling
Nate Lawson
nate at root.org
Mon May 28 16:09:16 UTC 2007
Fabian Keil wrote:
> "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
I had a T23 and never looked into how closely acpi_ibm could see the
volume buttons. They are handled by SMM mostly, meaning they work just
fine without any acpi_ibm loaded.
So what's your problem?
--
Nate
More information about the freebsd-acpi
mailing list