usbutils-008

Introduction to USB Utils

The USB Utils package contains an utility 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.6 systemd platform.

Package Information

USB Utils Dependencies

Required

libusb-1.0.19

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 &&
mv -v /usr/sbin/update-usbids.sh /usr/sbin/update-usbids

Command Explanations

--disable-zlib: This stops USB Utils from installing a compressed usb.ids alongside the uncompressed one.

Configuring USB Utils

The usb.ids data file is constantly being updated. To get a current version of this file, run, as the root user:

install -dm755 /usr/share/hwdata/ &&
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, update-usbids, usb-devices, and usbhid-dump
Installed Libraries: None
Installed Directories: None

Short Descriptions

lsusb

is an utility for displaying information about all USB buses in the system and all devices connected to them.

update-usbids

downloads the current version of the USB ID list. Requires Lynx-2.8.8rel.2 or Wget-1.16.1.

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 2014-11-22 18:32:08 +0000