usb keyboard events dont get to the console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i'm trying to use an usb-keyboard on a arm platform (s3c6400/smdk6400).
Problem: keyboard events don't get to the consoles. 
(the system is currently operated through a serial connection 
/dev/ttySAC0).

However the keyboard does work when used for example with the directfb
input sample program df_input, showing correct keycodes there.

Kernel debug messages (* see below) indicate that most of the needed 
parts must be present.

The relevant devices are set up, too:

ls -l /dev/tty*
crw-r--r--    1 root     root       5,   0 Feb  5  2009 /dev/tty
crw-r--r--    1 root     root       4,   0 Feb  5  2009 /dev/tty0
crw-r--r--    1 root     root       4,   1 Feb  5  2009 /dev/tty1
crw-r--r--    1 root     root       4,   2 Jan  1 00:09 /dev/tty2
crw-r--r--    1 root     root       4,   3 Feb  5  2009 /dev/tty3
crw-r--r--    1 root     root       4,   4 Feb  5  2009 /dev/tty4
crw-r--r--    1 root     root       4,   5 Jan  1 00:03 /dev/tty5
crw-r--r--    1 root     root       4,  64 Feb  5  2009 /dev/ttyS0
crw-r--r--    1 root     root       4,  65 Feb  5  2009 /dev/ttyS1
crw-r--r--    1 root     root     204,  64 Jan  1 00:20 /dev/ttySAC0
crw-r--r--    1 root     root     204,  65 Oct 27  2009 /dev/ttySAC1
crw-r--r--    1 root     root     204,  66 Oct 27  2009 /dev/ttySAC2

ls -l /dev/input/
crw-r--r--    1 root     root      13,  64 Feb  5  2009 event0
crw-r--r--    1 root     root      13,  65 Jan  1 00:02 event1
crw-r--r--    1 root     root      13,  66 Jan  1 00:02 event2
crw-r--r--    1 root     root      13,  63 Feb  5  2009 usbmouse

running hexdump /dev/input/event0 and pressing space on the keyboard gives:

0000000 0521 0000 65da 000e 0001 0039 0001 0000
0000010 0521 0000 65ec 000e 0000 0000 0000 0000
0000020 0521 0000 4207 000f 0001 0039 0000 0000
0000030 0521 0000 4224 000f 0000 0000 0000 0000


so, what may be missing?

Thanks,

Markus Schwarzenberg

(*) 

s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c792bc00,0xa300,0x0000,0x0001,c7871db0,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00100303 PRSC LSDA PPS PES CCS
Waiting 2sec before mounting root device...
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c792bc00,0x2301,0x0014,0x0001,c7871dd8,0000)
usb 1-1: new low speed USB device using s3c2410-ohci and address 2
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c792bc00,0x2303,0x0004,0x0001,c7871dd8,0000)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c792bc00,0xa300,0x0000,0x0001,c7871db0,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00100303 PRSC LSDA PPS PES CCS
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c792bc00,0x2301,0x0014,0x0001,c7871dd8,0000)
usb 1-1: skipped 1 descriptor after interface
usb 1-1: udev 2, busnum 1, minor = 1
usb 1-1: New USB device found, idVendor=0430, idProduct=0005
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
device: '1-1': device_add
bus: 'usb': add device 1-1
usb 1-1: uevent
bus: 'usb': driver_probe_device: matched device 1-1 with driver usb
bus: 'usb': really_probe: probing driver usb with device 1-1
usb 1-1: usb_probe_device
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
device: '1-1:1.0': device_add
bus: 'usb': add device 1-1:1.0
usb 1-1:1.0: uevent
bus: 'usb': driver_probe_device: matched device 1-1:1.0 with driver usbkbd
bus: 'usb': really_probe: probing driver usbkbd with device 1-1:1.0
usbkbd 1-1:1.0: usb_probe_interface
usbkbd 1-1:1.0: usb_probe_interface - got id
device: 'input0': device_add
input: USB HIDBP Keyboard 0430:0005 as /devices/platform/s3c2410-ohci/usb1/1-1/1-1:1.0/input/input0
device: 'event0': device_add
device: 'mmcblk0': device_add
 mmcblk0:
driver: '1-1:1.0': driver_bound: bound to device 'usbkbd'
bus: 'usb': really_probe: bound device 1-1:1.0 to driver usbkbd
device: 'ep_81': device_add
device: 'usbdev1.2': device_add
device: '179:0': device_add
driver: '1-1': driver_bound: bound to device 'usb'
bus: 'usb': really_probe: bound device 1-1 to driver usb
device: 'ep_00': device_add


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux