Jun 5, 2015 ... "If it quacks like a keyboard and types like a keyboard it must be a keyboard."
That's not always true. The lsusb utillity takes his information from a file called /var
/lib/usbutils/usb.ids to look up the vendor ids, product ids, classes, ...
A USB hub is a device that has one cord that plugs into one USB port, but
provides multiple USB ports for you to plug devices into. It's essentially a USB
multiplexer. A root hub, AFAIK, is a USB hub that's internal. For example, there
might ony ...
... now, we can retrieve device data by lsusb -D /dev/bus/usb/$busnum/$devnum
echo "busnum=$busnum, devnum=$devnum" ... fi fi done echo "\$1 not found :-("
} ENDL $ source ~/.bashrc $ gousb 0a5c:21e6 $ pwd /sys/bus/usb/devices/2-1.4.
lsusb may try to open the USB device as O_RDWR (read/write mode) and your
user might not have the rights to do this (some error message "Couldn't open
device, some information will be missing" should be inbetween the output, if so).
Jan 2, 2013 ... Initially, lsusb seems to count devices from 1, /sys from 0. So 10-2 is a good
guess for where to find the APC UPS lsusb gives as bus 10, device 3.
Unfortunately, over time that mapping breaks down—sysfs re-uses numbers ...
Supposing I'm trying to find the device for my UVC camera, lsusb gives me: Bus
001 Device 004: ID 1e4e:0102 Cubeternet GL-UPC822 UVC WebCam. The
device filename is then /dev/bus/usb/001/004 (first component is bus id, next is
lsusb command queries information about currently plugged USB devices. You
can use its -d option to query a certain vendor/product (but it seems to work only
for currently plugged devices): $ lsusb -d 0e21:0750 Bus 001 ...