Don't match Dell devices on KERNEL, instead use ATTR{bInterfaceProtocol}
PATCH 1/1 Don't match Dell devices on KERNEL, instead use ATTR{bInterfaceProtocol}
Hi:
For some reason I was getting mixed results where I couldn't get the rule to run properly with a git pull today and udev 142. ${attr} wasn't expanding like it should have been. I've modified the rule a bit and this one is now working correctly.
Regards
Signature · 3 lines
Mario Limonciello *Dell | Linux Engineering* [email protected]
=== modified file 'hid2hci/62-hid2hci.rules'
62-hid2hci.rules +2 -2
@@ -1,16 +1,16 @@ # do not edit this file, it will be overwritten on update ACTION!="add", GOTO="hid2hci_end" +SUBSYSTEM!="usb", GOTO="hid2hci_end" # Variety of Dell Bluetooth devices - it looks like a bit of an odd rule, # because it is matching on a mouse device that is self powered, but that # is where a HID report needs to be sent to switch modes. # # Known supported devices: 413c:8154, 413c:8158, 413c:8162 -KERNEL=="mouse*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="413c", ATTRS{bmAttributes}=="e0", \ +ATTR{bInterfaceProtocol}=="02", ATTRS{idVendor}=="413c", ATTRS{bmAttributes}=="e0", \ RUN+="hid2hci --method dell -v $attr{idVendor} -p $attr{idProduct} --mode hci" -SUBSYSTEM!="usb", GOTO="hid2hci_end" ENV{DEVTYPE}!="usb_device", GOTO="hid2hci_end" # Logitech devices
Kay Sievers
AppliedRe: [PATCH] Don't match Dell devices on KERNEL, instead use
Quoted 4 lines · Mario Limonciello
For some reason I was getting mixed results where I couldn't get the rule to run properly with a git pull today and udev 142. ${attr} wasn't expanding like it should have been. I've modified the rule a bit and this one is now working correctly.
Applied.
Thanks,
Kay