[1ed12e2d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[1ed12e2d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY usbutils-download-http "&kernel-dl;/linux/utils/usb/usbutils/usbutils-&usbutils-version;.tar.xz">
|
---|
[faa68e4a] | 8 | <!ENTITY usbutils-download-ftp " ">
|
---|
[2882ec4b] | 9 | <!ENTITY usbutils-md5sum "2780b6ae21264c888f8f30fb2aab1259">
|
---|
| 10 | <!ENTITY usbutils-size "284 KB">
|
---|
| 11 | <!ENTITY usbutils-buildsize "3.8 MB">
|
---|
[586b174f] | 12 | <!ENTITY usbutils-time "less than 0.1 SBU">
|
---|
[1ed12e2d] | 13 | ]>
|
---|
| 14 |
|
---|
[4890200] | 15 | <sect1 id="usbutils" xreflabel="usbutils-&usbutils-version;">
|
---|
[1ed12e2d] | 16 | <?dbhtml filename="usbutils.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[4890200] | 23 | <title>usbutils-&usbutils-version;</title>
|
---|
[1ed12e2d] | 24 |
|
---|
| 25 | <indexterm zone="usbutils">
|
---|
[4890200] | 26 | <primary sortas="a-usbutils">usbutils</primary>
|
---|
[1ed12e2d] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[564851b] | 30 | <title>Introduction to USB Utils</title>
|
---|
[1ed12e2d] | 31 |
|
---|
[564851b] | 32 | <para>
|
---|
[2882ec4b] | 33 | The <application>USB Utils</application> package contains utilities
|
---|
[564851b] | 34 | used to display information about USB buses in the system and the
|
---|
| 35 | devices connected to them.
|
---|
| 36 | </para>
|
---|
[1ed12e2d] | 37 |
|
---|
[5ae3416] | 38 | &lfs81_checked;
|
---|
[75c492d] | 39 |
|
---|
[1ed12e2d] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[564851b] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&usbutils-download-http;"/>
|
---|
| 45 | </para>
|
---|
[1ed12e2d] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[564851b] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&usbutils-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[1ed12e2d] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[564851b] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &usbutils-md5sum;
|
---|
| 55 | </para>
|
---|
[1ed12e2d] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[564851b] | 58 | <para>
|
---|
| 59 | Download size: &usbutils-size;
|
---|
| 60 | </para>
|
---|
[1ed12e2d] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[564851b] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &usbutils-buildsize;
|
---|
| 65 | </para>
|
---|
[1ed12e2d] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[564851b] | 68 | <para>
|
---|
| 69 | Estimated build time: &usbutils-time;
|
---|
| 70 | </para>
|
---|
[1ed12e2d] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[564851b] | 74 | <bridgehead renderas="sect3">USB Utils Dependencies</bridgehead>
|
---|
[9f12e36] | 75 |
|
---|
[1ed12e2d] | 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[76cfd80] | 77 | <para role="required">
|
---|
[adf6dd9a] | 78 | <xref linkend="libusb"/>
|
---|
[76cfd80] | 79 | </para>
|
---|
[1ed12e2d] | 80 |
|
---|
[f22356bf] | 81 | <bridgehead renderas="sect4">Required Runtime</bridgehead>
|
---|
[1051f94e] | 82 | <para role="required">
|
---|
| 83 | <xref role="runtime" linkend="python2"/>
|
---|
| 84 | </para>
|
---|
[f22356bf] | 85 |
|
---|
[1ed12e2d] | 86 | <para condition="html" role="usernotes">User Notes:
|
---|
[564851b] | 87 | <ulink url="&blfs-wiki;/usbutils"/>
|
---|
| 88 | </para>
|
---|
[1ed12e2d] | 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
[564851b] | 92 | <title>Installation of USB Utils</title>
|
---|
[1ed12e2d] | 93 |
|
---|
[564851b] | 94 | <para>
|
---|
| 95 | Install <application>USB Utils</application> by
|
---|
| 96 | running the following commands:
|
---|
| 97 | </para>
|
---|
[1ed12e2d] | 98 |
|
---|
[2882ec4b] | 99 | <screen><userinput>sed -i '/^usbids/ s:usb.ids:hwdata/&:' lsusb.py &&
|
---|
[838cd0f] | 100 |
|
---|
[2882ec4b] | 101 | ./configure --prefix=/usr --datadir=/usr/share/hwdata &&
|
---|
[1ed12e2d] | 102 | make</userinput></screen>
|
---|
| 103 |
|
---|
[564851b] | 104 | <para>
|
---|
| 105 | This package does not come with a test suite.
|
---|
| 106 | </para>
|
---|
[1ed12e2d] | 107 |
|
---|
[564851b] | 108 | <para>
|
---|
| 109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
[1ed12e2d] | 111 |
|
---|
[2882ec4b] | 112 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[1ed12e2d] | 113 |
|
---|
[b1092d9] | 114 | <para>
|
---|
| 115 | To install the <filename>usb.ids</filename> data file, using
|
---|
| 116 | <xref linkend="wget"/>, run, as the
|
---|
| 117 | <systemitem class="username">root</systemitem> user:
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <screen role="root"><userinput>install -dm755 /usr/share/hwdata/ &&
|
---|
| 121 | wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
|
---|
| 122 |
|
---|
[f22356bf] | 123 | <para>
|
---|
| 124 | The script <command>lsusb.py</command> displays information in a more
|
---|
| 125 | easily readable form than <command>lsusb</command>. To find the options,
|
---|
| 126 | use <command>lsusb.py -h</command>. One form of use recommended by the
|
---|
| 127 | developer is <command>lsusb.py -ciu</command>.
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
[1ed12e2d] | 130 | </sect2>
|
---|
| 131 |
|
---|
| 132 | <sect2 role="commands">
|
---|
| 133 | <title>Command Explanations</title>
|
---|
| 134 |
|
---|
[564851b] | 135 | <para>
|
---|
[2882ec4b] | 136 | <command>sed ... lsusb.py</command>: Instructs lsusb.py where to search
|
---|
| 137 | <filename>usb.ids</filename>.
|
---|
[564851b] | 138 | </para>
|
---|
[1ed12e2d] | 139 |
|
---|
| 140 | </sect2>
|
---|
[838cd0f] | 141 |
|
---|
[1ed12e2d] | 142 | <sect2 role="configuration">
|
---|
[564851b] | 143 | <title>Configuring USB Utils</title>
|
---|
| 144 |
|
---|
| 145 | <para>
|
---|
[3c4997d] | 146 | The <filename>usb.ids</filename> data file is constantly being updated.
|
---|
[b1092d9] | 147 | To get a current version of this file, using <xref linkend="wget"/>,
|
---|
| 148 | periodically run again, as the
|
---|
| 149 | <systemitem class="username">root</systemitem> user:
|
---|
| 150 | </para>
|
---|
[838cd0f] | 151 |
|
---|
[94f93146] | 152 | <screen role="root"><userinput>wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
|
---|
[564851b] | 153 |
|
---|
| 154 | <para>
|
---|
| 155 | You may wish to add an entry to
|
---|
| 156 | <systemitem class="username">root</systemitem>'s (or any other user who has
|
---|
[838cd0f] | 157 | write privilege to <filename class="directory">/usr/share/hwdata</filename>)
|
---|
[564851b] | 158 | crontab to automatically update the <filename>usb.ids</filename> file
|
---|
| 159 | periodically.
|
---|
| 160 | </para>
|
---|
[1ed12e2d] | 161 |
|
---|
[838cd0f] | 162 | </sect2>
|
---|
[1ed12e2d] | 163 |
|
---|
| 164 | <sect2 role="content">
|
---|
| 165 | <title>Contents</title>
|
---|
| 166 |
|
---|
| 167 | <segmentedlist>
|
---|
| 168 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 169 | <segtitle>Installed Libraries</segtitle>
|
---|
| 170 | <segtitle>Installed Directories</segtitle>
|
---|
[1ed12e2d] | 171 |
|
---|
| 172 | <seglistitem>
|
---|
[564851b] | 173 | <seg>
|
---|
[2882ec4b] | 174 | lsusb, lsusb.py, usb-devices, and usbhid-dump
|
---|
[564851b] | 175 | </seg>
|
---|
[c3c56b2] | 176 | <seg>
|
---|
| 177 | None
|
---|
| 178 | </seg>
|
---|
| 179 | <seg>
|
---|
| 180 | None
|
---|
| 181 | </seg>
|
---|
[1ed12e2d] | 182 | </seglistitem>
|
---|
| 183 | </segmentedlist>
|
---|
| 184 |
|
---|
| 185 | <variablelist>
|
---|
| 186 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 187 | <?dbfo list-presentation="list"?>
|
---|
| 188 | <?dbhtml list-presentation="table"?>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="lsusb">
|
---|
| 191 | <term><command>lsusb</command></term>
|
---|
| 192 | <listitem>
|
---|
[564851b] | 193 | <para>
|
---|
[73fe507] | 194 | is a utility for displaying information about all USB buses
|
---|
[f22356bf] | 195 | in the system and all devices connected to them, but not in human
|
---|
| 196 | friendly form.
|
---|
[564851b] | 197 | </para>
|
---|
[1ed12e2d] | 198 | <indexterm zone="usbutils lsusb">
|
---|
| 199 | <primary sortas="b-lsusb">lsusb</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
[2882ec4b] | 204 | <varlistentry id="lsusb.py">
|
---|
| 205 | <term><command>lsusb.py</command></term>
|
---|
[1ed12e2d] | 206 | <listitem>
|
---|
[564851b] | 207 | <para>
|
---|
[f22356bf] | 208 | displays information about all USB buses in the system and all
|
---|
| 209 | devices connected to them in reasonable human friendly form.
|
---|
[564851b] | 210 | </para>
|
---|
[2882ec4b] | 211 | <indexterm zone="usbutils lsusb.py">
|
---|
| 212 | <primary sortas="b-lsusb.py">lsusb.py</primary>
|
---|
[1ed12e2d] | 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
[75c492d] | 216 |
|
---|
| 217 | <varlistentry id="usb-devices">
|
---|
| 218 | <term><command>usb-devices</command></term>
|
---|
| 219 | <listitem>
|
---|
[564851b] | 220 | <para>
|
---|
| 221 | is a shell script that displays details of USB buses and devices
|
---|
| 222 | connected to them. It is designed to be used if /proc/bus/usb/devices
|
---|
| 223 | is not available on your system.
|
---|
| 224 | </para>
|
---|
[75c492d] | 225 | <indexterm zone="usbutils usb-devices">
|
---|
| 226 | <primary sortas="b-usb-devices">usb-devices</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
[564851b] | 231 | <varlistentry id="usbhid-dump">
|
---|
| 232 | <term><command>usbhid-dump</command></term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>
|
---|
| 235 | is used to dump report descriptors and streams from HID
|
---|
| 236 | (human interface device) interfaces of USB devices.
|
---|
| 237 | </para>
|
---|
| 238 | <indexterm zone="usbutils usbhid-dump">
|
---|
| 239 | <primary sortas="b-usbhid-dump">usbhid-dump</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
[1ed12e2d] | 244 | </variablelist>
|
---|
| 245 |
|
---|
| 246 | </sect2>
|
---|
| 247 |
|
---|
| 248 | </sect1>
|
---|