This is system log when keyboard is plugged in:
usb 5-1: new low-speed USB device number 7 using uhci_hcd usb 5-1: New USB device found, idVendor=04f3, idProduct=0103 usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 input: HID 04f3:0103 as /devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.0/0003:04F3:0103.000D/input/input23 hid-generic 0003:04F3:0103.000D: input,hidraw0: USB HID v1.10 Keyboard [HID 04f3:0103] on usb-0000:00:1d.0-1/input0 input: HID 04f3:0103 as /devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.1/0003:04F3:0103.000E/input/input24 hid-generic 0003:04F3:0103.000E: input,hidraw1: USB HID v1.10 Device [HID 04f3:0103] on usb-0000:00:1d.0-1/input1
Then I run
wireshark and press a key. But instead of 2 URBs there are 4. What part of the URB contains the pressed key code and what for are two extra URBs? Here is the trace.