Hi all,
I have a usb ir for pc IR remote controlleur. It emululate keyboard and mouse.
Two kind  of usb receiver even it looks like the same
The bug is in the second, the power button on the USB remote is not functionnal 
(no message no event...)


Here is the log from the first
...
Sep 30 21:36:41 lionel kernel: usb 6-3: usb_probe_device
Sep 30 21:36:41 lionel kernel: usb 6-3: configuration #1 chosen from 1 choice
Sep 30 21:36:41 lionel kernel: usb 6-3: adding 6-3:1.0 (config #1, interface 0)
Sep 30 21:36:41 lionel kernel: usbhid 6-3:1.0: usb_probe_interface
Sep 30 21:36:41 lionel kernel: usbhid 6-3:1.0: usb_probe_interface - got id
Sep 30 21:36:41 lionel kernel: input: HID 1d57:ad02 as 
/devices/pci0000:00/0000:00:13.1/usb6/6-3/6-3:1.0/input/input19
Sep 30 21:36:41 lionel kernel: evbug: Connected device: input19 (HID 1d57:ad02 
at usb-0000:00:13.1-3/input0)
Sep 30 21:36:41 lionel kernel: usbhid 6-3:1.0: looking for a minor, starting at 
96
Sep 30 21:36:41 lionel kernel: generic-usb 0003:1D57:AD02.0012: 
input,hiddev0,hidraw2: USB HID v1.10 Keyboard [HID 1d57:ad02] on 
usb-0000:00:13.1-3/input0
Sep 30 21:36:41 lionel kernel: usb 6-3: adding 6-3:1.1 (config #1, interface 1)
Sep 30 21:36:41 lionel kernel: usbhid 6-3:1.1: usb_probe_interface
Sep 30 21:36:41 lionel kernel: usbhid 6-3:1.1: usb_probe_interface - got id
Sep 30 21:36:41 lionel kernel: input: HID 1d57:ad02 as 
/devices/pci0000:00/0000:00:13.1/usb6/6-3/6-3:1.1/input/input20
Sep 30 21:36:41 lionel kernel: evbug: Connected device: input20 (HID 1d57:ad02 
at usb-0000:00:13.1-3/input1)
Sep 30 21:36:41 lionel kernel: usbhid 6-3:1.1: looking for a minor, starting at 
96
Sep 30 21:36:41 lionel kernel: generic-usb 0003:1D57:AD02.0013: 
input,hiddev0,hidraw3: USB HID v1.10 Mouse [HID 1d57:ad02] on 
usb-0000:00:13.1-3/input1
Sep 30 21:36:41 lionel kernel: drivers/usb/core/inode.c: creating file '012'
Sep 30 21:36:41 lionel kernel: hub 6-0:1.0: state 7 ports 3 chg 0000 evt 0008
Sep 30 21:36:41 lionel mtp-probe: checking bus 6, device 12: 
"/sys/devices/pci0000:00/0000:00:13.1/usb6/6-3"
Sep 30 21:36:41 lionel mtp-probe: bus: 6, device: 12 was not an MTP device



The second one :


Sep 30 21:38:37 lionel kernel: usb 6-3: skipped 1 descriptor after interface
Sep 30 21:38:37 lionel kernel: usb 6-3: config 1 interface 0 altsetting 0 has 2 
endpoint descriptors, different from the interface descriptor's value: 1
Sep 30 21:38:37 lionel kernel: usb 6-3: udev 16, busnum 6, minor = 655
Sep 30 21:38:37 lionel kernel: usb 6-3: New USB device found, idVendor=073a, 
idProduct=2230
Sep 30 21:38:37 lionel kernel: usb 6-3: New USB device strings: Mfr=0, 
Product=0, SerialNumber=0
Sep 30 21:38:37 lionel kernel: usb 6-3: usb_probe_device
Sep 30 21:38:37 lionel kernel: usb 6-3: configuration #1 chosen from 1 choice
Sep 30 21:38:37 lionel kernel: usb 6-3: adding 6-3:1.0 (config #1, interface 0)
Sep 30 21:38:37 lionel kernel: usbhid 6-3:1.0: usb_probe_interface
Sep 30 21:38:37 lionel kernel: usbhid 6-3:1.0: usb_probe_interface - got id
Sep 30 21:38:37 lionel kernel: input: HID 073a:2230 as 
/devices/pci0000:00/0000:00:13.1/usb6/6-3/6-3:1.0/input/input24
Sep 30 21:38:37 lionel kernel: evbug: Connected device: input24 (HID 073a:2230 
at usb-0000:00:13.1-3/input0)
Sep 30 21:38:37 lionel kernel: generic-usb 0003:073A:2230.0017: input,hidraw2: 
USB HID v1.10 Keyboard [HID 073a:2230] on usb-0000:00:13.1-3/input0
Sep 30 21:38:37 lionel kernel: drivers/usb/core/inode.c: creating file '016'
Sep 30 21:38:37 lionel kernel: hub 6-0:1.0: state 7 ports 3 chg 0000 evt 0008
Sep 30 21:38:37 lionel mtp-probe: checking bus 6, device 16: 
"/sys/devices/pci0000:00/0000:00:13.1/usb6/6-3"
Sep 30 21:38:37 lionel mtp-probe: bus: 6, device: 16 was not an MTP device


It miss the "USB HID v1.10 Mouse" due to "interface descriptor's value: 1" i 
think, and i have no idea how to correct this.
The main idea will be to modify the code on  line 396 of 
drivers/usb/core/config.c.

Perhaps you will found another idea?

<<attachment: lionel.vcf>>

Reply via email to