Date: Mon, 28 May 2007 09:08:55 -0700 From: Nate Lawson <nate@root.org> To: Fabian Keil <freebsd-listen@fabiankeil.de> Cc: freebsd-acpi@freebsd.org Subject: Re: IBM T23 volume keys handling Message-ID: <465AFE97.2090602@root.org> In-Reply-To: <20070528144827.62866846@localhost> References: <8af9710705280508n5d70c888ke406557f47c4e2c3@mail.gmail.com> <20070528144827.62866846@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
Fabian Keil wrote:
> "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
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465AFE97.2090602>
