source: x/installing/libevdev.xml@ 9a6d0d9

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

x: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 7.2 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<screen><literal>Device Drivers ---&gt;
93 Input device support ---&gt;
94 &lt;*&gt; Generic input layer (needed for keyboard, mouse, ...) [CONFIG_INPUT]
95 &lt;*&gt; Event interface [CONFIG_INPUT_EVDEV]
96 [*] Miscellaneous devices ---&gt; [CONFIG_INPUT_MISC]
97 &lt;*/m&gt; User level driver support [CONFIG_INPUT_UINPUT]</literal></screen>
98
99 <para>
100 The last item is not strictly required for libevdev. If it is
101 compiled as a module, it is not loaded automatically.
102 It is needed for full test coverage.
103 </para>
104
105 <indexterm zone="libevdev libevdev-kernel">
106 <primary sortas="d-libevdev">libevdev</primary>
107 </indexterm>
108 </sect3>
109
110 <sect3 role="installation">
111 <title>Installation of libevdev</title>
112
113 <para>
114 Install <application>libevdev</application> by running the following
115 commands:
116 </para>
117
118<screen><userinput>mkdir build &amp;&amp;
119cd build &amp;&amp;
120
121meson setup .. \
122 --prefix=$XORG_PREFIX \
123 --buildtype=release \
124 -Ddocumentation=disabled &amp;&amp;
125ninja</userinput></screen>
126
127 <para>
128 The regression tests can be run as the <systemitem
129 class="username">root</systemitem> user with <command>ninja
130 test</command>, in a graphical session. You need to have enabled
131 the CONFIG_INPUT_UINPUT setting in the kernel for full test coverage.
132 If it is enabled as a module, the module is named
133 <command>uinput</command> and needs to be loaded before running the
134 tests. Note that on some systems, the
135 tests may cause a hard lockup and require a reboot. On laptops, the
136 system will go into Sleep and need to be woken up to finish the test
137 suites.
138 </para>
139
140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
143
144<screen role="root"><userinput>ninja install</userinput></screen>
145 </sect3>
146
147 <sect3 role="content">
148 <title>Contents</title>
149
150 <segmentedlist>
151 <segtitle>Installed Xorg Programs</segtitle>
152 <segtitle>Installed Xorg Library</segtitle>
153 <segtitle>Installed Xorg Directory</segtitle>
154
155 <seglistitem>
156 <seg>
157 libevdev-tweak-device, mouse-dpi-tool, and touchpad-edge-detector
158 </seg>
159 <seg>
160 libevdev.so
161 </seg>
162 <seg>
163 $XORG_PREFIX/include/libevdev-1.0
164 </seg>
165 </seglistitem>
166 </segmentedlist>
167
168 <variablelist>
169 <bridgehead renderas="sect4">Short Descriptions</bridgehead>
170 <?dbfo list-presentation="list"?>
171 <?dbhtml list-presentation="table"?>
172
173 <varlistentry id="libevdev-tweak-device">
174 <term><command>libevdev-tweak-device</command></term>
175 <listitem>
176 <para>
177 is a tool to change some kernel device properties
178 </para>
179 <indexterm zone="libevdev libevdev-tweak-device">
180 <primary sortas="b-libevdev-tweak-device">libevdev-tweak-device</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="mouse-dpi-tool">
186 <term><command>mouse-dpi-tool</command></term>
187 <listitem>
188 <para>
189 is a tool to estimate the resolution of a mouse
190 </para>
191 <indexterm zone="libevdev mouse-dpi-tool">
192 <primary sortas="b-mouse-dpi-tool">mouse-dpi-tool</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="touchpad-edge-detector">
198 <term><command>touchpad-edge-detector</command></term>
199 <listitem>
200 <para>
201 touchpad-edge-detector is a tool that reads the touchpad events
202 from the kernel and calculates the minimum and maximum for the x
203 and y coordinates, respectively
204 </para>
205 <indexterm zone="libevdev touchpad-edge-detector">
206 <primary sortas="b-touchpad-edge-detector">touchpad-edge-detector</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="libevdev-lib">
212 <term><filename class="libraryfile">libevdev.so</filename></term>
213 <listitem>
214 <para>
215 is a library of Xorg driver input functions
216 </para>
217 <indexterm zone="libevdev libevdev-lib">
218 <primary sortas="c-libevdev-lib">ebvdev.so</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 </variablelist>
224
225 </sect3>
226
227 </sect2>
Note: See TracBrowser for help on using the repository browser.