usbutils-008
Introduction to USB Utils
The USB Utils package contains
utilities used to display information about USB buses in the system
and the devices connected to them.
This package is known to build and work properly using an LFS-7.10
platform.
Package Information
USB Utils Dependencies
Required
libusb-1.0.20
Required Runtime
Python-2.7.12
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/usbutils
Installation of USB Utils
Install USB Utils by running the
following commands:
sed -i '/^usbids/ s:usb.ids:hwdata/&:' lsusb.py &&
./configure --prefix=/usr --datadir=/usr/share/hwdata &&
make
This package does not come with a test suite.
Now, as the root
user:
make install
To install the usb.ids
data file,
using Wget-1.18, run, as the root
user:
install -dm755 /usr/share/hwdata/ &&
wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids
The script lsusb.py
displays information in a more easily readable form than
lsusb. To find the
options, use lsusb.py
-h. One form of use recommended by the developer is
lsusb.py -ciu.
Command Explanations
sed ... lsusb.py:
Instructs lsusb.py where to search usb.ids
.
Configuring USB Utils
The usb.ids
data file is constantly
being updated. To get a current version of this file, using
Wget-1.18, periodically run again, as the
root
user:
wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids
You may wish to add an entry to root
's (or any other user who has write
privilege to /usr/share/hwdata
)
crontab to automatically update the usb.ids
file periodically.
Contents
Installed Programs:
lsusb, lsusb.py, usb-devices, and
usbhid-dump
Installed Libraries:
None
Installed Directories:
None
Short Descriptions
lsusb
|
is a utility for displaying information about all USB
buses in the system and all devices connected to them,
but not in human friendly form.
|
lsusb.py
|
displays information about all USB buses in the system
and all devices connected to them in reasonable human
friendly form.
|
usb-devices
|
is a shell script that displays details of USB buses and
devices connected to them. It is designed to be used if
/proc/bus/usb/devices is not available on your system.
|
usbhid-dump
|
is used to dump report descriptors and streams from HID
(human interface device) interfaces of USB devices.
|
Last updated on 2016-08-27 10:35:10 -0700