source: general/sysutils/usbutils.xml@ 3f2db3a6

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 xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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