source: general/sysutils/usbutils.xml@ 1270e6b3

systemd-13485
Last change on this file since 1270e6b3 was 1270e6b3, checked in by Christopher Gregory <cjg@…>, 10 years ago

Merge another update from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14811 af4574ff-66df-0310-9fd7-8a98e5e911e0

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