Re: [RFC] [PATCH] Make ACPI button driver an input device

From: Alexey Starikovskiy
Date: Thu Apr 20 2006 - 12:28:09 EST


Matthew Garrett wrote:
On Thu, Apr 20, 2006 at 07:57:01PM +0400, Alexey Starikovskiy wrote:

I think you will agree that ACPI buttons are special and will need special handling even in input stream...
Generic application does not need to know if power, sleep, or lid button is pressed, so you will need to intercept them from input stream... I cannot find any reason to mix these buttons into input, do you?

On many machines, they're /already/ in the input stream. Applications that misbehave if they receive unknown keycodes are broken and need fixing in any case.

I don't quite understand your point... You want all buttons/switches in a computer to send events to input layer, regardless if this make sense or not, just to be consistent? May be you should go other way around and if keyboard has some strange key, send it on its strange way? -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/