source: x/installing/libinput.xml@ 50f9dbb

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 xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 50f9dbb was 71fb66c, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Update to libinput-1.20.1 (Xorg driver).

  • Property mode set to 100644
File size: 9.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.20.1">
8
9<!-- <!ENTITY libinput-download-http "https://www.freedesktop.org/software/libinput/libinput-&libinput-version;.tar.xz">-->
10 <!ENTITY libinput-download-http "https://gitlab.freedesktop.org/libinput/libinput/-/archive/&libinput-version;/libinput-&libinput-version;.tar.gz"
11>
12 <!ENTITY libinput-download-ftp " ">
13 <!ENTITY libinput-md5sum "e4b559f8b799a4c5bda9aa98841753a9">
14 <!ENTITY libinput-size "964 KB">
15 <!ENTITY libinput-buildsize "11 MB (add 17 MB for documentation)">
16 <!ENTITY libinput-time "0.1 SBU (add 0.1 SBU for documentation)">
17]>
18
19 <sect2 id="libinput" xreflabel="libinput-&libinput-version;">
20 <?dbhtml filename="libinput.html"?>
21
22 <sect2info>
23 <date>$Date$</date>
24 </sect2info>
25
26 <title>libinput-&libinput-version;</title>
27
28 <indexterm zone="libinput">
29 <primary sortas="a-libinput">libinput</primary>
30 </indexterm>
31
32 <sect3 role="package">
33 <title>Introduction to libinput</title>
34
35 <para>
36 <application>libinput</application> is a library that handles
37 input devices for display servers and other applications that
38 need to directly deal with input devices.
39 </para>
40
41 &lfs111_checked;
42
43 <bridgehead renderas="sect4">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&libinput-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&libinput-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &libinput-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &libinput-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &libinput-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &libinput-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect4">libinput Dependencies</bridgehead>
78
79 <bridgehead renderas="sect5">Required</bridgehead>
80 <para role="required">
81 <xref linkend="libevdev"/> and
82 <xref linkend="mtdev"/>
83 </para>
84
85 <bridgehead renderas="sect5">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="valgrind"/> (to run the tests),
88 <xref linkend="gtk3"/> (to build the GUI event viewer),
89 <xref linkend="libunwind"/> (required for tests),
90 <xref linkend="libwacom"/>, and
91 <ulink url="http://sphinx-doc.org/">Sphinx</ulink> (required to build documentation),
92 <ulink url="https://pypi.org/project/pyparsing/">PyParsing</ulink> (for one non-root test)
93 </para>
94
95 <para condition="html" role="usernotes">
96 User Notes: <ulink url="&blfs-wiki;/libinput"/>
97 </para>
98 </sect3>
99
100 <sect3 role="kernel" id="libinput-kernel">
101 <title>kernel configuration for running the libinput testsuite</title>
102
103 <para>
104 Although libinput works with the same kernel configuration used by <xref
105 linkend="libevdev"/>, its extensive testsuite requires the presence of
106 <filename>/dev/uinput</filename> (as well as both <xref linkend="valgrind"/>
107 and <xref linkend="libunwind"/>).
108 </para>
109
110 <para>
111 If you wish to run the full tests, enable the following option in the kernel
112 configuration and recompile the kernel if necessary:
113 </para>
114
115<screen><literal>Device Drivers ---&gt;
116 Input device support ---&gt;
117 Miscellaneous Devices ---&gt;
118 &lt;*/M&gt; User level driver support [CONFIG_INPUT_UINPUT]</literal></screen>
119
120 <para>
121 If you build this as a module, it needs to be inserted before the testsuite
122 runs.
123 </para>
124
125 <para>
126 On an Xorg system you will also need to prevent the events generated
127 during the testsuite from interfering with your desktop. Copy the
128 file <filename>test/50-litest.conf</filename> into
129 <filename class="directory">${XORG_PREFIX}/share/X11/xorg.conf.d</filename>
130 and restart X. For further information see
131 <ulink url="https://wayland.freedesktop.org/libinput/doc/&libinput-version;/test-suite.html">libinput test suite</ulink>.
132 </para>
133
134 <indexterm zone="libinput libinput-kernel">
135 <primary sortas="d-libinput">libinput</primary>
136 </indexterm>
137 </sect3>
138
139 <sect3 role="installation">
140 <title>Installation of libinput</title>
141
142 <para>
143 Install <application>libinput</application> by running the following
144 commands:
145 </para>
146
147<screen><userinput>mkdir build &amp;&amp;
148cd build &amp;&amp;
149
150meson --prefix=$XORG_PREFIX \
151 --buildtype=release \
152 -Ddebug-gui=false \
153 -Dtests=false \
154 -Dlibwacom=false \
155 .. &amp;&amp;
156ninja</userinput></screen>
157
158 <note>
159 <para>
160 If you want to run the full tests, remove -Dtests from the
161 <command>meson</command> command above. Please read "kernel
162 configuration for running the libinput testsuite" (above).
163 </para>
164
165 <para>
166 If you have enabled the full tests, you can run the main tests
167 <emphasis>as the root user</emphasis> by executing:
168 <command>ninja test</command>. A very large number of tests will
169 be run, about 20 fail (at least on an Xorg system).
170 </para>
171 </note>
172
173 <para>
174 Now, as the <systemitem class="username">root</systemitem> user:
175 </para>
176
177<screen role="root"><userinput>ninja install &amp;&amp;
178if [ "$XORG_PREFIX" != "/usr" ]; then
179 $SUDO mv $XORG_PREFIX/lib/udev/rules.d/* /usr/lib/udev/rules.d
180 $SUDO rm -rf $XORG_PREFIX/lib/udev/
181fi</userinput></screen>
182
183 <para>
184 If you have passed <option>-Ddocumentation=true</option> to
185 <command>meson</command>, you can install the generated documentation
186 by running the following commands as the <systemitem
187 class="username">root</systemitem> user:
188 </para>
189
190<!-- seems the api doc is not generated because the directory is not a git
191 repository... -->
192<screen role="root"
193 remap="doc"><userinput>install -v -dm755 /usr/share/doc/libinput-&libinput-version;/html &amp;&amp;
194cp -rv Documentation/* /usr/share/doc/libinput-&libinput-version;/html</userinput></screen>
195
196 </sect3>
197
198 <sect3 role="commands">
199 <title>Command Explanations</title>
200
201 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
202 href="../../xincludes/meson-buildtype-release.xml"/>
203
204 <para>
205 <parameter>-Ddebug-gui=false</parameter>: 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 <parameter>-Dtests=false</parameter>: This switch disables compilation of
212 the main tests. Even with the tests defined as false, you can still run
213 the 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
215 installed.
216 </para>
217
218 <para>
219 <parameter>-Dlibwacom=false</parameter>: Remove this option if you
220 have <xref linkend="libwacom"/> installed, or if you are installing
221 GNOME.
222 </para>
223
224 <para>
225 <option>-Ddocumentation=true</option>: This switch enables
226 generation of the documentation. Add it if you want to generate
227 the documentation. You must have <xref linkend="doxygen"/> and
228 <xref linkend="graphviz"/> installed.
229 </para>
230
231 </sect3>
232
233 <sect3 role="content">
234 <title>Contents</title>
235
236 <segmentedlist>
237 <segtitle>Installed Programs</segtitle>
238 <segtitle>Installed Libraries</segtitle>
239 <segtitle>Installed Directories</segtitle>
240
241 <seglistitem>
242 <seg>
243 libinput
244 <!-- libinput-debug-events, libinput-list-devices, libinput-measure*,
245 libinput-record, libinput-replay Library Executables -->
246 </seg>
247 <seg>
248 libinput.so
249 </seg>
250 <seg>
251 /etc/libinput,
252 $XORG_PREFIX/libexec/libinput,
253 $XORG_PREFIX/usr/share/libinput, and (optionally)
254 $XORG_PREFIX/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-lib">
278 <term><filename class="libraryfile">libinput.so</filename></term>
279 <listitem>
280 <para>
281 contains API functions for handling input devices
282 </para>
283 <indexterm zone="libinput libinput-lib">
284 <primary sortas="c-libinput-lib">libinput.so</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 </variablelist>
290
291 </sect3>
292
293 </sect2>
Note: See TracBrowser for help on using the repository browser.