summaryrefslogtreecommitdiff
path: root/udev/80-libinput-device-groups.rules.in
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-07-20 19:55:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-08-01 07:13:05 +1000
commit188bad48668661378827818a8706aa621a1182dd (patch)
treed963a8417a1af3221b021d2ed0cbfc82e2e3a43a /udev/80-libinput-device-groups.rules.in
parentc543b4a91ae379f4898069e0f1cbad9541729dfd (diff)
udev: don't overwrite a previously set device group
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@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'udev/80-libinput-device-groups.rules.in')
-rw-r--r--udev/80-libinput-device-groups.rules.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev/80-libinput-device-groups.rules.in b/udev/80-libinput-device-groups.rules.in
index c2af0ce7..1a26f783 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@libinput-device-group %S%p", \
ENV{LIBINPUT_DEVICE_GROUP}="%c"