source: general/sysutils/usbutils.xml@ d0d2c85a

11.0 11.1 11.2 11.3 12.0 12.1 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 d0d2c85a was d0d2c85a, checked in by Douglas R. Reno <renodr@…>, 3 years ago

logrotate, pciutils, usbutils: Change the systemd units/timers to
install in /usr/lib instead of /lib, for consistency with other related
merged-/usr changes.

  • Property mode set to 100644
File size: 9.1 KB
RevLine 
[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 " ">
[a10e20c]9 <!ENTITY usbutils-md5sum "91b0c9a3382d6f4c382df7a98462de2e">
10 <!ENTITY usbutils-size "96 KB">
11 <!ENTITY usbutils-buildsize "4.5 MB">
12 <!ENTITY usbutils-time "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 <date>$Date$</date>
20 </sect1info>
21
[4890200]22 <title>usbutils-&usbutils-version;</title>
[1ed12e2d]23
24 <indexterm zone="usbutils">
[4890200]25 <primary sortas="a-usbutils">usbutils</primary>
[1ed12e2d]26 </indexterm>
27
28 <sect2 role="package">
[564851b]29 <title>Introduction to USB Utils</title>
[1ed12e2d]30
[564851b]31 <para>
[2882ec4b]32 The <application>USB Utils</application> package contains utilities
[564851b]33 used to display information about USB buses in the system and the
34 devices connected to them.
35 </para>
[1ed12e2d]36
[9029db2]37 &lfs101_checked;
[75c492d]38
[1ed12e2d]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[564851b]42 <para>
43 Download (HTTP): <ulink url="&usbutils-download-http;"/>
44 </para>
[1ed12e2d]45 </listitem>
46 <listitem>
[564851b]47 <para>
48 Download (FTP): <ulink url="&usbutils-download-ftp;"/>
49 </para>
[1ed12e2d]50 </listitem>
51 <listitem>
[564851b]52 <para>
53 Download MD5 sum: &usbutils-md5sum;
54 </para>
[1ed12e2d]55 </listitem>
56 <listitem>
[564851b]57 <para>
58 Download size: &usbutils-size;
59 </para>
[1ed12e2d]60 </listitem>
61 <listitem>
[564851b]62 <para>
63 Estimated disk space required: &usbutils-buildsize;
64 </para>
[1ed12e2d]65 </listitem>
66 <listitem>
[564851b]67 <para>
68 Estimated build time: &usbutils-time;
69 </para>
[1ed12e2d]70 </listitem>
71 </itemizedlist>
[1a424644]72<!--
[194a584]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch:
78 <ulink url="&patch-root;/usbutils-&usbutils-version;-lsusb_bugfixes-1.patch"/>
79 </para>
80 </listitem>
81 </itemizedlist>
[1a424644]82-->
[564851b]83 <bridgehead renderas="sect3">USB Utils Dependencies</bridgehead>
[9f12e36]84
[deb4808]85 <bridgehead renderas="sect4">Required</bridgehead>
[76cfd80]86 <para role="required">
[195b246]87 <xref linkend="libusb"/> and
88 <xref linkend="wget"/>
[eae7f55]89 <!-- In the systemd book, a unit/timer is installed to update the
[195b246]90 usb.ids file automatically.
91
92 wget is used in the instructions below.
93 -->
[76cfd80]94 </para>
[1ed12e2d]95
[1a424644]96<!-- lsusb.py has been ported to Python 3, and it is the only Python user
[f22356bf]97 <bridgehead renderas="sect4">Required Runtime</bridgehead>
[1051f94e]98 <para role="required">
99 <xref role="runtime" linkend="python2"/>
100 </para>
[5093a1f9]101-->
[1ed12e2d]102 <para condition="html" role="usernotes">User Notes:
[564851b]103 <ulink url="&blfs-wiki;/usbutils"/>
104 </para>
[1ed12e2d]105 </sect2>
106
107 <sect2 role="installation">
[564851b]108 <title>Installation of USB Utils</title>
[1ed12e2d]109
[564851b]110 <para>
111 Install <application>USB Utils</application> by
112 running the following commands:
113 </para>
[1ed12e2d]114
[1a424644]115<screen><userinput>./autogen.sh --prefix=/usr --datadir=/usr/share/hwdata &amp;&amp;
[1ed12e2d]116make</userinput></screen>
117
[564851b]118 <para>
119 This package does not come with a test suite.
120 </para>
[1ed12e2d]121
[564851b]122 <para>
123 Now, as the <systemitem class="username">root</systemitem> user:
124 </para>
[1ed12e2d]125
[2882ec4b]126<screen role="root"><userinput>make install</userinput></screen>
[1ed12e2d]127
[b1092d9]128 <para>
129 To install the <filename>usb.ids</filename> data file, using
130 <xref linkend="wget"/>, run, as the
131 <systemitem class="username">root</systemitem> user:
132 </para>
133
134<screen role="root"><userinput>install -dm755 /usr/share/hwdata/ &amp;&amp;
135wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
136
[f22356bf]137 <para>
138 The script <command>lsusb.py</command> displays information in a more
139 easily readable form than <command>lsusb</command>. To find the options,
140 use <command>lsusb.py -h</command>. One form of use recommended by the
141 developer is <command>lsusb.py -ciu</command>.
142 </para>
143
[1ed12e2d]144 </sect2>
[0e463f49]145<!-- No longer needed
[1ed12e2d]146 <sect2 role="commands">
147 <title>Command Explanations</title>
148
[564851b]149 <para>
[2882ec4b]150 <command>sed ... lsusb.py</command>: Instructs lsusb.py where to search
151 <filename>usb.ids</filename>.
[564851b]152 </para>
[1ed12e2d]153
154 </sect2>
[0e463f49]155-->
[1ed12e2d]156 <sect2 role="configuration">
[564851b]157 <title>Configuring USB Utils</title>
158
[ac8c7d4]159 <para revision="sysv">
[3c4997d]160 The <filename>usb.ids</filename> data file is constantly being updated.
[b1092d9]161 To get a current version of this file, using <xref linkend="wget"/>,
162 periodically run again, as the
163 <systemitem class="username">root</systemitem> user:
164 </para>
[838cd0f]165
[ac8c7d4]166<screen role="root" revision="sysv"><userinput>wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</userinput></screen>
[564851b]167
[b471f6a]168 <para>
[ac8c7d4]169 You should update the <filename>/usr/share/hwdata/usb.ids</filename> file
[b471f6a]170 periodically. <phrase revision="sysv">If you've installed
171 <xref linkend="fcron"/> and completed the section on periodic jobs,
172 execute</phrase><phrase revision="systemd">Execute</phrase> the following commands, as the <systemitem class="username">root</systemitem> user,
173 to create a <phrase revision="sysv">weekly cron job:</phrase>
174 <phrase revision="systemd">systemd timer to update it weekly on Sundays
175 at 2:30 A.M. (local time):</phrase>
[ac8c7d4]176 </para>
177
[914dd13]178<screen role="nodump" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-usbids.sh &lt;&lt; "EOF" &amp;&amp;
[b471f6a]179<literal>#!/bin/bash
180/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
181EOF
[02e3bbc8]182chmod 754 /etc/cron.weekly/update-usbids.sh</userinput></screen>
[b471f6a]183
[d0d2c85a]184<screen role="root" revision="systemd"><userinput>cat &gt; /usr/lib/systemd/system/update-usbids.service &lt;&lt; "EOF" &amp;&amp;
[ac8c7d4]185<literal>[Unit]
186Description=Update usb.ids file
[f5a82e9c]187Documentation=man:lsusb(8)
[ac8c7d4]188DefaultDependencies=no
[a5b9f1e]189After=local-fs.target network-online.target
[ac8c7d4]190Before=shutdown.target
191
192[Service]
193Type=oneshot
194RemainAfterExit=yes
195ExecStart=/usr/bin/wget http://www.linux-usb.org/usb.ids -O /usr/share/hwdata/usb.ids</literal>
196EOF
[d0d2c85a]197cat &gt; /usr/lib/systemd/system/update-usbids.timer &lt;&lt; "EOF" &amp;&amp;
[ac8c7d4]198<literal>[Unit]
199Description=Update usb.ids file weekly
200
201[Timer]
202OnCalendar=Sun 03:00:00
203Persistent=true
204
205[Install]
206WantedBy=timers.target</literal>
207EOF
208systemctl enable update-usbids.timer</userinput></screen>
209
[838cd0f]210 </sect2>
[1ed12e2d]211
212 <sect2 role="content">
213 <title>Contents</title>
214
215 <segmentedlist>
216 <segtitle>Installed Programs</segtitle>
[c3c56b2]217 <segtitle>Installed Libraries</segtitle>
218 <segtitle>Installed Directories</segtitle>
[1ed12e2d]219
220 <seglistitem>
[564851b]221 <seg>
[2882ec4b]222 lsusb, lsusb.py, usb-devices, and usbhid-dump
[564851b]223 </seg>
[c3c56b2]224 <seg>
225 None
226 </seg>
227 <seg>
228 None
229 </seg>
[1ed12e2d]230 </seglistitem>
231 </segmentedlist>
232
233 <variablelist>
234 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
235 <?dbfo list-presentation="list"?>
236 <?dbhtml list-presentation="table"?>
237
238 <varlistentry id="lsusb">
239 <term><command>lsusb</command></term>
240 <listitem>
[564851b]241 <para>
[73fe507]242 is a utility for displaying information about all USB buses
[f22356bf]243 in the system and all devices connected to them, but not in human
[4c24eb0a]244 friendly form
[564851b]245 </para>
[1ed12e2d]246 <indexterm zone="usbutils lsusb">
247 <primary sortas="b-lsusb">lsusb</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
[2882ec4b]252 <varlistentry id="lsusb.py">
253 <term><command>lsusb.py</command></term>
[1ed12e2d]254 <listitem>
[564851b]255 <para>
[f22356bf]256 displays information about all USB buses in the system and all
[4c24eb0a]257 devices connected to them in reasonable human friendly form
[564851b]258 </para>
[2882ec4b]259 <indexterm zone="usbutils lsusb.py">
260 <primary sortas="b-lsusb.py">lsusb.py</primary>
[1ed12e2d]261 </indexterm>
262 </listitem>
263 </varlistentry>
[75c492d]264
265 <varlistentry id="usb-devices">
266 <term><command>usb-devices</command></term>
267 <listitem>
[564851b]268 <para>
269 is a shell script that displays details of USB buses and devices
270 connected to them. It is designed to be used if /proc/bus/usb/devices
[4c24eb0a]271 is not available on your system
[564851b]272 </para>
[75c492d]273 <indexterm zone="usbutils usb-devices">
274 <primary sortas="b-usb-devices">usb-devices</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
[564851b]279 <varlistentry id="usbhid-dump">
280 <term><command>usbhid-dump</command></term>
281 <listitem>
282 <para>
283 is used to dump report descriptors and streams from HID
[4c24eb0a]284 (human interface device) interfaces of USB devices
[564851b]285 </para>
286 <indexterm zone="usbutils usbhid-dump">
287 <primary sortas="b-usbhid-dump">usbhid-dump</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
[1ed12e2d]292 </variablelist>
293
294 </sect2>
295
296</sect1>
Note: See TracBrowser for help on using the repository browser.