From owner-freebsd-acpi@FreeBSD.ORG Mon May 28 12:48:36 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 575AB16A484 for ; Mon, 28 May 2007 12:48:36 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay07.ispgateway.de (smtprelay07.ispgateway.de [80.67.29.7]) by mx1.freebsd.org (Postfix) with ESMTP id B756213C4AD for ; Mon, 28 May 2007 12:48:35 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 18214 invoked from network); 28 May 2007 12:48:33 -0000 Received: from unknown (HELO localhost) (775067@[217.50.145.36]) (envelope-sender ) by smtprelay07.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 28 May 2007 12:48:33 -0000 Date: Mon, 28 May 2007 14:48:27 +0200 From: Fabian Keil To: "=?UTF-8?Q?Micha=C5=82?= Frynas" Message-ID: <20070528144827.62866846@localhost> In-Reply-To: <8af9710705280508n5d70c888ke406557f47c4e2c3@mail.gmail.com> References: <8af9710705280508n5d70c888ke406557f47c4e2c3@mail.gmail.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_0RaaeSm5dCcgpb_6VlZ/08B"; protocol="application/pgp-signature"; micalg=PGP-SHA1 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 12:48:36 -0000 --Sig_0RaaeSm5dCcgpb_6VlZ/08B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable "Micha=C5=82 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 eve= nt > is being handled, and add there something like this: >=20 > 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 --Sig_0RaaeSm5dCcgpb_6VlZ/08B Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGWs+bBYqIVf93VJ0RAq5AAJ904xMUf6yltfPKKewZcBOelQM4XQCfccUY M+/jZydm3Ev1OSJS4ajvb78= =nIg3 -----END PGP SIGNATURE----- --Sig_0RaaeSm5dCcgpb_6VlZ/08B--