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