Messages in this thread | | | Date | Fri, 28 May 2010 22:11:56 +0100 | From | Matthew Garrett <> | Subject | Re: [RFC PATCH] Quickstart Button ACPI driver to serve PNP0C32 ACPI devices |
| |
On Fri, May 28, 2010 at 07:40:09PM +0200, Thomas Renninger wrote:
> The idea of these buttons is that they are undefined from BIOS/kernel > point of view. Userspace has to map a functionality to them. > Therefore the idea to modify the input event keycode via sysfs file. > There should be 2 situations that perfectly are triggered via userspace:
They're logically buttons, so the right mechanism is for them to be configured via the standard keymap ioctls. There's already infrastructure for setting this via udev - see /lib/udev/keymaps on recent systems. That should let you avoid the need to unregister/reregister.
-- Matthew Garrett | mjg59@srcf.ucam.org
| |