[PATCH 50/77] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-22 Thread Len Brown
From: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> Add input device support to the hotkey subdriver. Hot keys that have a valid keycode mapping are reported through the input layer if the input device is open. Otherwise, they will be reported as ACPI events, as they were before. Scan codes a

[PATCH 10/23] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-18 Thread Henrique de Moraes Holschuh
Add input device support to the hotkey subdriver. Hot keys that have a valid keycode mapping are reported through the input layer if the input device is open. Otherwise, they will be reported as ACPI events, as they were before. Scan codes are reported (using EV_MSC MSC_SCAN events) along with E

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-16 Thread Matthew Garrett
On Mon, Jul 16, 2007 at 03:19:11PM -0300, Henrique de Moraes Holschuh wrote: > Anyway, if the input layer is really not the place for "passive key > presses", then my decision to not issue input events for such stuff is the > correct one. That wasn't my interpretation of what Dmitry said - it's n

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-16 Thread Henrique de Moraes Holschuh
On Mon, 16 Jul 2007, Matthew Garrett wrote: > On Mon, Jul 16, 2007 at 11:46:26AM -0400, Dmitry Torokhov wrote: > > How do you know that this is a "passive keypress"? Can you put another > > (better) soundcard in a docking station? Woudl the firmware still > > control that card (doubtful)? Do we wan

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-16 Thread Matthew Garrett
On Mon, Jul 16, 2007 at 11:46:26AM -0400, Dmitry Torokhov wrote: > How do you know that this is a "passive keypress"? Can you put another > (better) soundcard in a docking station? Woudl the firmware still > control that card (doubtful)? Do we want the same keys to control that > card's volume? T

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-16 Thread Dmitry Torokhov
On 7/15/07, Henrique de Moraes Holschuh <[EMAIL PROTECTED]> wrote: On Sun, 15 Jul 2007, Matthew Garrett wrote: > On Sun, Jul 15, 2007 at 05:59:34PM -0300, Henrique de Moraes Holschuh wrote: > > *HAL* does. HAL is *not* all there is to userspace. The input layer is not > > an interface between t

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Henrique de Moraes Holschuh
On Sun, 15 Jul 2007, Matthew Garrett wrote: > On Sun, Jul 15, 2007 at 06:54:53PM -0300, Henrique de Moraes Holschuh wrote: > > On Sun, 15 Jul 2007, Matthew Garrett wrote: > > > Hal is the only piece of userspace that knows how to speak to more than > > > one type of backlight in any useful way, wh

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Matthew Garrett
On Sun, Jul 15, 2007 at 06:54:53PM -0300, Henrique de Moraes Holschuh wrote: > On Sun, 15 Jul 2007, Matthew Garrett wrote: > > Hal is the only piece of userspace that knows how to speak to more than > > one type of backlight in any useful way, which makes it the de-facto > > reference for how use

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Henrique de Moraes Holschuh
On Sun, 15 Jul 2007, Matthew Garrett wrote: > On Sun, Jul 15, 2007 at 05:59:34PM -0300, Henrique de Moraes Holschuh wrote: > > *HAL* does. HAL is *not* all there is to userspace. The input layer is not > > an interface between the kernel and HAL, it is an interface between kernel > > and userspac

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Matthew Garrett
On Sun, Jul 15, 2007 at 05:59:34PM -0300, Henrique de Moraes Holschuh wrote: > *HAL* does. HAL is *not* all there is to userspace. The input layer is not > an interface between the kernel and HAL, it is an interface between kernel > and userspace. Hal is the only piece of userspace that knows h

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Henrique de Moraes Holschuh
On Sun, 15 Jul 2007, Matthew Garrett wrote: > On Sun, Jul 15, 2007 at 05:03:38PM -0300, Henrique de Moraes Holschuh wrote: > > I do not consider screwing up the mixer handling a harmless result. > > We've shipped in this configuration for over a year. Total number of > bugs filed? None. It's not

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Matthew Garrett
On Sun, Jul 15, 2007 at 05:03:38PM -0300, Henrique de Moraes Holschuh wrote: > I do not consider screwing up the mixer handling a harmless result. We've shipped in this configuration for over a year. Total number of bugs filed? None. It's not ideal, but it's simply not true that it results in a

Re: [ibm-acpi-devel] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Henrique de Moraes Holschuh
On Sun, 15 Jul 2007, Matthew Garrett wrote: > > No. This is handled in firmware in IBM thinkpads, and userspace only screws > > it up. I am tired of watching people get this routed to the AC97 mixer by > > default. That is a fringe configuration that only makes sense when using a > > dock, and w

Re: ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Matthew Garrett
On Sun, Jul 15, 2007 at 03:12:33PM -0300, Henrique de Moraes Holschuh wrote: > On Sat, 14 Jul 2007, Matthew Garrett wrote: > > KEY_BRIGHTNESSUP > > Only if I start filtering it out when disabled by the mask. This key is not > to be sent to userspace unless explicitly configured to do so by someth

Re: ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-15 Thread Henrique de Moraes Holschuh
On Sat, 14 Jul 2007, Matthew Garrett wrote: > On Sat, Jul 14, 2007 at 11:11:59AM -0300, Henrique de Moraes Holschuh wrote: > > +static u16 hotkey_keycode_map[] = { > > + /* Scan Codes 0x00 to 0x0B: ACPI HKEY FN+F1..F12 */ > > + KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, > > + KEY_UNK

Re: ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-14 Thread Matthew Garrett
On Sat, Jul 14, 2007 at 11:11:59AM -0300, Henrique de Moraes Holschuh wrote: > +static u16 hotkey_keycode_map[] = { > + /* Scan Codes 0x00 to 0x0B: ACPI HKEY FN+F1..F12 */ > + KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, > + KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, KEY_UNKNOWN, >

ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-14 Thread Henrique de Moraes Holschuh
Add input device support to the hotkey subdriver. Hot keys that have a valid keycode mapping are reported through the input layer if the input device is open. Otherwise, they will be reported as ACPI events, as they were before. Scan codes are reported (using EV_MSC MSC_SCAN events) along with E

[PATCH 10/16] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-07-05 Thread Henrique de Moraes Holschuh
Add input device support to the hotkey subdriver. Hot keys that have a valid keycode mapping are reported through the input layer if the input device is open. Otherwise, they will be reported as ACPI events, as they were before. Scan codes are reported (using EV_MSC MSC_SCAN events) along with E

[PATCH] ACPI: thinkpad-acpi: add input device support to hotkey subdriver

2007-05-26 Thread Henrique de Moraes Holschuh
Add input device support to the hotkey subdriver. Hotkeys are reported both as an ACPI event, and through the input layer. This patch is based on a patch by Richard Hughes <[EMAIL PROTECTED]>. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> Cc: Richard Hughes <[EMAIL PROTECTED]> -