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

Alexey Starikovskiy
2006-04-20T16:28:12Z

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?