Skip to contentSkip to conversation

rules: input - fix detection of bluetooth hid devices in Xorg

PATCH In review Thomas Bächler 2 participants 2 messages Aug 2, 2011 – Aug 4, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rules: input - fix detection of bluetooth hid devices in Xorg

Commit c49df20758e0f22778cfc93b598f2929f4c86272 prevented udev from creating broken symlinks for bluetooth hid devices. Unfortunately, it also removed the ID_INPUT=1 and ID_INPUT_{KEY,MOUSE}=1 properties from those devices. Xorg relies on these properties for cold- and hotplugging of input devices.

With this patch, udev still omits the broken symlinks, but also imports the input_id properties again.

---
 rules/rules.d/60-persistent-input.rules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
rules/rules.d/60-persistent-input.rules +1 -1
index 65a6381..28d50d2 100644
@@ -2,9 +2,9 @@
 
 ACTION="remove", GOTO="persistent_input_end"
 SUBSYSTEM!="input", GOTO="persistent_input_end"
-SUBSYSTEMS="bluetooth", GOTO="persistent_input_end"
 
 ENV{ID_INPUT}="", IMPORT{program}="input_id %p"
+SUBSYSTEMS="bluetooth", GOTO="persistent_input_end"
 SUBSYSTEMS="usb", ENV{ID_BUS}="", IMPORT{program}="usb_id --export %p"
 
 # determine class name for persistent symlinks
Signature · 1 line
1.7.6
#1 lore raw
Quoted 5 lines · Thomas Bächler

Commit c49df20758e0f22778cfc93b598f2929f4c86272 prevented udev from creating broken symlinks for bluetooth hid devices. Unfortunately, it also removed the ID_INPUT=1 and ID_INPUT_{KEY,MOUSE}=1 properties from those devices. Xorg relies on these properties for cold- and hotplugging of input devices.

I've moved the input_id call to the default rules.

Thanks,
Kay