Linux · Ferramentas do Sistema
libinput
libinput is a library that handles input devices like mice, touchpads, and keyboards in Linux, providing consistent low-level handling across desktop environments.
- Licença
- MIT
- Versão mais recente
- 1.32.0
O que é o libinput?
libinput is not an application you interact with directly, but a backend component used by desktop environments and display servers like X11 and Wayland. It manages input events from mice, keyboards, touchpads, and other devices, replacing older tools like evdev and synaptics. Developed by the Wayland project and widely adopted since 2014, it's mature, well-tested, and actively maintained.
It's for Linux users who want reliable, default input behavior without manual tweaking—especially those on modern desktops like GNOME or KDE using Wayland. Since it's built into the system stack, most users don’t need to configure it directly. It’s ideal for people who value stability and consistency over granular per-device customization.
Compared to Windows tools like X-Mouse Button Control, libinput doesn’t offer GUI-based button remapping or complex macros. It focuses on correct out-of-the-box behavior rather than advanced tweaking. If you’re used to reassigning mouse buttons or creating custom profiles on Windows, you’ll find libinput limited—but it’s reliable and integrates smoothly with the system.
Ideal para: Users who want reliable, default input handling without manual setup.
Principais recursos do libinput
- Handles mice, touchpads, keyboards, and touchscreens
- Built-in gesture support for touchpads (pinch, swipe)
- Automatic device detection and configuration
- Supports both X11 and Wayland
- Low-level button and axis mapping
- Multitouch and edge scrolling support
- Device quirks database for hardware-specific fixes
- Calibration and rotation for touchscreens
Prós
- Stable and well-integrated with modern Linux systems
- No setup needed for most users
- Consistent behavior across desktop environments
- Actively developed and secure
- Part of the standard stack in most distributions
Contras
- No GUI configuration tool included
- Limited remapping options compared to X-Mouse
- Advanced changes require config files or udev rules
- Not designed for per-user profile switching
Programas do Windows que o libinput substitui
Como instalar o libinput no Linux
sudo apt install libinputsudo apt install libinputsudo dnf install libinputsudo pacman -S libinput-toolssudo zypper install libinputDicas para quem vem do Windows
Coming from X-Mouse Button Control, expect less flexibility. libinput doesn’t support custom button macros or profiles. Remapping requires editing X11 config files or using tools like xinput or libinput command-line helpers. On Wayland, options are even more limited—most configuration must come from the compositor. Use libinput list-devices and libinput debug-events to inspect input events and test changes.
libinput: perguntas frequentes
How do I remap mouse buttons with libinput?
Use xinput on X11 to remap buttons temporarily. For permanent changes, create an X11 configuration file in /etc/X11/xorg.conf.d/. Wayland offers limited remapping, usually through desktop environment settings.
Does libinput support custom mouse gestures?
No. libinput handles low-level input only. For gestures, use separate tools like libinput-gestures or desktop environment features.
Can I adjust touchpad sensitivity or scrolling?
Yes, through desktop settings or libinput configuration files. Most GNOME and KDE versions expose common options in their GUI settings under Mouse and Touchpad.
Why doesn’t my mouse work after updating?
Check if the device is detected with libinput list-devices. Issues are rare, but firmware or udev rules may need updating. Consult your distribution’s bug tracker.
Atualizado em