source: x/installing/libinput.xml@ e3c9e953

11.0 11.1 11.2 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e3c9e953 was 25cfefb, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update to libinput-1.17.2 (xorg driver)

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