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-download-http "http://www.freedesktop.org/software/libinput/libinput-&libinput-version;.tar.xz">
|
---|
8 | <!ENTITY libinput-download-ftp " ">
|
---|
9 | <!ENTITY libinput-md5sum "2b36d32362111c3e99f19c83bc535332">
|
---|
10 | <!ENTITY libinput-size "844 KB">
|
---|
11 | <!ENTITY libinput-buildsize "31 MB (with documentation)">
|
---|
12 | <!ENTITY libinput-time "0.3 SBU (with documentation)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libinput" xreflabel="libinput-&libinput-version;">
|
---|
16 | <?dbhtml filename="libinput.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>libinput-&libinput-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="libinput">
|
---|
26 | <primary sortas="a-libinput">libinput</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to libinput</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>libinput</application> is a library that handles
|
---|
34 | input devices for display servers and other applications that
|
---|
35 | need to directly deal with input devices.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | &lfs77_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (HTTP): <ulink url="&libinput-download-http;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (FTP): <ulink url="&libinput-download-ftp;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download MD5 sum: &libinput-md5sum;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download size: &libinput-size;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated disk space required: &libinput-buildsize;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated build time: &libinput-time;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect3">libinput Dependencies</bridgehead>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
77 | <para role="required">
|
---|
78 | <xref linkend="libevdev"/> and
|
---|
79 | <xref linkend="mtdev"/>
|
---|
80 | </para>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
83 | <para role="optional">
|
---|
84 | <xref linkend="check"/> and
|
---|
85 | <xref linkend="valgrind"/> (to build the tests),
|
---|
86 | <xref linkend="doxygen"/> and
|
---|
87 | <xref linkend="graphviz"/> (to build the documentation)
|
---|
88 | <xref linkend="gtk3"/> (to build the GUI event viewer),
|
---|
89 | <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>, and
|
---|
90 | <ulink url="https://sourceforge.net/projects/linuxwacom/files/libwacom/">libwacom</ulink>
|
---|
91 | </para>
|
---|
92 |
|
---|
93 | <para condition="html" role="usernotes">
|
---|
94 | User Notes: <ulink url="&blfs-wiki;/libinput"/>
|
---|
95 | </para>
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <sect2 role="installation">
|
---|
99 | <title>Installation of libinput</title>
|
---|
100 |
|
---|
101 | <para>
|
---|
102 | Install <application>libinput</application> by running the following
|
---|
103 | commands:
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <screen><userinput>./configure --prefix=/usr \
|
---|
107 | --disable-libwacom \
|
---|
108 | --with-udev-dir=/lib/udev &&
|
---|
109 | make</userinput></screen>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | Running the testsuite for this package can be dangerous, as
|
---|
113 | it creates a number of dummy input devices on the currently
|
---|
114 | running system that can lead to crashing a local X server or
|
---|
115 | a desktop environment. If you understand the risks and have
|
---|
116 | the optional <xref linkend="check"/> and
|
---|
117 | <xref linkend="valgrind"/> packages installed, the regression
|
---|
118 | tests can be run as the <systemitem
|
---|
119 | class="username">root</systemitem> user with
|
---|
120 | <userinput>make check</userinput>. Note that depending on
|
---|
121 | the system configuration and hardware, some tests may fail.
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <para>
|
---|
125 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
129 |
|
---|
130 | <para>
|
---|
131 | If <xref linkend="doxygen"/> and <xref linkend="graphviz"/> were
|
---|
132 | present during the build, you can install the generated documentation
|
---|
133 | by running the following commands as the <systemitem
|
---|
134 | class="username">root</systemitem> user:
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <screen role="root"><userinput>install -v -dm755 /usr/share/doc/libinput-&libinput-version; &&
|
---|
138 | cp -rv doc/html/* /usr/share/doc/libinput-&libinput-version;</userinput></screen>
|
---|
139 |
|
---|
140 | </sect2>
|
---|
141 |
|
---|
142 | <sect2 role="commands">
|
---|
143 | <title>Command Explanations</title>
|
---|
144 |
|
---|
145 | <para>
|
---|
146 | <parameter>--disable-libwacom</parameter>: Remove this
|
---|
147 | option if you have the external library libwacom installed.
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | <para>
|
---|
151 | <parameter>--with-udev-dir=/lib/udev</parameter>: This switch
|
---|
152 | specifies where UDev rules and hwdb files will be installed.
|
---|
153 | </para>
|
---|
154 |
|
---|
155 | </sect2>
|
---|
156 |
|
---|
157 | <sect2 role="content">
|
---|
158 | <title>Contents</title>
|
---|
159 |
|
---|
160 | <segmentedlist>
|
---|
161 | <segtitle>Installed Programs</segtitle>
|
---|
162 | <segtitle>Installed Libraries</segtitle>
|
---|
163 | <segtitle>Installed Directories</segtitle>
|
---|
164 |
|
---|
165 | <seglistitem>
|
---|
166 | <seg>
|
---|
167 | libinput-debug-events and libinput-list-devices
|
---|
168 | </seg>
|
---|
169 | <seg>
|
---|
170 | libinput.so
|
---|
171 | </seg>
|
---|
172 | <seg>
|
---|
173 | /usr/share/doc/libinput-&libinput-version;
|
---|
174 | </seg>
|
---|
175 | </seglistitem>
|
---|
176 | </segmentedlist>
|
---|
177 |
|
---|
178 | <variablelist>
|
---|
179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
180 | <?dbfo list-presentation="list"?>
|
---|
181 | <?dbhtml list-presentation="table"?>
|
---|
182 |
|
---|
183 | <varlistentry id="libinput-debug-events">
|
---|
184 | <term><command>libinput-debug-events</command></term>
|
---|
185 | <listitem>
|
---|
186 | <para>
|
---|
187 | is a debug helper for <application>libinput</application>.
|
---|
188 | </para>
|
---|
189 | <indexterm zone="libinput libinput-debug-events">
|
---|
190 | <primary sortas="b-libinput-debug-events">libinput-debug-events</primary>
|
---|
191 | </indexterm>
|
---|
192 | </listitem>
|
---|
193 | </varlistentry>
|
---|
194 |
|
---|
195 | <varlistentry id="libinput-list-devices">
|
---|
196 | <term><command>libinput-list-devices</command></term>
|
---|
197 | <listitem>
|
---|
198 | <para>
|
---|
199 | lists local devices as recognized by
|
---|
200 | <application>libinput</application>.
|
---|
201 | </para>
|
---|
202 | <indexterm zone="libinput libinput-list-devices">
|
---|
203 | <primary sortas="b-libinput-list-devices">libinput-list-devices</primary>
|
---|
204 | </indexterm>
|
---|
205 | </listitem>
|
---|
206 | </varlistentry>
|
---|
207 |
|
---|
208 | <varlistentry id="libinput-lib">
|
---|
209 | <term><filename class="libraryfile">libinput.so</filename></term>
|
---|
210 | <listitem>
|
---|
211 | <para>
|
---|
212 | contains API functions for handling input devices.
|
---|
213 | </para>
|
---|
214 | <indexterm zone="libinput libinput-lib">
|
---|
215 | <primary sortas="c-libinput">libinput.so</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | </variablelist>
|
---|
221 |
|
---|
222 | </sect2>
|
---|
223 |
|
---|
224 | </sect1>
|
---|