Detecting the used keyboard driver

Matthew Garrett mjg59 at
Sun May 3 11:02:48 PDT 2009

On Sun, May 03, 2009 at 08:00:28PM +0200, Marvin Raaijmakers wrote:
> Yes I know the kernel keycode to X keycode translation is fixed for
> each keyboard driver. But the problem is that the evdev driver (in the
> X server) does another translation than the kbd driver. You stated:
>  "As long as the kernel keycode is KEY_BATTERY, the X keycode will
> depend only on whether kbd or evdev is in use."
> And now we've come to the main question in my first mail: how can i
> detect whether the X server uses the evdev or kbd driver?

Like I said, don't. Add the kbd keycodes to the pc105 keymap.

Matthew Garrett | mjg59 at

More information about the xorg mailing list