mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mike zheng <mail4mz@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: How to check input device
Date: Tue, 20 Jan 2009 16:43:23 -0500	[thread overview]
Message-ID: <5c9cd53b0901201343k11289f2dg24c62609cb42c494@mail.gmail.com> (raw)

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

             reply	other threads:[~2009-01-20 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-20 21:43 mike zheng [this message]
2009-01-20 23:08 ` Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5c9cd53b0901201343k11289f2dg24c62609cb42c494@mail.gmail.com \
    --to=mail4mz@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®