source: general/sysutils/usbutils.xml@ 431b55c5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 431b55c5 was 5bb32c24, checked in by Pierre Labastie <pieere@…>, 5 years ago

Fix a spurious line break (do not use automatic line breaking when editing the
book

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20969 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.7 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 "&kernel-dl;/linux/utils/usb/usbutils/usbutils-&usbutils-version;.tar.xz">
8 <!ENTITY usbutils-download-ftp " ">
9 <!ENTITY usbutils-md5sum "938e3707593974be99a0dd6d1de76671">
10 <!ENTITY usbutils-size "304 KB">
11 <!ENTITY usbutils-buildsize "4.1 MB">
12 <!ENTITY usbutils-time "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 utilities
34 used to display information about USB buses in the system and the
35 devices connected to them.
36 </para>
37
38 &lfs83_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 <phrase revision="systemd">and <xref linkend="wget"/></phrase>
80 <!-- In the systemd book, a unit/timer is installed to update the
81 usb.ids file automatically. -->
82 </para>
83
84 <bridgehead renderas="sect4">Required Runtime</bridgehead>
85 <para role="required">
86 <xref role="runtime" linkend="python2"/>
87 </para>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/usbutils"/>
91 </para>
92 </sect2>
93
94 <sect2 role="installation">
95 <title>Installation of USB Utils</title>
96
97 <para>
98 Install <application>USB Utils</application> by
99 running the following commands:
100 </para>
101
102<screen><userinput>./configure --prefix=/usr --datadir=/usr/share/hwdata &amp;&amp;
103make</userinput></screen>
104
105 <para>
106 This package does not come with a test suite.
107 </para>
108
109 <para>
110 Now, as the <systemitem class="username">root</systemitem> user:
111 </para>
112
113<screen role="root"><userinput>make install</userinput></screen>
114
115 <para>
116 To install the <filename>usb.ids</filename> data file, using
117 <xref linkend="wget"/>, run, as the
118 <systemitem class="username">root</systemitem> user:
119 </para>
120
121<screen role="root"><userinput>install -dm755 /usr/share/hwdata/ &amp;&amp;
122wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
123
124 <para>
125 The script <command>lsusb.py</command> displays information in a more
126 easily readable form than <command>lsusb</command>. To find the options,
127 use <command>lsusb.py -h</command>. One form of use recommended by the
128 developer is <command>lsusb.py -ciu</command>.
129 </para>
130
131 </sect2>
132<!-- No longer needed
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para>
137 <command>sed ... lsusb.py</command>: Instructs lsusb.py where to search
138 <filename>usb.ids</filename>.
139 </para>
140
141 </sect2>
142-->
143 <sect2 role="configuration">
144 <title>Configuring USB Utils</title>
145
146 <para revision="sysv">
147 The <filename>usb.ids</filename> data file is constantly being updated.
148 To get a current version of this file, using <xref linkend="wget"/>,
149 periodically run again, as the
150 <systemitem class="username">root</systemitem> user:
151 </para>
152
153<screen role="root" revision="sysv"><userinput>wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
154
155 <para>
156 You should update the <filename>/usr/share/hwdata/usb.ids</filename> file
157 periodically. <phrase revision="sysv">If you've installed
158 <xref linkend="fcron"/> and completed the section on periodic jobs,
159 execute</phrase><phrase revision="systemd">Execute</phrase> the following commands, as the <systemitem class="username">root</systemitem> user,
160 to create a <phrase revision="sysv">weekly cron job:</phrase>
161 <phrase revision="systemd">systemd timer to update it weekly on Sundays
162 at 2:30 A.M. (local time):</phrase>
163 </para>
164
165<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-usbids.sh &lt;&lt; "EOF" &amp;&amp;
166<literal>#!/bin/bash
167/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
168EOF
169chmod 754 /etc/cron.weekly/update-usbids.sh</userinput></screen>
170
171<screen role="root" revision="systemd"><userinput>cat &gt; /lib/systemd/system/update-usbids.service &lt;&lt; "EOF" &amp;&amp;
172<literal>[Unit]
173Description=Update usb.ids file
174Documentation=man:lsusb(8)
175DefaultDependencies=no
176After=local-fs.target network-online.target
177Before=shutdown.target
178
179[Service]
180Type=oneshot
181RemainAfterExit=yes
182ExecStart=/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
183EOF
184cat &gt; /lib/systemd/system/update-usbids.timer &lt;&lt; "EOF" &amp;&amp;
185<literal>[Unit]
186Description=Update usb.ids file weekly
187
188[Timer]
189OnCalendar=Sun 03:00:00
190Persistent=true
191
192[Install]
193WantedBy=timers.target</literal>
194EOF
195systemctl enable update-usbids.timer</userinput></screen>
196
197 </sect2>
198
199 <sect2 role="content">
200 <title>Contents</title>
201
202 <segmentedlist>
203 <segtitle>Installed Programs</segtitle>
204 <segtitle>Installed Libraries</segtitle>
205 <segtitle>Installed Directories</segtitle>
206
207 <seglistitem>
208 <seg>
209 lsusb, lsusb.py, usb-devices, and usbhid-dump
210 </seg>
211 <seg>
212 None
213 </seg>
214 <seg>
215 None
216 </seg>
217 </seglistitem>
218 </segmentedlist>
219
220 <variablelist>
221 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
222 <?dbfo list-presentation="list"?>
223 <?dbhtml list-presentation="table"?>
224
225 <varlistentry id="lsusb">
226 <term><command>lsusb</command></term>
227 <listitem>
228 <para>
229 is a utility for displaying information about all USB buses
230 in the system and all devices connected to them, but not in human
231 friendly form.
232 </para>
233 <indexterm zone="usbutils lsusb">
234 <primary sortas="b-lsusb">lsusb</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="lsusb.py">
240 <term><command>lsusb.py</command></term>
241 <listitem>
242 <para>
243 displays information about all USB buses in the system and all
244 devices connected to them in reasonable human friendly form.
245 </para>
246 <indexterm zone="usbutils lsusb.py">
247 <primary sortas="b-lsusb.py">lsusb.py</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="usb-devices">
253 <term><command>usb-devices</command></term>
254 <listitem>
255 <para>
256 is a shell script that displays details of USB buses and devices
257 connected to them. It is designed to be used if /proc/bus/usb/devices
258 is not available on your system.
259 </para>
260 <indexterm zone="usbutils usb-devices">
261 <primary sortas="b-usb-devices">usb-devices</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="usbhid-dump">
267 <term><command>usbhid-dump</command></term>
268 <listitem>
269 <para>
270 is used to dump report descriptors and streams from HID
271 (human interface device) interfaces of USB devices.
272 </para>
273 <indexterm zone="usbutils usbhid-dump">
274 <primary sortas="b-usbhid-dump">usbhid-dump</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 </variablelist>
280
281 </sect2>
282
283</sect1>
Note: See TracBrowser for help on using the repository browser.