Linux command
libinput 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
List
sudo libinput list-devices
Debug
sudo libinput debug-events
Example
sudo libinput debug-gui
Example
sudo libinput debug-tablet
Example
libinput --help
说明
libinput is a library and command-line tool for handling input devices on Linux. It provides a unified interface for mice, keyboards, touchpads, and tablets on both X11 and Wayland systems. The CLI uses a verb-based interface, with subcommands such as list-devices to enumerate devices, debug-events to monitor input, and record/replay to capture and reproduce input traces for debugging.
参数
- -h, --help
- Display help information.
- --version
- Display version information.
FAQ
What is the libinput command used for?
libinput is a library and command-line tool for handling input devices on Linux. It provides a unified interface for mice, keyboards, touchpads, and tablets on both X11 and Wayland systems. The CLI uses a verb-based interface, with subcommands such as list-devices to enumerate devices, debug-events to monitor input, and record/replay to capture and reproduce input traces for debugging.
How do I run a basic libinput example?
Run `sudo libinput list-devices` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -h, --help do in libinput?
Display help information.