udev rule for hid2hci and Logitech dongles doesn't work with kernels >= 3.6
Hello,
I've recently noticed that the udev rule for hid2hci with Logitech dongles doesn't work anymore. The reason is commit 7e97243c2080ecae7129e83635227fdebd4feef6 which changes the class (subsystem) for those dongles from usb to usbmisc. I've already filed a bug for Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=877998) but I thought I should write a note here too, to inform non-Fedora users too.
My suggestion is to use "usb*" instead of "usb" for the subsystem, this works with all kernels regardless if the subsystem is "usb" or "usbmisc".
Regards,
Alexander
PATCH 1/1 hid2hci: change subsystem in udev rule from usb to usb*
With kernel 3.6 (commit 7e97243c2080ecae7129e83635227fdebd4feef6) the class for some devices (e.g. dongles from Logitech) were changed from usb to usbmisc. As consequence the udev rule for hid2hci didn't work anymore with kernels >= 3.6.
Changing the subsystem from "usb" to "usb*" matches both "usb" and "usbmisc" and works with all kernels.
--- scripts/bluetooth-hid2hci.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/bluetooth-hid2hci.rules +1 -1
@@ -1,7 +1,7 @@ # do not edit this file, it will be overwritten on update ACTION=="remove", GOTO="hid2hci_end" -SUBSYSTEM!="usb", GOTO="hid2hci_end" +SUBSYSTEM!="usb*", GOTO="hid2hci_end" # Variety of Dell Bluetooth devices - match on a mouse device that is # self powered and where a HID report needs to be sent to switch modes
Signature · 1 line
1.7.11.7
Re: [PATCH] hid2hci: change subsystem in udev rule from usb to usb*
Hi Alexander,
Quoted 11 lines · Alexander Holler
With kernel 3.6 (commit
7e97243c2080ecae7129e83635227fdebd4feef6) the class for some devices (e.g. dongles from Logitech) were changed from usb to usbmisc. As consequence the udev rule for hid2hci didn't work anymore with kernels >= 3.6.Changing the subsystem from "usb" to "usb*" matches both "usb" and "usbmisc" and works with all kernels.
Signed-off-by Alexander Holler <[email protected]>--- scripts/bluetooth-hid2hci.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks. The patch has been applied (after fixing up the commit message to not include the signed-off-by and to have sensible line widths).
Johan
Re: [PATCH] hid2hci: change subsystem in udev rule from usb to usb*
Am 20.11.2012 13:23, schrieb Johan Hedberg:
Quoted 2 lines
Thanks. The patch has been applied (after fixing up the commit message to not include the signed-off-by and to have sensible line widths).
Thanks and sorry for the long lines. I've used to use the comments as reference (when invoking git commit), but unfortunately they got longer since they recently got translated (to german) when using LANG != C.
Regards,
Alexander