Re: How to check input device

From: Jiri Kosina
Date: Tue Jan 20 2009 - 18:08:44 EST


On Tue, 20 Jan 2009, mike zheng wrote:

> It is the first time for me to use the input device. I have a keypad
> driver registers a keypad the device as an input device in the kernel
> 2.6. The registration of the driver is OK, I can see the interrupt
> whenever there is key pressed. How can I verify if it works fine? Where
> can I check keycode value of the key pressed?

If the input device is registered properly, there should be corresponding
/dev/input/eventX created. Running evtest (from input-utils) on this
node will decode and dump all the scancodes/keycodes that come out of the
corresponding input device.

--
Jiri Kosina
SUSE Labs

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