source: x/installing/libinput.xml@ e1a98063

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 9.1 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e1a98063 was e1a98063, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to libevdev-1.8.0.
Update to libvdpau-1.3.
Update to font-util-1.3.2 (xorg fonts).
Update to libinput-1.14.1.
Update to mesa-19.1.5.
Update to harfbuzz-2.6.1.
Update to cups-filters-1.25.3.

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

  • Property mode set to 100644
File size: 11.7 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.14.1">
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 "da29a704dc6f7ea2d5aac754db046340">
12 <!ENTITY libinput-size "552 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 &lfs90_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 <xref linkend="libwacom"/>, and
91 <ulink url="https://pypi.org/project/pyparsing/">PyParsing</ulink> (for one non-root test)
92 </para>
93
94 <para condition="html" role="usernotes">
95 User Notes: <ulink url="&blfs-wiki;/libinput"/>
96 </para>
97 </sect3>
98
99 <sect3 role="kernel" id="libinput-kernel">
100 <title>kernel configuration for running the libinput testsuite</title>
101
102 <para>
103 Although libinput works with the same kernel configuration used by <xref
104 linkend="libevdev"/>, its extensive testsuite requires the presence of
105 <filename>/dev/uinput</filename> (as well as both <xref linkend="valgrind"/>
106 and <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>).
107 </para>
108
109 <para>
110 If you wish to run the full tests, enable the following option in the kernel
111 configuration and recompile the kernel if necessary:
112 </para>
113
114<screen><literal>Device Drivers ---&gt;
115 Input device support ---&gt;
116 Miscellaneous Devices ---&gt;
117 &lt;*/M&gt; User level driver support [CONFIG_INPUT_UINPUT]</literal></screen>
118
119 <para>
120 If you build this as a module, it needs to be inserted before the testsuite
121 runs.
122 </para>
123
124 <para>
125 On an Xorg system you will also need to prevent the events generated
126 during the testsuite from interfering with your desktop. Copy the
127 file <filename>test/50-litest.conf</filename> into
128 <filename class="directory">${XORG_PREFIX}/share/X11/xorg.conf.d</filename>
129 and restart X. For further information see
130 <ulink url="https://wayland.freedesktop.org/libinput/doc/&libinput-version;/test-suite.html">libinput test suite</ulink>.
131 </para>
132
133 <indexterm zone="libinput libinput-kernel">
134 <primary sortas="d-libinput">libinput</primary>
135 </indexterm>
136 </sect3>
137
138 <sect3 role="installation">
139 <title>Installation of libinput</title>
140
141 <para>
142 Install <application>libinput</application> by running the following
143 commands:
144 </para>
145
146<screen><userinput>mkdir build &amp;&amp;
147cd build &amp;&amp;
148
149meson --prefix=$XORG_PREFIX \
150 -Dudev-dir=/lib/udev \
151 -Ddebug-gui=false \
152 -Dtests=false \
153 -Ddocumentation=false \
154 -Dlibwacom=false \
155 .. &amp;&amp;
156ninja</userinput></screen>
157
158 <note>
159 <para>If you want to run the full tests, remove -Dtests from the
160 <command>meson</command> command above. Please read "kernel configuration
161 for running the libinput testsuite" (above).
162 </para>
163
164 <para>
165 If you have enabled the full tests, you can run the main tests
166 <emphasis>as the root user</emphasis> by executing:
167 <command>ninja test</command>. A very large number of tests will
168 be run, about 20 fail (at least on an Xorg system).
169 </para>
170 </note>
171
172 <para>
173 Now, as the <systemitem class="username">root</systemitem> user:
174 </para>
175
176<screen role="root"><userinput>ninja install</userinput></screen>
177
178 <para>
179 If <xref linkend="doxygen"/>, <xref linkend="graphviz"/>, and
180 <ulink url="http://sphinx-doc.org/">Sphinx</ulink> were
181 present during the build, you can install the generated documentation
182 by running the following commands as the <systemitem
183 class="username">root</systemitem> user:
184 </para>
185
186<screen role="root"
187 remap="doc"><userinput>install -v -dm755 /usr/share/doc/libinput-&libinput-version;/{html,api} &amp;&amp;
188cp -rv Documentation/* /usr/share/doc/libinput-&libinput-version;/html &amp;&amp;
189cp -rv api/* /usr/share/doc/libinput-&libinput-version;/api</userinput></screen>
190
191 </sect3>
192
193 <sect3 role="commands">
194 <title>Command Explanations</title>
195
196 <para>
197 <option>-Dudev-dir=/lib/udev</option>: This switch
198 specifies where UDev rules and hwdb files will be installed.
199 </para>
200
201 <para>
202 <option>-Ddebug-gui=false</option>: This switch
203 disables creation of a visual debug helper for libinput. Remove
204 if you want it, and you have <xref linkend="gtk3"/> installed.
205 </para>
206
207 <para>
208 <option>-Dtests=false</option>: This switch disables compilation of the
209 main tests. Even with the tests defined as false, you can still run the
210 first four minor tests, as a regular user, but one will be skipped if
211 <ulink url="https://pypi.org/project/pyparsing">PyParsing</ulink> is not installed.
212 </para>
213
214 <para>
215 <option>-Ddocumentation=false</option>: This switch disables
216 generation of the documentation. Remove if you want to generate it, and
217 you have <xref linkend="doxygen"/> and <xref linkend="graphviz"/>
218 installed.
219 </para>
220
221 <para revision="sysv">
222 <option>-Dlibwacom=false</option>: Remove this
223 option if you have the external library libwacom installed.
224 </para>
225
226 <para revision="systemd">
227 <option>-Dlibwacom=false</option>: Remove this option if you
228 have <xref linkend="libwacom"/> installed, or if you are installing
229 GNOME.
230 </para>
231
232 </sect3>
233
234 <sect3 role="content">
235 <title>Contents</title>
236
237 <segmentedlist>
238 <segtitle>Installed Programs</segtitle>
239 <segtitle>Installed Libraries</segtitle>
240 <segtitle>Installed Directories</segtitle>
241
242 <seglistitem>
243 <seg>
244 libinput
245 <!-- libinput-debug-events, libinput-list-devices, libinput-measure*,
246 libinput-record, libinput-replay Library Executables -->
247 </seg>
248 <seg>
249 libinput.so
250 </seg>
251 <seg>
252 $XORG_PREFIX/libexec/libinput,
253 /usr/share/libinput, and (optionally)
254 /usr/share/doc/libinput-&libinput-version;
255 </seg>
256 </seglistitem>
257 </segmentedlist>
258
259 <variablelist>
260 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
261 <?dbfo list-presentation="list"?>
262 <?dbhtml list-presentation="table"?>
263
264 <varlistentry id="libinput-prog">
265 <term><command>libinput</command></term>
266 <listitem>
267 <para>
268 is a set of tools to interface with the
269 <application>libinput</application> library.
270 </para>
271 <indexterm zone="libinput libinput-prog">
272 <primary sortas="b-libinput-prog">libinput</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276<!--
277 <varlistentry id="libinput-debug-events">
278 <term><command>libinput-debug-events</command></term>
279 <listitem>
280 <para>
281 is a debug helper for <application>libinput</application>.
282 </para>
283 <indexterm zone="libinput libinput-debug-events">
284 <primary sortas="b-libinput-debug-events">libinput-debug-events</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="libinput-list-devices">
290 <term><command>libinput-list-devices</command></term>
291 <listitem>
292 <para>
293 lists local devices as recognized by
294 <application>libinput</application>.
295 </para>
296 <indexterm zone="libinput libinput-list-devices">
297 <primary sortas="b-libinput-list-devices">libinput-list-devices</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="libinput-measure">
303 <term><command>libinput-measure</command></term>
304 <listitem>
305 <para>
306 is the entry to a set of debugging programs to measure
307 the properties of one or more devices.
308 </para>
309 <indexterm zone="libinput libinput-measure">
310 <primary sortas="b-libinput-measure">libinput-measure</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="libinput-record">
316 <term><command>libinput-record</command></term>
317 <listitem>
318 <para>
319 records kernel events from a device in a form that can later be
320 replayed by libinput-replay.
321 </para>
322 <indexterm zone="libinput libinput-record">
323 <primary sortas="b-libinput-record">libinput-record</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="libinput-replay">
329 <term><command>libinput-replay</command></term>
330 <listitem>
331 <para>
332 replays kernel events from a recording made by libinput-record.
333 </para>
334 <indexterm zone="libinput libinput-replay">
335 <primary sortas="b-libinput-replay">libinput-replay</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339-->
340 <varlistentry id="libinput-lib">
341 <term><filename class="libraryfile">libinput.so</filename></term>
342 <listitem>
343 <para>
344 contains API functions for handling input devices.
345 </para>
346 <indexterm zone="libinput libinput-lib">
347 <primary sortas="c-libinput-lib">libinput.so</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
352 </variablelist>
353
354 </sect3>
355
356</sect2>
Note: See TracBrowser for help on using the repository browser.