aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-10-30 10:42:29 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-10-30 10:57:18 +1000
commitffac30349e9da91dbef7d4e0bf7cef58705c534e (patch)
treecaf0d6f19f797789235de9fab9b2447ce855dcd4 /rules
parentman: systemd.offline-updates: remove link to the doc it obsoletes (#7189) (diff)
downloadsystemd-ffac30349e9da91dbef7d4e0bf7cef58705c534e.tar.gz
systemd-ffac30349e9da91dbef7d4e0bf7cef58705c534e.tar.bz2
systemd-ffac30349e9da91dbef7d4e0bf7cef58705c534e.zip
hwdb: add a hwdb file to override ID_INPUT assignments
The input_id builtin assigns the various ID_INPUT based on the exported evdev bits. In some cases, the device may not have the properties required to label a device as one specific type but the physical form factor is clear. e.g. in the case of #7197 it's a tablet pad that does not have x/y axes which the kernel exports for pads for historical reasons. A custom override is needed, best to be solved with a hwdb entry. Related #7197
Diffstat (limited to 'rules')
-rw-r--r--rules/60-input-id.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/60-input-id.rules b/rules/60-input-id.rules
index dee42199b..bb8a812d1 100644
--- a/rules/60-input-id.rules
+++ b/rules/60-input-id.rules
@@ -3,5 +3,6 @@
ACTION=="remove", GOTO="id_input_end"
SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
+SUBSYSTEM=="input", IMPORT{builtin}="hwdb --subsystem=input --lookup-prefix=id-input:modalias:"
LABEL="id_input_end"