[PATCH libinput 2/2] Document the static udev configuration options we support

Jonas Ådahl jadahl at gmail.com
Wed Sep 10 00:04:28 PDT 2014


On Wed, Sep 10, 2014 at 09:40:58AM +1000, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  src/libinput.h | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/src/libinput.h b/src/libinput.h
> index 7fde65f..a0e5d4c 100644
> --- a/src/libinput.h
> +++ b/src/libinput.h
> @@ -104,6 +104,38 @@ extern "C" {
>   */
>  
>  /**
> + * @page udev_config Static device configuration via udev
> + *
> + * libinput supports some static configuration through udev properties.
> + * These propertiesare read when the device is initially added
> + * to libinput's device list, i.e. before the @ref
> + * LIBINPUT_EVENT_DEVICE_ADDED event is generated.
> + *
> + * The following udev properties are supported:
> + * <dl>
> + * <dt>LIBINPUT_CALIBRATION_MATRIX</dt>
> + * <dd>Sets the calibration matrix, see
> + * libinput_device_config_calibration_get_default_matrix(). If unset,
> + * defaults to the unity matrix.</dd>

s/unity/identity/ ?

> + * <dt>ID_SEAT</dt>
> + * <dd>Assigns the physical seat for this device. See
> + * libinput_seat_get_physical_name(). Defaults to "seat0".</dd>
> + * <dt>WL_SEAT</dt>
> + * <dd>Assigns the logical seat for this device. See
> + * libinput_seat_get_logical_name()
> + * context. Defaults to "default".</dd>
> + * </dl>
> + *
> + * Below is an example udev rule to assign "seat1" to a device from vendor
> + * 0x012a with the model ID of 0x034b.
> + * @code
> + * ACTION=="add|change", KERNEL=="event[0-9]*", ENV{ID_VENDOR_ID}=="012a", \
> + * ENV{ID_MODEL_ID}=="034b", ENV{ID_SEAT}="seat1"
> + * @endcode
> + *
> + */
> +
> +/**
>   * Log priority for internal logging messages.
>   */
>  enum libinput_log_priority {
> -- 
> 1.9.3
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list