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.11 and Graphviz-2.38.0 (to build the documentation) GTK+-3.18.6 (to build the GUI event viewer), libunwind, and libwacom

User Notes:

Installation of libinput

Install libinput by running the following commands:

./configure --prefix=/usr     \
            --disable-libwacom \
            --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.11 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.2.1 &&
cp -rv doc/html/* /usr/share/doc/libinput-1.2.1

Command Explanations

--disable-libwacom: Remove this option if you have the external library libwacom installed.

--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.2.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 2016-04-06 18:23:04 -0500