summaryrefslogtreecommitdiff
path: root/udev/90-libinput-model-quirks.rules.in
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-07-01 10:17:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-07-09 11:29:06 +1000
commit4e3944375779e7fb0fc960d6079d186b09540fca (patch)
tree397dead28362b36dfd297041c104f6ebbe797a29 /udev/90-libinput-model-quirks.rules.in
parentcc59c8986f5d561c40c9edf746403cc69da66913 (diff)
udev: make sure the udev callout path is valid for a test run
udev requires callout binaries to sit in /lib/udev or otherwise provide an absolute path. The test suite should work without installing everything first, so create two rule files - one to install, one with the path to the $builddir/test Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'udev/90-libinput-model-quirks.rules.in')
-rw-r--r--udev/90-libinput-model-quirks.rules.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/udev/90-libinput-model-quirks.rules.in b/udev/90-libinput-model-quirks.rules.in
new file mode 100644
index 00000000..43674f55
--- /dev/null
+++ b/udev/90-libinput-model-quirks.rules.in
@@ -0,0 +1,28 @@
+# Do not edit this file, it will be overwritten on update
+#
+# This file contains lookup rules for libinput model-specific quirks.
+# The contents of this file are a contract between libinput, udev rules and
+# the hwdb.
+# IT IS NOT A STABLE API AND SUBJECT TO CHANGE AT ANY TIME
+#
+# The hwdb database is in:
+# 90-libinput-model-quirks.hwdb
+
+ACTION!="add|change", GOTO="libinput_model_quirks_end"
+KERNEL!="event*", GOTO="libinput_model_quirks_end"
+
+# Matches below are exclusive, if one matches we skip the rest
+# hwdb matches:
+#
+# libinput:touchpad:<modalias>
+ENV{ID_INPUT_TOUCHPAD}=="1", \
+ IMPORT{builtin}="hwdb --subsystem=input --lookup-prefix=libinput:touchpad:", \
+ GOTO="libinput_model_quirks_end"
+
+# libinput:name:<name>:dmi:<dmi string>
+KERNELS=="input*", \
+ IMPORT{builtin}="hwdb 'libinput:name:$attr{name}:$attr{[dmi/id]modalias}'", \
+ GOTO="libinput_model_quirks_end"
+
+
+LABEL="libinput_model_quirks_end"