I'me wondering if it was possible to write a driver that would overlay
the existing keyboard driver and pitch non-standardized scancodes codes
in a /dev file (in a standard format). One could then create a daemon
that would poll this file for changes to this file and perform the
resulting action.
Does something like this already exist?
Yes, several people made such things.
To quote one example:
=====
The FunKey kernel patch that adds a `keycode interpretation type' that says
`send a code out over /dev/funkey'. The `funky' daemon reads this character
device and starts plain Un*x commands in response. The code is independent
of the kbd_mode, so it works under textual mode as well as under XFree86.
The patch applies to Linux 2.2.14 and comes with a simple example daemon.
You can pick both up at
http://home.zonnet.nl/vanrein/linux/funkey
=====
(I have not checked whether the URL still works -
this post is two years old.)
Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/