source: x/installing/libinput.xml@ a42c273

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.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 a42c273 was a42c273, checked in by Pierre Labastie <pieere@…>, 5 years ago

First round of remap attributes; the "doc" ones + a few "test". Rewrote some
parts so that doc that can be installed with recommended deps is in main
instructions. Also, move doc instructions in <command> tags to <screen>.

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

  • Property mode set to 100644
File size: 11.9 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 libinput-version "1.13.2">
8
9 <!ENTITY libinput-download-http "https://www.freedesktop.org/software/libinput/libinput-&libinput-version;.tar.xz">
10 <!ENTITY libinput-download-ftp " ">
11 <!ENTITY libinput-md5sum "8b745894f5d1b2e883bfc686aebadcfe">
12 <!ENTITY libinput-size "520 KB">
13 <!ENTITY libinput-buildsize "11 MB">
14 <!ENTITY libinput-time "less than 0.1 SBU">
15]>
16
17<sect2 id="libinput" xreflabel="libinput-&libinput-version;">
18 <?dbhtml filename="libinput.html"?>
19
20 <sect2info>
21 <othername>$LastChangedBy: renodr $</othername>
22 <date>$Date: 2015-09-14 17:42:53 -0500 (Mon, 14 Sep 2015) $</date>
23 </sect2info>
24
25 <title>libinput-&libinput-version;</title>
26
27 <indexterm zone="libinput">
28 <primary sortas="a-libinput">libinput</primary>
29 </indexterm>
30
31 <sect3 role="package">
32 <title>Introduction to libinput</title>
33
34 <para>
35 <application>libinput</application> is a library that handles
36 input devices for display servers and other applications that
37 need to directly deal with input devices.
38 </para>
39
40 &lfs84_checked;
41
42 <bridgehead renderas="sect4">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&libinput-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&libinput-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &libinput-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &libinput-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &libinput-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &libinput-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect4">libinput Dependencies</bridgehead>
77
78 <bridgehead renderas="sect5">Required</bridgehead>
79 <para role="required">
80 <xref linkend="libevdev"/> and
81 <xref linkend="mtdev"/>
82 </para>
83
84 <bridgehead renderas="sect5">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="valgrind"/> (to run the tests),
87 <ulink url="http://sphinx-doc.org/">Sphinx</ulink> (required to build documentation),
88 <xref linkend="gtk3"/> (to build the GUI event viewer),
89 <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink> (required for tests),
90 <ulink revision="sysv" url="https://sourceforge.net/projects/linuxwacom/files/libwacom/">libwacom</ulink>
91 <xref revision="systemd" linkend="libwacom"/>
92 <!-- commas outside the rev get rendered on either version -->
93 , and
94 <ulink url="https://pypi.org/project/pyparsing/">PyParsing</ulink> (for one non-root test)
95 </para>
96
97 <para condition="html" role="usernotes">
98 User Notes: <ulink url="&blfs-wiki;/libinput"/>
99 </para>
100 </sect3>
101
102 <sect3 role="kernel" id="libinput-kernel">
103 <title>kernel configuration for running the libinput testsuite</title>
104
105 <para>
106 Although libinput works with the same kernel configuration used by <xref
107 linkend="libevdev"/>, its extensive testsuite requires the presence of
108 <filename>/dev/uinput</filename> (as well as both <xref linkend="valgrind"/>
109 and <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>).
110 </para>
111
112 <para>
113 If you wish to run the full tests, enable the following option in the kernel
114 configuration and recompile the kernel if necessary:
115 </para>
116
117<screen><literal>Device Drivers ---&gt;
118 Input device support ---&gt;
119 Miscellaneous Devices ---&gt;
120 &lt;*/M&gt; User level driver support [CONFIG_INPUT_UINPUT]</literal></screen>
121
122 <para>
123 If you build this as a module, it needs to be inserted before the testsuite
124 runs.
125 </para>
126
127 <para>
128 On an Xorg system you will also need to prevent the events generated
129 during the testsuite from interfering with your desktop. Copy the
130 file <filename>test/50-litest.conf</filename> into
131 <filename class="directory">${XORG_PREFIX}/share/X11/xorg.conf.d</filename>
132 and restart X. For further information see
133 <ulink url="https://wayland.freedesktop.org/libinput/doc/&libinput-version;/test-suite.html">libinput test suite</ulink>.
134 </para>
135
136 <indexterm zone="libinput libinput-kernel">
137 <primary sortas="d-libinput">libinput</primary>
138 </indexterm>
139 </sect3>
140
141 <sect3 role="installation">
142 <title>Installation of libinput</title>
143
144 <para>
145 Install <application>libinput</application> by running the following
146 commands:
147 </para>
148
149<screen><userinput>mkdir build &amp;&amp;
150cd build &amp;&amp;
151
152meson --prefix=$XORG_PREFIX \
153 -Dudev-dir=/lib/udev \
154 -Ddebug-gui=false \
155 -Dtests=false \
156 -Ddocumentation=false \
157 -Dlibwacom=false \
158 .. &amp;&amp;
159ninja</userinput></screen>
160
161 <note>
162 <para>If you want to run the full tests, remove -Dtests from the
163 <command>meson</command> command above. Please read "kernel configuration
164 for running the libinput testsuite" (above).
165 </para>
166
167 <para>
168 If you have enabled the full tests, you can run the main tests
169 <emphasis>as the root user</emphasis> by executing:
170 <command>ninja test</command>. A very large number of tests will
171 be run, about 20 fail (at least on an Xorg system).
172 </para>
173 </note>
174
175 <para>
176 Now, as the <systemitem class="username">root</systemitem> user:
177 </para>
178
179<screen role="root"><userinput>ninja install</userinput></screen>
180
181 <para>
182 If <xref linkend="doxygen"/>, <xref linkend="graphviz"/>, and
183 <ulink url="http://sphinx-doc.org/">Sphinx</ulink> were
184 present during the build, you can install the generated documentation
185 by running the following commands as the <systemitem
186 class="username">root</systemitem> user:
187 </para>
188
189<screen role="root"
190 remap="doc"><userinput>install -v -dm755 /usr/share/doc/libinput-&libinput-version;/{html,api} &amp;&amp;
191cp -rv Documentation/* /usr/share/doc/libinput-&libinput-version;/html &amp;&amp;
192cp -rv api/* /usr/share/doc/libinput-&libinput-version;/api</userinput></screen>
193
194 </sect3>
195
196 <sect3 role="commands">
197 <title>Command Explanations</title>
198
199 <para>
200 <option>-Dudev-dir=/lib/udev</option>: This switch
201 specifies where UDev rules and hwdb files will be installed.
202 </para>
203
204 <para>
205 <option>-Ddebug-gui=false</option>: This switch
206 disables creation of a visual debug helper for libinput. Remove
207 if you want it, and you have <xref linkend="gtk3"/> installed.
208 </para>
209
210 <para>
211 <option>-Dtests=false</option>: This switch disables compilation of the
212 main tests. Even with the tests defined as false, you can still run the
213 first four minor tests, as a regular user, but one will be skipped if
214 <ulink url="https://pypi.org/project/pyparsing">PyParsing</ulink> is not installed.
215 </para>
216
217 <para>
218 <option>-Ddocumentation=false</option>: This switch disables
219 generation of the documentation. Remove if you want to generate it, and
220 you have <xref linkend="doxygen"/> and <xref linkend="graphviz"/>
221 installed.
222 </para>
223
224 <para revision="sysv">
225 <option>-Dlibwacom=false</option>: Remove this
226 option if you have the external library libwacom installed.
227 </para>
228
229 <para revision="systemd">
230 <option>-Dlibwacom=false</option>: Remove this option if you
231 have <xref linkend="libwacom"/> installed, or if you are installing
232 GNOME.
233 </para>
234
235 </sect3>
236
237 <sect3 role="content">
238 <title>Contents</title>
239
240 <segmentedlist>
241 <segtitle>Installed Programs</segtitle>
242 <segtitle>Installed Libraries</segtitle>
243 <segtitle>Installed Directories</segtitle>
244
245 <seglistitem>
246 <seg>
247 libinput
248 <!-- libinput-debug-events, libinput-list-devices, libinput-measure*,
249 libinput-record, libinput-replay Library Executables -->
250 </seg>
251 <seg>
252 libinput.so
253 </seg>
254 <seg>
255 $XORG_PREFIX/libexec/libinput,
256 /usr/share/libinput, and (optionally)
257 /usr/share/doc/libinput-&libinput-version;
258 </seg>
259 </seglistitem>
260 </segmentedlist>
261
262 <variablelist>
263 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
264 <?dbfo list-presentation="list"?>
265 <?dbhtml list-presentation="table"?>
266
267 <varlistentry id="libinput-prog">
268 <term><command>libinput</command></term>
269 <listitem>
270 <para>
271 is a set of tools to interface with the
272 <application>libinput</application> library.
273 </para>
274 <indexterm zone="libinput libinput-prog">
275 <primary sortas="b-libinput-prog">libinput</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279<!--
280 <varlistentry id="libinput-debug-events">
281 <term><command>libinput-debug-events</command></term>
282 <listitem>
283 <para>
284 is a debug helper for <application>libinput</application>.
285 </para>
286 <indexterm zone="libinput libinput-debug-events">
287 <primary sortas="b-libinput-debug-events">libinput-debug-events</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="libinput-list-devices">
293 <term><command>libinput-list-devices</command></term>
294 <listitem>
295 <para>
296 lists local devices as recognized by
297 <application>libinput</application>.
298 </para>
299 <indexterm zone="libinput libinput-list-devices">
300 <primary sortas="b-libinput-list-devices">libinput-list-devices</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="libinput-measure">
306 <term><command>libinput-measure</command></term>
307 <listitem>
308 <para>
309 is the entry to a set of debugging programs to measure
310 the properties of one or more devices.
311 </para>
312 <indexterm zone="libinput libinput-measure">
313 <primary sortas="b-libinput-measure">libinput-measure</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="libinput-record">
319 <term><command>libinput-record</command></term>
320 <listitem>
321 <para>
322 records kernel events from a device in a form that can later be
323 replayed by libinput-replay.
324 </para>
325 <indexterm zone="libinput libinput-record">
326 <primary sortas="b-libinput-record">libinput-record</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="libinput-replay">
332 <term><command>libinput-replay</command></term>
333 <listitem>
334 <para>
335 replays kernel events from a recording made by libinput-record.
336 </para>
337 <indexterm zone="libinput libinput-replay">
338 <primary sortas="b-libinput-replay">libinput-replay</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342-->
343 <varlistentry id="libinput-lib">
344 <term><filename class="libraryfile">libinput.so</filename></term>
345 <listitem>
346 <para>
347 contains API functions for handling input devices.
348 </para>
349 <indexterm zone="libinput libinput-lib">
350 <primary sortas="c-libinput-lib">libinput.so</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 </variablelist>
356
357 </sect3>
358
359</sect2>
Note: See TracBrowser for help on using the repository browser.