[lug] USB in 3.1.x kernels
Lee Woodworth
blug-mail at duboulder.com
Sun Mar 25 11:50:26 MDT 2012
On 03/25/12 09:42, stimits at comcast.net wrote:
> Hi,
>
> It looks like there are some changes to the handling of some
> HID USB devices when going from kernels before 3.x (e.g., 2.6).
> I'm using fedora, on 3.1.x kernels, and trying to do the equivalent
> of dumping everything about joystick, mouse, and keyboards
> for USB cases. lsusb is good at dumping BIOS or hot-plug
> type information, but does not provide any kind of real development
> information. Anyone here have any suggestions for the equivalent
> of minicom in the old serial days, but for 3.1+ kernels and USB
> HID devices?
These comments are from a 3.2.11 system using udev.
If you are looking to open/read the USB device directly, see what you have
in /dev/bus/usb/*/*. You need appropriate privileges of course.
If you are looking to see what Xorg might be receiving, check the /dev/input/eventX
devices, e.g. cat /dev/input/mice will dump live mouse events to stdout.
The kernel has the CONFIG_USB_MON option related to capturing USB data.
Maybe that will be useful. Particular drivers might have debug parameters,
modinfo <driver> might give some information. You might see more debugging
options when building drivers if CONFIG_RELAY and/or CONFIG_USB_DEBUG are set
[use F8 to search for the symbols when using make nconfig].
Not sure what you mean by BIOS information from lsusb -v -v. AFAIK, it is
getting information from /sys and decoding the numeric/binary parts:
# ll /sys/bus/usb/devices/usb1/
total 0
drwxr-xr-x 4 root root 0 Mar 23 20:24 1-0:1.0
-rw-r--r-- 1 root root 4096 Mar 25 11:27 authorized
-rw-r--r-- 1 root root 4096 Mar 25 11:27 authorized_default
-rw-r--r-- 1 root root 4096 Mar 25 11:27 avoid_reset_quirk
-rw-r--r-- 1 root root 4096 Mar 25 11:27 bConfigurationValue
-r--r--r-- 1 root root 4096 Mar 25 11:27 bDeviceClass
-r--r--r-- 1 root root 4096 Mar 25 11:27 bDeviceProtocol
-r--r--r-- 1 root root 4096 Mar 25 11:27 bDeviceSubClass
-r--r--r-- 1 root root 4096 Mar 25 11:27 bMaxPacketSize0
-r--r--r-- 1 root root 4096 Mar 25 11:27 bMaxPower
-r--r--r-- 1 root root 4096 Mar 25 11:27 bNumConfigurations
-r--r--r-- 1 root root 4096 Mar 25 11:27 bNumInterfaces
-r--r--r-- 1 root root 4096 Mar 23 20:24 bcdDevice
-r--r--r-- 1 root root 4096 Mar 25 11:27 bmAttributes
-r--r--r-- 1 root root 4096 Mar 25 11:27 busnum
-r--r--r-- 1 root root 4096 Mar 25 11:27 configuration
-r--r--r-- 1 root root 65553 Mar 23 20:24 descriptors
-r--r--r-- 1 root root 4096 Mar 25 11:27 dev
-r--r--r-- 1 root root 4096 Mar 25 11:27 devnum
-r--r--r-- 1 root root 4096 Mar 25 11:27 devpath
lrwxrwxrwx 1 root root 0 Mar 25 11:27 driver -> ../../../../bus/usb/drivers/usb
drwxr-xr-x 3 root root 0 Mar 25 11:27 ep_00
-r--r--r-- 1 root root 4096 Mar 23 20:24 idProduct
-r--r--r-- 1 root root 4096 Mar 23 20:24 idVendor
-r--r--r-- 1 root root 4096 Mar 23 20:24 manufacturer
-r--r--r-- 1 root root 4096 Mar 25 11:27 maxchild
drwxr-xr-x 2 root root 0 Mar 25 11:27 power
-r--r--r-- 1 root root 4096 Mar 23 20:24 product
-r--r--r-- 1 root root 4096 Mar 25 11:27 quirks
--w------- 1 root root 4096 Mar 25 11:27 remove
-r--r--r-- 1 root root 4096 Mar 23 20:24 serial
-r--r--r-- 1 root root 4096 Mar 25 11:27 speed
lrwxrwxrwx 1 root root 0 Mar 23 20:24 subsystem -> ../../../../bus/usb
-rw-r--r-- 1 root root 4096 Mar 23 20:24 uevent
-r--r--r-- 1 root root 4096 Mar 25 11:27 urbnum
-r--r--r-- 1 root root 4096 Mar 25 11:27 version
>
> Thanks,
>
> D. Stimits, stimits AT comcast DOT net
>
>
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
More information about the LUG
mailing list