]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
rules: set ID_BUS=bluetooth for any device with id/bustype attr of 0x0005 (#5539)
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Mar 2017 06:55:58 +0000 (16:55 +1000)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Tue, 7 Mar 2017 06:55:58 +0000 (07:55 +0100)
Not all bluetooth devices come through the bluetooth subsystem and those that
don't currently lack the ID_BUS=bluetooth env. This again fails to apply udev
rules and/or hwdb entries that rely on the bluetooth bustype to be set.

Fix this by checking the attribute id/bustype on the device instead of just
the subsystem.

Fixes #4566

rules/60-persistent-input.rules

index 607144bf8af8204f64a03fbf5602e606c597be50..91efbe7294318c7018c7c369bceef406ec857039 100644 (file)
@@ -3,6 +3,8 @@
 ACTION=="remove", GOTO="persistent_input_end"
 SUBSYSTEM!="input", GOTO="persistent_input_end"
 SUBSYSTEMS=="bluetooth", ENV{ID_BUS}="bluetooth", GOTO="persistent_input_end"
+# Bluetooth devices don't always have the bluetooth subsystem
+ATTRS{id/bustype}=="0005", ENV{ID_BUS}="bluetooth", GOTO="persistent_input_end"
 SUBSYSTEMS=="rmi4", ENV{ID_BUS}="rmi", GOTO="persistent_input_end"
 SUBSYSTEMS=="serio", ENV{ID_BUS}="i8042", GOTO="persistent_input_end"