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

From: Alexey Starikovskiy
Date: Thu Apr 20 2006 - 11:57:09 EST


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

Could it be more sensible to use kevent and dbus for sending all events from ACPI?

For most of the events, probably. I'm less convinced by the button driver - sleep and power buttons can also generate keycodes rather than ACPI events, and so getting the button driver to behave like an input device adds consistency.

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?

-
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/