source: general/sysutils/usbutils.xml@ e7d893b

elogind
Last change on this file since e7d893b was e7d893b, checked in by DJ Lucas <dj@…>, 5 years ago

Merge to HEAD 21602.

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

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