lkml.org 
[lkml]   [2009]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to check input device
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



\
 
 \ /
  Last update: 2009-01-21 00:11    [W:0.051 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site