source: x/installing/libevdev.xml@ d9e1464

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since d9e1464 was 831ba20a, checked in by Xi Ruoyao <xry111@…>, 11 months ago

kernel-config: Handle if/endif pairs in Kconfig, and allow to set "forced" attribute for options

For example, CONFIG_INPUT is forced w/o CONFIG_EXPERT.

libevdev kernel section needs these features to be rendered
successfully.

  • Property mode set to 100644
File size: 6.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 libevdev-version "1.13.1">
8
9 <!ENTITY libevdev-download-http "https://www.freedesktop.org/software/libevdev/libevdev-&libevdev-version;.tar.xz">
10 <!ENTITY libevdev-download-ftp " ">
11 <!ENTITY libevdev-md5sum "58fe71aa6fd5e80d0928e9b691761311">
12 <!ENTITY libevdev-size "448 KB">
13 <!ENTITY libevdev-buildsize "6.0 MB (with tests)">
14 <!ENTITY libevdev-time "0.1 SBU (with tests)">
15]>
16
17 <!-- Begin Xorg libevdev Driver -->
18 <sect2 id="libevdev" xreflabel="libevdev-&libevdev-version;">
19
20 <sect2info>
21 <date>$Date$</date>
22 </sect2info>
23
24 <title>libevdev &libevdev-version;</title>
25
26 <indexterm zone="libevdev">
27 <primary sortas="a-libevdev">libevdev</primary>
28 </indexterm>
29
30 <sect3 role="package">
31 <title>Introduction to libevdev</title>
32
33 <para>
34 The <application>libevdev</application> package contains common
35 functions for Xorg input drivers.
36 </para>
37
38 &lfs113_checked;
39
40 <bridgehead renderas="sect4">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&libevdev-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&libevdev-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &libevdev-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &libevdev-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &libevdev-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &libevdev-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect4">libevdev Dependencies</bridgehead>
75
76 <bridgehead renderas="sect5">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="doxygen"/> and
79 <xref linkend="valgrind"/> (optional for tests)
80 </para>
81
82 </sect3>
83
84 <sect3 role="kernel" id="libevdev-kernel">
85 <title>Kernel Configuration</title>
86
87 <para>
88 Enable the following options in the kernel configuration and recompile
89 the kernel if necessary:
90 </para>
91
92 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
93 href="libevdev-kernel.xml"/>
94
95 <para>
96 The last item is not strictly required for libevdev. If it is
97 compiled as a module, it is not loaded automatically.
98 It is needed for full test coverage.
99 </para>
100
101 <indexterm zone="libevdev libevdev-kernel">
102 <primary sortas="d-libevdev">libevdev</primary>
103 </indexterm>
104 </sect3>
105
106 <sect3 role="installation">
107 <title>Installation of libevdev</title>
108
109 <para>
110 Install <application>libevdev</application> by running the following
111 commands:
112 </para>
113
114<screen><userinput>mkdir build &amp;&amp;
115cd build &amp;&amp;
116
117meson setup .. \
118 --prefix=$XORG_PREFIX \
119 --buildtype=release \
120 -Ddocumentation=disabled &amp;&amp;
121ninja</userinput></screen>
122
123 <para>
124 The regression tests can be run as the <systemitem
125 class="username">root</systemitem> user with <command>ninja
126 test</command>, in a graphical session. You need to have enabled
127 the CONFIG_INPUT_UINPUT setting in the kernel for full test coverage.
128 If it is enabled as a module, the module is named
129 <command>uinput</command> and needs to be loaded before running the
130 tests. Note that on some systems, the
131 tests may cause a hard lockup and require a reboot. On laptops, the
132 system will go into Sleep and need to be woken up to finish the test
133 suites.
134 </para>
135
136 <para>
137 Now, as the <systemitem class="username">root</systemitem> user:
138 </para>
139
140<screen role="root"><userinput>ninja install</userinput></screen>
141 </sect3>
142
143 <sect3 role="content">
144 <title>Contents</title>
145
146 <segmentedlist>
147 <segtitle>Installed Xorg Programs</segtitle>
148 <segtitle>Installed Xorg Library</segtitle>
149 <segtitle>Installed Xorg Directory</segtitle>
150
151 <seglistitem>
152 <seg>
153 libevdev-tweak-device, mouse-dpi-tool, and touchpad-edge-detector
154 </seg>
155 <seg>
156 libevdev.so
157 </seg>
158 <seg>
159 $XORG_PREFIX/include/libevdev-1.0
160 </seg>
161 </seglistitem>
162 </segmentedlist>
163
164 <variablelist>
165 <bridgehead renderas="sect4">Short Descriptions</bridgehead>
166 <?dbfo list-presentation="list"?>
167 <?dbhtml list-presentation="table"?>
168
169 <varlistentry id="libevdev-tweak-device">
170 <term><command>libevdev-tweak-device</command></term>
171 <listitem>
172 <para>
173 is a tool to change some kernel device properties
174 </para>
175 <indexterm zone="libevdev libevdev-tweak-device">
176 <primary sortas="b-libevdev-tweak-device">libevdev-tweak-device</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="mouse-dpi-tool">
182 <term><command>mouse-dpi-tool</command></term>
183 <listitem>
184 <para>
185 is a tool to estimate the resolution of a mouse
186 </para>
187 <indexterm zone="libevdev mouse-dpi-tool">
188 <primary sortas="b-mouse-dpi-tool">mouse-dpi-tool</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="touchpad-edge-detector">
194 <term><command>touchpad-edge-detector</command></term>
195 <listitem>
196 <para>
197 touchpad-edge-detector is a tool that reads the touchpad events
198 from the kernel and calculates the minimum and maximum for the x
199 and y coordinates, respectively
200 </para>
201 <indexterm zone="libevdev touchpad-edge-detector">
202 <primary sortas="b-touchpad-edge-detector">touchpad-edge-detector</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="libevdev-lib">
208 <term><filename class="libraryfile">libevdev.so</filename></term>
209 <listitem>
210 <para>
211 is a library of Xorg driver input functions
212 </para>
213 <indexterm zone="libevdev libevdev-lib">
214 <primary sortas="c-libevdev-lib">ebvdev.so</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 </variablelist>
220
221 </sect3>
222
223 </sect2>
Note: See TracBrowser for help on using the repository browser.