[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <5c9cd53b0901201343k11289f2dg24c62609cb42c494@mail.gmail.com>
Date: Tue, 20 Jan 2009 16:43:23 -0500
From: mike zheng <mail4mz@...il.com>
To: linux-kernel@...r.kernel.org
Subject: How to check input device
Hello,
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?
Thanks in advance,
Mike
Here is what I have in system:
# cat /proc/bus/input/handlers
N: Number=0 Name=kbd
N: Number=1 Name=evdev Minor=64
# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="keypad"
P: Phys=keypad/input0
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=event0
B: EV=20003
B: KEY=102374 82c193c 53ff8708 1
B: LED=285
# ls -l /sys/devices/virtual/input/input0/
drwxr-xr-x 2 root root 0 Dec 31 16:01 capabilities
drwxr-xr-x 2 root root 0 Dec 31 16:01 event0
drwxr-xr-x 2 root root 0 Dec 31 16:01 id
-r--r--r-- 1 root root 4096 Dec 31 16:01 modalias
-r--r--r-- 1 root root 4096 Dec 31 16:01 name
-r--r--r-- 1 root root 4096 Dec 31 16:01 phys
lrwxrwxrwx 1 root root 0 Dec 31 16:01 subsystem ->
../../../../class/input
-rw-r--r-- 1 root root 4096 Dec 31 16:01 uevent
-r--r--r-- 1 root root 4096 Dec 31 16:01 uniq
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists