Introduction to libinput

libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices.

This package is known to build and work properly using an LFS-7.7 systemd platform.

Package Information

libinput Dependencies


libevdev-1.4.4 and mtdev-1.1.5


Check-0.10.0 and Valgrind-3.11.0 (to build the tests), Doxygen-1.8.10 and Graphviz-2.38.0 (to build the documentation) GTK+-3.18.2 (to build the GUI event viewer) and libunwind

User Notes:

Installation of libinput

Install libinput by running the following commands:

./configure --prefix=/usr    \
            --disable-static \
            --with-udev-dir=/lib/udev &&

Running the testsuite for this package can be dangerous, as it creates a number of dummy input devices on the currently running system that can lead to crashing a local X server or a desktop environment. If you understand the risks and have the optional Check-0.10.0 and Valgrind-3.11.0 packages installed, the regression tests can be run as the root user with make check. Note that depending on the system configuration and hardware, some tests may fail.

Now, as the root user:

make install

If Doxygen-1.8.10 and Graphviz-2.38.0 were present during the build, you can install the generated documentation by running the following commands as the root user:

install -v -dm755 /usr/share/doc/libinput-1.0.1 &&
cp -rv doc/html/* /usr/share/doc/libinput-1.0.1

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--with-udev-dir=/lib/udev: This switch specifies where UDev rules and hwdb files will be installed.


Installed Programs: libinput-debug-events and libinput-list-devices
Installed Libraries:
Installed Directories: /usr/share/doc/libinput-1.0.1

Short Descriptions


is a debug helper for libinput.


lists local devices as recognized by libinput.

contains API functions for handling input devices.

Last updated on 2015-09-14 17:42:53 -0500