2006-05-20 22:03:40 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2006-05-20 22:03:40 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY usbutils-download-http "&kernel-dl;/linux/utils/usb/usbutils/usbutils-&usbutils-version;.tar.xz">
|
2017-03-07 03:07:51 +08:00
|
|
|
<!ENTITY usbutils-download-ftp " ">
|
2018-05-22 01:38:43 +08:00
|
|
|
<!ENTITY usbutils-md5sum "938e3707593974be99a0dd6d1de76671">
|
2017-11-29 03:45:09 +08:00
|
|
|
<!ENTITY usbutils-size "304 KB">
|
2018-05-22 01:38:43 +08:00
|
|
|
<!ENTITY usbutils-buildsize "4.1 MB">
|
|
|
|
<!ENTITY usbutils-time "0.1 SBU">
|
2006-05-20 22:03:40 +08:00
|
|
|
]>
|
|
|
|
|
2013-04-28 02:04:22 +08:00
|
|
|
<sect1 id="usbutils" xreflabel="usbutils-&usbutils-version;">
|
2006-05-20 22:03:40 +08:00
|
|
|
<?dbhtml filename="usbutils.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2013-04-28 02:04:22 +08:00
|
|
|
<title>usbutils-&usbutils-version;</title>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
|
|
|
<indexterm zone="usbutils">
|
2013-04-28 02:04:22 +08:00
|
|
|
<primary sortas="a-usbutils">usbutils</primary>
|
2006-05-20 22:03:40 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
2012-07-24 02:35:26 +08:00
|
|
|
<title>Introduction to USB Utils</title>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
2014-10-23 09:54:22 +08:00
|
|
|
The <application>USB Utils</application> package contains utilities
|
2012-07-24 02:35:26 +08:00
|
|
|
used to display information about USB buses in the system and the
|
|
|
|
devices connected to them.
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2018-08-19 05:53:19 +08:00
|
|
|
&lfs83_checked;
|
2009-07-29 00:36:59 +08:00
|
|
|
|
2006-05-20 22:03:40 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&usbutils-download-http;"/>
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&usbutils-download-ftp;"/>
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &usbutils-md5sum;
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Download size: &usbutils-size;
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &usbutils-buildsize;
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &usbutils-time;
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2019-01-14 14:57:49 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Required patch:
|
|
|
|
<ulink url="&patch-root;/usbutils-&usbutils-version;-lsusb_bugfixes-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2012-07-24 02:35:26 +08:00
|
|
|
<bridgehead renderas="sect3">USB Utils Dependencies</bridgehead>
|
2006-06-22 00:26:07 +08:00
|
|
|
|
2006-05-20 22:03:40 +08:00
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2011-12-28 06:50:47 +08:00
|
|
|
<para role="required">
|
2013-10-22 04:02:06 +08:00
|
|
|
<xref linkend="libusb"/>
|
2018-11-30 05:23:09 +08:00
|
|
|
<phrase revision="systemd">and <xref linkend="wget"/></phrase>
|
|
|
|
<!-- In the systemd book, a unit/timer is installed to update the
|
|
|
|
usb.ids file automatically. -->
|
2011-12-28 06:50:47 +08:00
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2014-10-23 23:07:50 +08:00
|
|
|
<bridgehead renderas="sect4">Required Runtime</bridgehead>
|
2017-09-14 16:26:48 +08:00
|
|
|
<para role="required">
|
|
|
|
<xref role="runtime" linkend="python2"/>
|
|
|
|
</para>
|
2014-10-23 23:07:50 +08:00
|
|
|
|
2006-05-20 22:03:40 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
2012-07-24 02:35:26 +08:00
|
|
|
<ulink url="&blfs-wiki;/usbutils"/>
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
2012-07-24 02:35:26 +08:00
|
|
|
<title>Installation of USB Utils</title>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Install <application>USB Utils</application> by
|
|
|
|
running the following commands:
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2019-01-14 14:57:49 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../usbutils-&usbutils-version;-lsusb_bugfixes-1.patch &&
|
|
|
|
./configure --prefix=/usr --datadir=/usr/share/hwdata &&
|
2006-05-20 22:03:40 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2014-10-23 09:54:22 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
2016-01-12 00:03:26 +08:00
|
|
|
<para>
|
|
|
|
To install the <filename>usb.ids</filename> data file, using
|
|
|
|
<xref linkend="wget"/>, run, as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -dm755 /usr/share/hwdata/ &&
|
|
|
|
wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
|
|
|
|
|
2014-10-23 23:07:50 +08:00
|
|
|
<para>
|
|
|
|
The script <command>lsusb.py</command> displays information in a more
|
|
|
|
easily readable form than <command>lsusb</command>. To find the options,
|
|
|
|
use <command>lsusb.py -h</command>. One form of use recommended by the
|
|
|
|
developer is <command>lsusb.py -ciu</command>.
|
|
|
|
</para>
|
|
|
|
|
2006-05-20 22:03:40 +08:00
|
|
|
</sect2>
|
2017-11-29 03:45:09 +08:00
|
|
|
<!-- No longer needed
|
2006-05-20 22:03:40 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
2014-10-23 09:54:22 +08:00
|
|
|
<command>sed ... lsusb.py</command>: Instructs lsusb.py where to search
|
|
|
|
<filename>usb.ids</filename>.
|
2012-07-24 02:35:26 +08:00
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
|
|
|
</sect2>
|
2017-11-29 03:45:09 +08:00
|
|
|
-->
|
2006-05-20 22:03:40 +08:00
|
|
|
<sect2 role="configuration">
|
2012-07-24 02:35:26 +08:00
|
|
|
<title>Configuring USB Utils</title>
|
|
|
|
|
2017-10-23 04:57:13 +08:00
|
|
|
<para revision="sysv">
|
2014-10-26 19:13:24 +08:00
|
|
|
The <filename>usb.ids</filename> data file is constantly being updated.
|
2016-01-12 00:03:26 +08:00
|
|
|
To get a current version of this file, using <xref linkend="wget"/>,
|
|
|
|
periodically run again, as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2014-10-25 09:52:14 +08:00
|
|
|
|
2017-10-23 04:57:13 +08:00
|
|
|
<screen role="root" revision="sysv"><userinput>wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
|
2012-07-24 02:35:26 +08:00
|
|
|
|
2018-12-24 02:56:44 +08:00
|
|
|
<para>
|
2017-10-23 04:57:13 +08:00
|
|
|
You should update the <filename>/usr/share/hwdata/usb.ids</filename> file
|
2018-12-24 02:56:44 +08:00
|
|
|
periodically. <phrase revision="sysv">If you've installed
|
|
|
|
<xref linkend="fcron"/> and completed the section on periodic jobs,
|
|
|
|
execute</phrase><phrase revision="systemd">Execute</phrase> the following commands, as the <systemitem class="username">root</systemitem> user,
|
|
|
|
to create a <phrase revision="sysv">weekly cron job:</phrase>
|
|
|
|
<phrase revision="systemd">systemd timer to update it weekly on Sundays
|
|
|
|
at 2:30 A.M. (local time):</phrase>
|
2017-10-23 04:57:13 +08:00
|
|
|
</para>
|
|
|
|
|
2019-01-13 23:29:10 +08:00
|
|
|
<screen role="root" revision="sysv"><userinput>cat > /etc/cron.weekly/update-usbids.sh << "EOF" &&
|
2018-12-24 02:56:44 +08:00
|
|
|
<literal>#!/bin/bash
|
|
|
|
/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
|
|
|
|
EOF
|
2019-01-02 13:30:48 +08:00
|
|
|
chmod 754 /etc/cron.weekly/update-usbids.sh</userinput></screen>
|
2018-12-24 02:56:44 +08:00
|
|
|
|
2017-10-23 04:57:13 +08:00
|
|
|
<screen role="root" revision="systemd"><userinput>cat > /lib/systemd/system/update-usbids.service << "EOF" &&
|
|
|
|
<literal>[Unit]
|
|
|
|
Description=Update usb.ids file
|
2018-11-30 06:50:54 +08:00
|
|
|
Documentation=man:lsusb(8)
|
2017-10-23 04:57:13 +08:00
|
|
|
DefaultDependencies=no
|
2018-11-25 04:21:05 +08:00
|
|
|
After=local-fs.target network-online.target
|
2017-10-23 04:57:13 +08:00
|
|
|
Before=shutdown.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
ExecStart=/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
|
|
|
|
EOF
|
|
|
|
cat > /lib/systemd/system/update-usbids.timer << "EOF" &&
|
|
|
|
<literal>[Unit]
|
|
|
|
Description=Update usb.ids file weekly
|
|
|
|
|
|
|
|
[Timer]
|
|
|
|
OnCalendar=Sun 03:00:00
|
|
|
|
Persistent=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=timers.target</literal>
|
|
|
|
EOF
|
|
|
|
systemctl enable update-usbids.timer</userinput></screen>
|
|
|
|
|
2014-10-25 09:52:14 +08:00
|
|
|
</sect2>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
2013-01-26 00:32:25 +08:00
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2006-05-20 22:03:40 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<seg>
|
2014-10-23 09:54:22 +08:00
|
|
|
lsusb, lsusb.py, usb-devices, and usbhid-dump
|
2012-07-24 02:35:26 +08:00
|
|
|
</seg>
|
2013-01-26 00:32:25 +08:00
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
2006-05-20 22:03:40 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="lsusb">
|
|
|
|
<term><command>lsusb</command></term>
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
2015-07-26 00:05:00 +08:00
|
|
|
is a utility for displaying information about all USB buses
|
2014-10-23 23:07:50 +08:00
|
|
|
in the system and all devices connected to them, but not in human
|
|
|
|
friendly form.
|
2012-07-24 02:35:26 +08:00
|
|
|
</para>
|
2006-05-20 22:03:40 +08:00
|
|
|
<indexterm zone="usbutils lsusb">
|
|
|
|
<primary sortas="b-lsusb">lsusb</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2014-10-23 09:54:22 +08:00
|
|
|
<varlistentry id="lsusb.py">
|
|
|
|
<term><command>lsusb.py</command></term>
|
2006-05-20 22:03:40 +08:00
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
2014-10-23 23:07:50 +08:00
|
|
|
displays information about all USB buses in the system and all
|
|
|
|
devices connected to them in reasonable human friendly form.
|
2012-07-24 02:35:26 +08:00
|
|
|
</para>
|
2014-10-23 09:54:22 +08:00
|
|
|
<indexterm zone="usbutils lsusb.py">
|
|
|
|
<primary sortas="b-lsusb.py">lsusb.py</primary>
|
2006-05-20 22:03:40 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2009-07-29 00:36:59 +08:00
|
|
|
|
|
|
|
<varlistentry id="usb-devices">
|
|
|
|
<term><command>usb-devices</command></term>
|
|
|
|
<listitem>
|
2012-07-24 02:35:26 +08:00
|
|
|
<para>
|
|
|
|
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.
|
|
|
|
</para>
|
2009-07-29 00:36:59 +08:00
|
|
|
<indexterm zone="usbutils usb-devices">
|
|
|
|
<primary sortas="b-usb-devices">usb-devices</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-07-24 02:35:26 +08:00
|
|
|
<varlistentry id="usbhid-dump">
|
|
|
|
<term><command>usbhid-dump</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to dump report descriptors and streams from HID
|
|
|
|
(human interface device) interfaces of USB devices.
|
|
|
|
</para>
|
|
|
|
<indexterm zone="usbutils usbhid-dump">
|
|
|
|
<primary sortas="b-usbhid-dump">usbhid-dump</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-05-20 22:03:40 +08:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|