2012-11-20 11:37:58

by Alexander Holler

[permalink] [raw]
Subject: 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


2012-11-20 12:31:47

by Alexander Holler

[permalink] [raw]
Subject: Re: [PATCH] hid2hci: change subsystem in udev rule from usb to usb*

Am 20.11.2012 13:23, schrieb Johan Hedberg:

> 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

2012-11-20 12:23:45

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] hid2hci: change subsystem in udev rule from usb to usb*

Hi Alexander,

On Tue, Nov 20, 2012, Alexander Holler wrote:
> 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

2012-11-20 11:47:08

by Alexander Holler

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Alexander Holler <[email protected]>
---
scripts/bluetooth-hid2hci.rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/bluetooth-hid2hci.rules b/scripts/bluetooth-hid2hci.rules
index 0687c8a..db6bb03 100644
--- a/scripts/bluetooth-hid2hci.rules
+++ b/scripts/bluetooth-hid2hci.rules
@@ -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
--
1.7.11.7