source: general/sysutils/usbutils.xml@ f67c5c8

12.1 ken/TL2024 lazarus trunk xry111/llvm18
Last change on this file since f67c5c8 was b9874725, checked in by Bruce Dubbs <bdubbs@…>, 4 months ago

Many tags.

Mostly Programming and Xorg sections and dependencies.

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