dmesg
to get the
kernel output for the event. It will look something like this:input: Sony PLAYSTATION(R)3 Controller as /devices/pci0000:00/0000:00:04.1/usb2/2-4/2-4.2/2-4.2:1.0/input/input16
To get the USB report Descriptor with "lsusb -v", we need to unbind the device first (as root).
$ sudo bash -c "echo -n 2-4.2:1.0 >/sys/bus/usb/drivers/usbhid/unbind"
Now run
lsusb
again for the device and you should see the report descriptor
in the output!$ lsusb -vd 054c:0268
Source:
http://www.slashdev.ca/2010/05/08/get-usb-report-descriptor-with-linux/
No comments:
Post a Comment