From owner-freebsd-acpi@FreeBSD.ORG Mon May 28 16:09:16 2007 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B31716A528 for ; Mon, 28 May 2007 16:09:16 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id DDA2013C46A for ; Mon, 28 May 2007 16:09:15 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 11591 invoked from network); 28 May 2007 16:09:16 -0000 Received: from ppp-71-139-42-13.dsl.snfc21.pacbell.net (HELO ?10.0.5.18?) (nate-mail@71.139.42.13) by root.org with ESMTPA; 28 May 2007 16:09:16 -0000 Message-ID: <465AFE97.2090602@root.org> Date: Mon, 28 May 2007 09:08:55 -0700 From: Nate Lawson User-Agent: Thunderbird 2.0.0.0 (X11/20070513) MIME-Version: 1.0 To: Fabian Keil References: <8af9710705280508n5d70c888ke406557f47c4e2c3@mail.gmail.com> <20070528144827.62866846@localhost> In-Reply-To: <20070528144827.62866846@localhost> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-acpi@freebsd.org Subject: Re: IBM T23 volume keys handling X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 16:09:16 -0000 Fabian Keil wrote: > "MichaƂ Frynas" 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