2017-05-11 13:11:23 +10:00
|
|
|
.TH LIBINPUT "1"
|
|
|
|
|
.SH NAME
|
|
|
|
|
libinput \- tool to interface with libinput
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
.B libinput [GLOBAL OPTIONS] [COMMAND] [ARGS]
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
.PP
|
|
|
|
|
The
|
|
|
|
|
.I libinput
|
|
|
|
|
tool creates a libinput context on the default seat "seat0" and interacts
|
|
|
|
|
with that libinput context.
|
|
|
|
|
.PP
|
|
|
|
|
This tool usually needs to be run as root to have access to the
|
|
|
|
|
/dev/input/eventX nodes.
|
|
|
|
|
.PP
|
|
|
|
|
The context created by this tool is a new libinput context and independent
|
|
|
|
|
of that created by the X.Org libinput driver, the Wayland compositor or any
|
|
|
|
|
other process that utilizes libinput (henceforth called "the caller").
|
|
|
|
|
Configuration options set in this context do not affect any other libinput
|
|
|
|
|
contexts.
|
|
|
|
|
.SH GLOBAL OPTIONS
|
|
|
|
|
These options are independent of any
|
|
|
|
|
.B COMMAND
|
|
|
|
|
.TP 8
|
|
|
|
|
.B --help
|
|
|
|
|
Print help and exit
|
|
|
|
|
.TP 8
|
|
|
|
|
.B --version
|
|
|
|
|
Print the version and exit
|
|
|
|
|
.TP 8
|
|
|
|
|
.B --verbose
|
|
|
|
|
Enable verbose mode. In verbose mode, libinput will print a number of
|
|
|
|
|
debug messages to stdout. The exact behavior of verbose mode depends on the
|
|
|
|
|
.B COMMAND.
|
|
|
|
|
.TP 8
|
|
|
|
|
.B --quiet
|
|
|
|
|
Enable quiet mode. In quiet mode, most messages normally printed to stdout
|
|
|
|
|
will be omitted. The exact behavior of quiet mode depends on the
|
|
|
|
|
.B COMMAND.
|
|
|
|
|
|
|
|
|
|
.SH COMMANDS
|
|
|
|
|
All commands support a
|
|
|
|
|
.B --help
|
|
|
|
|
argument that prints command-specific usage
|
2017-05-11 13:44:36 +10:00
|
|
|
information (e.g.
|
|
|
|
|
.B libinput debug-events --help)
|
|
|
|
|
.TP 8
|
|
|
|
|
.B debug-events [ARGS]
|
|
|
|
|
Print all events as seen by libinput. See section
|
|
|
|
|
.B debug-events
|
2017-05-11 13:11:23 +10:00
|
|
|
.TP 8
|
|
|
|
|
.B list-devices
|
|
|
|
|
List all devices recognized by libinput. See section
|
|
|
|
|
.B list-devices
|
|
|
|
|
|
2017-05-11 13:44:36 +10:00
|
|
|
.SS debug-events [...]
|
|
|
|
|
Print all events from these devices.
|
|
|
|
|
.PP
|
|
|
|
|
This is a debugging tool only, its output may change at any time. Do not
|
|
|
|
|
rely on the output.
|
|
|
|
|
.PP
|
|
|
|
|
.B --device /path/to/device
|
|
|
|
|
.IP
|
|
|
|
|
Use a path backend for the device for the given path. This option is
|
|
|
|
|
mutually exclusive with the
|
|
|
|
|
.B --udev
|
|
|
|
|
option.
|
|
|
|
|
.PP
|
|
|
|
|
.B --grab
|
|
|
|
|
.IP
|
|
|
|
|
Exclusively grab all devices. This will prevent events from being sent to
|
|
|
|
|
any other caller. It is recommended this option is only used together with
|
|
|
|
|
the
|
|
|
|
|
.B --device
|
|
|
|
|
option, otherwise a user may not be able to terminate this tool.
|
|
|
|
|
.PP
|
|
|
|
|
.B --udev <name>
|
|
|
|
|
.IP
|
|
|
|
|
Use a udev backend for this context with the given seat name. This option is
|
|
|
|
|
mutually exclusive with the
|
|
|
|
|
.B --device
|
|
|
|
|
option.
|
|
|
|
|
.PP
|
|
|
|
|
.B --show-keycodes
|
|
|
|
|
.IP
|
|
|
|
|
Print all keycodes as-is. Without this argument, most key events shown by
|
|
|
|
|
this tool are obfuscated to avoid passwords and other sensitive
|
|
|
|
|
information showing up in the output.
|
|
|
|
|
.PP
|
|
|
|
|
.B --enable-<feature>
|
|
|
|
|
or
|
|
|
|
|
.B --disable-<feature>
|
|
|
|
|
.IP
|
|
|
|
|
Enable or disable the given feature. For a full list of features, see the
|
|
|
|
|
.B --help
|
|
|
|
|
output. Requests to enable or disable a feature on a device that does
|
|
|
|
|
not provide that feature, or where that feature is already enabled or
|
|
|
|
|
disabled will be silently ignored.
|
|
|
|
|
.PP
|
|
|
|
|
.B --set-<feature>=<value>
|
|
|
|
|
.IP
|
|
|
|
|
Set the given feature to the given value. For a full list of features, see
|
|
|
|
|
the
|
|
|
|
|
.B --help
|
|
|
|
|
output. Requests to set a feature on a device that does not provide that
|
|
|
|
|
feature, or where that feature is already set to that value, or where the
|
|
|
|
|
value is not available on that device will be silently ignored
|
|
|
|
|
|
2017-05-11 13:11:23 +10:00
|
|
|
.SS list-devices
|
|
|
|
|
List all devices recognized by libinput. Each device shows available
|
|
|
|
|
configurations the respective
|
|
|
|
|
.B default
|
|
|
|
|
configuration setting.
|
|
|
|
|
.PP
|
|
|
|
|
For configuration options that allow multiple different settings (e.g.
|
|
|
|
|
scrolling), all available settings are listed. The default setting is
|
|
|
|
|
prefixed by an asterisk (*).
|
|
|
|
|
.PP
|
|
|
|
|
Note that some specific feature may still be available on a device even when
|
|
|
|
|
no configuration is exposed, a lack of a configuration option does not
|
|
|
|
|
necessarily mean that this feature does not work.
|
|
|
|
|
.PP
|
|
|
|
|
Note that this command only lists
|
|
|
|
|
.B default
|
|
|
|
|
configuration settings, settings modified in other contextx by the caller
|
|
|
|
|
are not reflected in this tool.
|
|
|
|
|
.SH NOTES
|
|
|
|
|
.PP
|
|
|
|
|
A device may be recognized by this libinput context but not handled by the
|
|
|
|
|
X.Org libinput driver or the Wayland compositor.
|
|
|
|
|
.PP
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
.PP
|
|
|
|
|
libinput(4)
|