source: x/installing/libinput.xml@ 75e3e09

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 75e3e09 was 75e3e09, checked in by Xi Ruoyao <xry111@…>, 20 months ago

networking: URL update

Also change all "http://sphinx-doc.org" to "https://www.sphinx-doc.org".
Without "www." I get a connection time out for some reason...

  • Property mode set to 100644
File size: 10.3 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.21.0">
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 "3d8f0561b83fafc187bbc2d5bd0fe217">
14 <!ENTITY libinput-size "968 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 &lfs112_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="https://www.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 -Dudev-dir=/usr/lib/udev \
156 .. &amp;&amp;
157ninja</userinput></screen>
158
159 <note>
160 <para>
161 If you want to run the full tests, remove -Dtests from the
162 <command>meson</command> command above. Please read "kernel
163 configuration for running the libinput testsuite" (above).
164 </para>
165
166 <para>
167 If you have enabled the full tests, you can run the main tests
168 <emphasis>as the root user</emphasis> by executing:
169 <command>ninja test</command>. A very large number of tests will
170 be run, about 20 fail (at least on an Xorg system).
171 </para>
172 </note>
173
174 <para>
175 Now, as the <systemitem class="username">root</systemitem> user:
176 </para>
177
178<screen role="root"><userinput>ninja install</userinput></screen>
179
180 <para>
181 If you have passed <option>-Ddocumentation=true</option> to
182 <command>meson</command>, you can install the generated documentation
183 by running the following commands as the <systemitem
184 class="username">root</systemitem> user:
185 </para>
186
187<!-- seems the api doc is not generated because the directory is not a git
188 repository... -->
189<screen role="root"
190 remap="doc"><userinput>install -v -dm755 /usr/share/doc/libinput-&libinput-version;/html &amp;&amp;
191cp -rv Documentation/* /usr/share/doc/libinput-&libinput-version;/html</userinput></screen>
192
193 </sect3>
194
195 <sect3 role="commands">
196 <title>Command Explanations</title>
197
198 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
199 href="../../xincludes/meson-buildtype-release.xml"/>
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>-Dlibwacom=false</parameter>: Remove this option if you
217 have <xref linkend="libwacom"/> installed, or if you are installing
218 GNOME.
219 </para>
220
221 <para>
222 <parameter>-Dudev-dir=/usr/lib/udev</parameter>: In case that the
223 value of <envar>XORG_PREFIX</envar> is not set to
224 <filename class='directory'>/usr</filename>, this option prevents
225 the package from installing Udev rules and helpers into
226 <filename class='directory'>$XORG_PREFIX/lib/udev</filename> which
227 is not searched by Udev daemon. This option is not needed for
228 systems with <envar>XORG_PREFIX</envar> set to
229 <filename class='directory'>/usr</filename>, but does no harm.
230 </para>
231
232 <para>
233 <option>-Ddocumentation=true</option>: This switch enables
234 generation of the documentation. Add it if you want to generate
235 the documentation. You must have <xref linkend="doxygen"/> and
236 <xref linkend="graphviz"/> installed.
237 </para>
238
239 </sect3>
240
241 <sect3 role="content">
242 <title>Contents</title>
243
244 <segmentedlist>
245 <segtitle>Installed Programs</segtitle>
246 <segtitle>Installed Libraries</segtitle>
247 <segtitle>Installed Directories</segtitle>
248
249 <seglistitem>
250 <seg>
251 libinput
252 <!-- libinput-debug-events, libinput-list-devices, libinput-measure*,
253 libinput-record, libinput-replay Library Executables -->
254 </seg>
255 <seg>
256 libinput.so
257 </seg>
258 <seg>
259 /etc/libinput,
260 $XORG_PREFIX/libexec/libinput,
261 $XORG_PREFIX/usr/share/libinput, and (optionally)
262 $XORG_PREFIX/share/doc/libinput-&libinput-version;
263 </seg>
264 </seglistitem>
265 </segmentedlist>
266
267 <variablelist>
268 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
269 <?dbfo list-presentation="list"?>
270 <?dbhtml list-presentation="table"?>
271
272 <varlistentry id="libinput-prog">
273 <term><command>libinput</command></term>
274 <listitem>
275 <para>
276 is a set of tools to interface with the
277 <application>libinput</application> library
278 </para>
279 <indexterm zone="libinput libinput-prog">
280 <primary sortas="b-libinput-prog">libinput</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="libinput-lib">
286 <term><filename class="libraryfile">libinput.so</filename></term>
287 <listitem>
288 <para>
289 contains API functions for handling input devices
290 </para>
291 <indexterm zone="libinput libinput-lib">
292 <primary sortas="c-libinput-lib">libinput.so</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 </variablelist>
298
299 </sect3>
300
301 </sect2>
Note: See TracBrowser for help on using the repository browser.