[PATCH libinput] udev: don't overwrite a previously set device group

Hans de Goede hdegoede at redhat.com
Tue Jul 26 12:06:11 UTC 2016


Hi,

On 20-07-16 11:55, Peter Hutterer wrote:
> In some cases a device may need a device group assigned by a custom udev rule
> or hwdb entry. Don't overwrite that with our generated one.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

LGTM:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans


> ---
>  udev/80-libinput-device-groups.rules.in | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/udev/80-libinput-device-groups.rules.in b/udev/80-libinput-device-groups.rules.in
> index c2af0ce..1a26f78 100644
> --- a/udev/80-libinput-device-groups.rules.in
> +++ b/udev/80-libinput-device-groups.rules.in
> @@ -2,6 +2,7 @@ ACTION!="add|change", GOTO="libinput_device_group_end"
>  KERNEL!="event[0-9]*", GOTO="libinput_device_group_end"
>
>  ATTRS{phys}=="?*", \
> +	ENV{LIBINPUT_DEVICE_GROUP}=="", \
>  	PROGRAM="@UDEV_TEST_PATH at libinput-device-group %S%p", \
>  	ENV{LIBINPUT_DEVICE_GROUP}="%c"
>
>


More information about the wayland-devel mailing list