Hi:

What device node should I use to get input from USB keyboard in arm9
kerne? My at91rm9200 CPU recognizes the keyboard (kernel 2.6.16):

# usb 1-1: new low speed USB device using at91_ohci and address 2
usb 1-1: Product: Dell USB Keyboard
usb 1-1: Manufacturer: Dell
usb 1-1: configuration #1 chosen from 1 choice
input: Dell Dell USB Keyboard as /class/input/input0
input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-at91-1

It is registered with proc:

# cat /proc/bus/input/devices
I: Bus=0003 Vendor=413c Product=2003 Version=0301
N: Name="Dell Dell USB Keyboard"
P: Phys=usb-at91-1/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd
B: EV=120003
B: KEY=10000 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: LED=7

# cat /proc/bus/input/handlers
N: Number=0 Name=kbd
N: Number=1 Name=mousedev Minor=32
#

The keyboard also is seen by kernel - OHCI interrupt counter increments
if I hit some key:

# cat /proc/interrupts
...............................
 23:         26   ohci_hcd:usb1
...............................

However I cannot get access to input itself and even don't understand
what device I must create to read its input. In my previous system
(PPC440ep running 2.6.13 kernel) with the same keyboard handlers looked
diffeent:

~ # cat /proc/bus/input/devices
I: Bus=0003 Vendor=413c Product=2003 Version=0301
N: Name="Dell Dell USB Keyboard"
P: Phys=usb-PPC-SOC USB-1/input0
H: Handlers=event0
B: EV=120003
B: KEY=10000 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: LED=7

~ # cat /proc/bus/input/handlers
N: Number=0 Name=mousedev Minor=32
N: Number=1 Name=evdev Minor=64
~ #

By creating device "mknod /dev/input/event0 c 13 64" I could read
keyboard's input. How can I install the same handler, use "kbd" handler
or by any other way read keyboard's input?

Thanks,

Leonid.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to