2018-07-10 17:32:35 +10:00
.. _faq:
==============================================================================
FAQs - Frequently Asked Questions
==============================================================================
2015-05-28 08:57:18 +10:00
Frequently asked questions about libinput.
2017-01-31 09:46:53 +10:00
2018-07-10 17:32:35 +10:00
.. contents ::
:local:
:backlinks: entry
.. _faq_feature:
2017-09-28 08:47:10 +10:00
2018-07-10 17:32:35 +10:00
------------------------------------------------------------------------------
Why doesn't libinput support ...?
------------------------------------------------------------------------------
First, read :ref: `what_is_libinput` If you have a feature that you think
libinput needs to support, please file a bug report. See :ref: `reporting_bugs`
2017-09-28 08:47:10 +10:00
for more details.
2018-07-10 17:32:35 +10:00
.. _faq_fast_mouse:
------------------------------------------------------------------------------
My mouse moves too fast, even at the slowest setting
------------------------------------------------------------------------------
2015-07-07 07:41:03 +10:00
This is a symptom of high-dpi mice (greater than 1000dpi). These devices
2018-07-10 17:32:35 +10:00
need a udev hwdb entry to normalize their motion. See
:ref: `motion_normalization` for a detailed explanation.
2015-07-07 07:41:03 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_fast_trackpoint:
------------------------------------------------------------------------------
My trackpoint moves too slow or too fast
------------------------------------------------------------------------------
2017-11-29 11:30:54 +10:00
2018-07-19 11:12:27 +10:00
This is a symptom of an invalid trackpoint multiplier. These devices need
2018-07-10 17:32:35 +10:00
:ref: `device-quirks` to specify the range available so libinput can adjust the
pointer acceleration accordingly. See :ref: `trackpoint_range` for a detailed
2018-06-21 10:58:34 +10:00
explanation.
2017-11-29 11:30:54 +10:00
2019-10-22 12:10:03 +10:00
.. _faq_pointer_acceleration:
------------------------------------------------------------------------------
Why is libinput's pointer acceleration worse than synaptics/evdev
------------------------------------------------------------------------------
This is a known problem affecting some devices and/or use-case but the exact
cause is still unknown. It may be a device-specific issue, it may be a bug
in libinput's acceleration code, it may be a disagreement about how pointer
acceleration should feel. Unfortunately this is something that affected
users need to investigate and analyze.
2018-07-10 17:32:35 +10:00
.. _faq_enable_tapping:
------------------------------------------------------------------------------
Why isn't touchpad tap-to-click enabled by default
------------------------------------------------------------------------------
2017-02-13 10:31:40 +10:00
2018-07-10 17:32:35 +10:00
See :ref: `tapping_default`
2017-02-13 10:31:40 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_touchpad_pressure:
------------------------------------------------------------------------------
Why does my touchpad lose track of touches
------------------------------------------------------------------------------
2017-04-19 14:11:45 +10:00
The most common cause for this is an incorrect pressure threshold range.
2018-07-10 17:32:35 +10:00
See :ref: `touchpad_pressure` for more info.
.. _faq_kinetic_scrolling:
2017-04-19 14:11:45 +10:00
2018-07-10 17:32:35 +10:00
------------------------------------------------------------------------------
Kinetic scrolling does not work
------------------------------------------------------------------------------
2015-05-28 08:57:18 +10:00
The X.Org synaptics driver implemented kinetic scrolling in the driver. It
measures the scroll speed and once the finger leaves the touchpad the driver
keeps sending scroll events for a predetermined time. This effectively
provides for kinetic scrolling without client support but triggers an
2018-07-10 17:32:35 +10:00
unfixable `bug <https://bugs.freedesktop.org/show_bug.cgi?id=38909> `_ : the
2015-05-28 08:57:18 +10:00
client cannot know that the events are from a kinetic scroll source. Scroll
events in X are always sent to the current cursor position, a movement of the
cursor after lifting the finger will send the kinetic scroll events to the
new client, something the user does not usually expect. A key event during
the kinetic scroll procedure causes side-effects such as triggering zoom.
libinput does not implement kinetic scrolling for touchpads. Instead it
2018-07-10 17:32:35 +10:00
provides the **libinput_event_pointer_get_axis_source()** function that enables
callers to implement kinetic scrolling on a per-widget basis, see
:ref: `scroll_sources` .
2015-05-28 08:57:18 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_gpl:
------------------------------------------------------------------------------
Is libinput GPL-licensed?
------------------------------------------------------------------------------
2015-05-28 08:57:18 +10:00
No, libinput is MIT licensed. The Linux kernel header file linux/input.h in
2015-08-21 08:42:54 -07:00
libinput's tree is provided to ensure the same behavior regardless of which
2015-05-28 08:57:18 +10:00
kernel version libinput is built on. It does not make libinput GPL-licensed.
2018-07-10 17:32:35 +10:00
.. _faq_config_options:
------------------------------------------------------------------------------
Where is the configuration stored?
------------------------------------------------------------------------------
2015-05-28 08:57:18 +10:00
libinput does not store configuration options, it is up to the caller to
manage these and decide which configuration option to apply to each device.
This must be done at startup, after a resume and whenever a new device is
detected.
2017-01-27 14:34:39 +10:00
One commonly used way to configure libinput is to have the Wayland
compositor expose a compositor-specific configuration option. For example,
in a GNOME stack, the gnome-control-center modifies dconf entries. These
changes are read by mutter and applied to libinput. Changing these entries
via the gsettings commandline tool has the same effect.
Another commonly used way to configure libinput is to have xorg.conf.d
snippets. When libinput is used with the xf86-input-libinput driver in an
X.Org stack, these options are read on startup and apply to each device.
Changing properties at runtime with the xinput commandline tool has the same
effect.
In both cases, the selection of available options and how they are exposed
depends on the libinput caller (e.g. mutter or xf86-input-libinput).
2015-05-28 08:57:18 +10:00
2018-07-10 17:32:35 +10:00
.. graphviz :: libinput-stack-gnome.gv
2015-05-28 08:57:18 +10:00
This has an effect on the availability of configuration options: if an
option is not exposed by the intermediary, it cannot be configured by the
client. Also some configuration options that are provided by the
intermediary may not be libinput-specific configuration options.
2018-07-10 17:32:35 +10:00
.. _faq_configure_wayland:
2016-08-05 11:14:17 +10:00
2018-07-10 17:32:35 +10:00
------------------------------------------------------------------------------
How do I configure my device on Wayland?
------------------------------------------------------------------------------
See :ref: `faq_config_options` Use the configuration tool provided by your
2016-08-05 11:14:17 +10:00
desktop environment (e.g. gnome-control-center) or direct access to your
desktop environment's configuration storage (e.g. gsettings).
2018-07-10 17:32:35 +10:00
.. _faq_configure_xorg:
------------------------------------------------------------------------------
How do I configure my device on X?
------------------------------------------------------------------------------
2016-08-05 11:14:17 +10:00
2018-07-10 17:32:35 +10:00
See :ref: `faq_config_options` If your desktop environment does not provide a
2016-08-05 11:14:17 +10:00
graphical configuration tool you can use an
2018-07-10 17:32:35 +10:00
`xorg.conf.d snippet <https://www.x.org/archive/current/doc/man/man5/xorg.conf.5.xhtml> `_ .
2016-08-05 11:14:17 +10:00
Usually, such a snippet looks like this:
2018-07-10 17:32:35 +10:00
::
$> cat /etc/X11/xorg.conf.d/99-libinput-custom-config.conf
Section "InputClass"
Identifier "something to identify this snippet"
MatchDriver "libinput"
MatchProduct "substring of the device name"
Option "some option name" "the option value"
EndSection
2016-08-05 11:14:17 +10:00
The identifier is merely a human-readable string that shows up in the log
file. The MatchProduct line should contain the device name or a substring of
the device name that the snippet should apply to. For a full list of option
names and permitted values, see the
2018-07-10 17:32:35 +10:00
`libinput man page <https://www.mankier.com/4/libinput> `_ .
2016-08-05 11:14:17 +10:00
xorg.conf.d snippets like the above apply to hotplugged devices but can be
overwritten at runtime by desktop tools. Multiple snippets may be placed
into the same file.
For run-time configuration and testing, the
2018-07-10 17:32:35 +10:00
`xinput <https://www.x.org/archive/X11R7.5/doc/man/man1/xinput.1.html> `_
2016-08-05 11:14:17 +10:00
debugging tool can modify a devices' properties. See the
2018-07-10 17:32:35 +10:00
`libinput man page <https://www.mankier.com/4/libinput> `_
2016-08-05 11:14:17 +10:00
for supported property names and values. Usually, an invocation looks like
this:
2018-07-10 17:32:35 +10:00
::
$> xinput set-prop "the device name" "the property name" value [value2] [value3]
.. note :: Changes performed by xinput do not persist across device hotplugs. xinput
2018-07-24 12:30:07 +10:00
is considered a debugging and testing tool only and should not be used
for permanent configurations.
2016-08-05 11:14:17 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_configuration:
------------------------------------------------------------------------------
Can you add a configuration option for $FEATURE?
------------------------------------------------------------------------------
2017-11-08 21:38:13 +10:00
2018-07-24 11:56:13 +10:00
No. At least that's going to be the initial answer. Read
2018-07-10 17:32:35 +10:00
`Why libinput doesn't have a lot of configuration options <http://who-t.blogspot.com/2016/04/why-libinput-doesnt-have-lot-of-config.html> `_
2018-07-24 11:56:13 +10:00
first. Configuration options for most features are a signal that we are incapable
2017-11-08 21:38:13 +10:00
of handling it correctly. To get to that point, we want to be sure we're
truly incapable of doing so. libinput has several features that
are handled automatically (and correctly) that users wanted to have
configuration options for initially.
So the answer to this question will almost always be 'no'. A configuration
option is, in most cases, a cop-out.
2018-07-10 17:32:35 +10:00
.. _faq_synclient:
------------------------------------------------------------------------------
Why don't synclient and syndaemon work with libinput?
------------------------------------------------------------------------------
2017-04-28 10:11:01 +10:00
Synclient and syndaemon rely on X input device properties that are specific
to the xf86-input-synaptics X.Org input driver. Both were written when the
2020-08-27 19:52:34 +02:00
synaptics driver was the only common touchpad driver in existence. They
2017-04-28 10:11:01 +10:00
assume that if the properties aren't available, no touchpad is available
either. The xf86-input-libinput X.Org input driver does not export these
driver-specific properties, synclient/syndaemon will thus not detect the
touchpad and refuse to work. Other tools that rely on synclient/syndaemon or
those same properties also do not work with xf86-input-libinput.
2018-07-10 17:32:35 +10:00
Most of syndaemon's functionality is built into libinput, see
:ref: `disable-while-typing` . synclient is merely a configuration tool, see
:ref: `faq_configure_xorg` for similar functionality.
2017-04-28 10:11:01 +10:00
See also the blog posts
2018-07-10 17:32:35 +10:00
`The definitive guide to synclient <http://who-t.blogspot.com.au/2017/01/the-definitive-guide-to-synclient.html> `_ and
`The future of xinput, xmodmap, setxkbmap, xsetwacom and other tools under Wayland <http://who-t.blogspot.com.au/2016/12/the-future-of-xinput-xmodmap-setxkbmap.html> `_
2017-04-28 10:11:01 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_tablets:
------------------------------------------------------------------------------
Does libinput support non-Wacom tablets?
------------------------------------------------------------------------------
2017-09-28 08:47:10 +10:00
Yes, though unfortunately many non-Wacom tablets suffer from bad firmware
and don't send the required events. But they should all work nonetheless. If
2018-07-10 17:32:35 +10:00
you have a tablet that does not work with libinput, please
:ref: `file a bug <reporting_bugs>` .
.. _faq_tablet_capabilities:
2017-09-28 08:47:10 +10:00
2018-07-10 17:32:35 +10:00
------------------------------------------------------------------------------
My tablet doesn't work
------------------------------------------------------------------------------
2017-10-26 10:10:04 +10:00
If you see the message
2018-07-10 17:32:35 +10:00
::
libinput bug: device does not meet tablet criteria. Ignoring this device.
2017-10-26 10:10:04 +10:00
or the message
2018-07-10 17:32:35 +10:00
::
missing tablet capabilities [...] Ignoring this device.
2017-10-26 10:10:04 +10:00
your tablet device does not have the required capabilities to be treated as
a tablet. This is usually a problem with the device and the kernel driver.
2018-07-10 17:32:35 +10:00
See :ref: `tablet-capabilities` for more details.
2017-10-26 10:10:04 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_hwdb_changes:
------------------------------------------------------------------------------
How to apply hwdb changes
------------------------------------------------------------------------------
2016-06-29 15:18:25 +10:00
2018-07-24 11:56:13 +10:00
Sometimes users are asked to test updates to the
2018-07-10 17:32:35 +10:00
`udev hwdb <https://www.freedesktop.org/software/systemd/man/hwdb.html> `_
or patches that include a change to the hwdb. See :ref: `hwdb` for
2017-11-30 10:21:15 +10:00
details on the hwdb and how to modify it locally.
2016-06-29 15:18:25 +10:00
2018-07-10 17:32:35 +10:00
.. note :: As of libinput 1.12, libinput-specific properties are now stored in
the :ref: `device-quirks` system. There are no libinput-specific hwdb
2018-07-24 12:30:07 +10:00
entries anymore and any changes to the hwdb must be merged into the
systemd repository.
2018-06-21 10:58:34 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_timer_offset:
------------------------------------------------------------------------------
2020-10-22 15:10:38 +10:00
What causes the "your system is too slow" warning?
2018-07-10 17:32:35 +10:00
------------------------------------------------------------------------------
2018-02-06 14:10:40 +10:00
2018-07-10 17:32:35 +10:00
libinput relies on the caller to call **libinput_dispatch()** whenever data is
2020-10-22 15:10:38 +10:00
available. **libinput_dispatch()** will process the state of all devices,
including some time-sensitive features (e.g. palm detection, tap-to-click,
disable-while-typing, etc.).
2018-02-06 14:10:40 +10:00
2020-10-22 15:10:38 +10:00
If the time between the event and the call to **libinput_dispatch()**
is excessive, those features may not work correctly. For example, a delay in
touch event processing may cause wrong or missing tap-to-click events or
a palm may not be detected correctly.
2018-02-06 14:10:40 +10:00
When this warning appears, it simply means that too much time has passed
2020-10-22 15:10:38 +10:00
between the event occurring and the current time. In almost all cases this
is an indication of the caller being overloaded and not handling events as
speedily as required.
2018-02-06 14:10:40 +10:00
The warning has no immediate effect on libinput's behavior but some of the
2020-10-22 15:10:38 +10:00
functionality that relies on the timer may be impeded. This is not a bug in
libinput. libinput does not control how quickly **libinput_dispatch()** is
called.
2018-02-06 14:10:40 +10:00
2018-07-10 17:32:35 +10:00
.. _faq_wayland:
------------------------------------------------------------------------------
Is libinput required for Wayland?
------------------------------------------------------------------------------
2018-07-19 11:39:35 +10:00
Technically - no. But for your use-case - probably.
Wayland is a display server communication protocol. libinput is a low-level
library to simplify handling input devices and their events. They have no
direct connection. As a technical analogy, the question is similar to "is
glibc required for HTTP", or (stretching the analogy a bit further) "Is a
pen required to write English". No, it isn't.
2019-10-22 12:04:04 +10:00
You can use libinput without a Wayland compositor, you can write a Wayland
compositor without libinput. On most major distributions, libinput is the
standard input stack used with the X.Org X server through the
xf86-input-libinput driver.
2018-07-19 11:39:35 +10:00
So why "for your use-case - probably"? All general-purpose Wayland
2019-10-22 12:04:04 +10:00
compositors use libinput for their input stack. Wayland compositors that
2018-07-19 11:39:35 +10:00
are more specialized (e.g. in-vehicle infotainment or IVI) can handle input
devices directly but the compositor you want to use
on your desktop needs an input stack that is more complex. And right now,
libinput is the only input stack that exists for this use-case.
2021-12-07 15:39:10 +10:00
.. _faq_separate_contexts:
------------------------------------------------------------------------------
Can I write a program to make libinput do $FOO
------------------------------------------------------------------------------
A common question is whether it's possible to write a program that can change
libinput's behavior - specifically the libinput that is used inside the
compositor. This indicates a misunderstanding of how libinput works:
libinput is a library that converts kernel events into libinput events, much
like `` sed `` reads data in, modifies it, and provides it to stdout.
2025-12-10 09:54:20 +10:00
.. graphviz :: libinput-contexts.gv
A libinput context is private to the process and cannot be modified from the
outside. To use the `` sed `` analogy again: if `` sed `` is used by a
shell-script, that script has full control over how `` sed `` processes data. In
this analogy, `` sed `` is libinput and the shell script is the compositor. It is
not possible to write a program to modify the behavior of the `` sed `` instance
used inside that shell script.
2021-12-07 15:39:10 +10:00
Writing a program that uses libinput is akin to writing a new script that
invoke `` sed `` . It will not have any effect on the original `` sed `` instance.
The only way to modify libinput's behavior is to use the configuration options
exposed by the respective compositor. Those affect the libinput context inside
the compositor and thus have an effect on the input device behavior.
2023-11-06 15:19:51 +01:00
2025-12-10 09:54:20 +10:00
.. _faq_debug_events_not_showing_configuration:
------------------------------------------------------------------------------
Why doesn't libinput debug-events show my configuration
------------------------------------------------------------------------------
See :ref: `faq_separate_contexts` .
2023-11-06 15:19:51 +01:00
------------------------------------------------------------------------------
Can I configure scroll speed?
------------------------------------------------------------------------------
No, or at least, not as a libinput option.
When using a mouse, libinput notifies callers about physical scroll wheel
movement. When using another device, libinput notifies scroll in scroll units.
It is up to the caller to transform those events into a number of pixels to
scroll and, if desired, provide a way to adjust scroll speed.
This transformation cannot be done in libinput because it may depend on context
only known by the caller. For example, a caller may want to scroll faster
depending on how many pages a document has or depending on the widget that
receives the scroll events.