I found a way to write an udev rule to make the hid2hci switch. I took
/lib/udev/rules.d/97-bluetooth-hid2hci.rules as a template and copied it
to /etc/udev/rules.d/97-lenovo-hid2hci.rules. Now I had to find the
right attributes for my Broadcom mouse device.

udevadm info -a --path
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0

lists all attributes for that device.

With this info I could rewrite the rule for Dell devices, so my rule is
now:

#udev rules für Lenovo Ideacentre Bluetooth

ACTION=="remove", GOTO="idea_end"
SUBSYSTEM!="usb", GOTO="idea_end"

# Variety of Broadcom Bluetooth devices - match on a mouse device that is
# self powered and where a HID report needs to be sent to switch modes
# Known supported devices: 0a5c:4503

ATTR{bInterfaceClass}=="03", ATTR{bInterfaceSubClass}=="01", 
ATTR{bInterfaceProtocol}=="02", \
  ATTRS{bDeviceClass}=="00", ATTRS{idVendor}=="0a5c", 
ATTRS{bmAttributes}=="c0", \
  RUN+="hid2hci --method=dell --devpath=%p", ENV{HID2HCI_SWITCH}="1"

LABEL="idea_end"


** Changed in: linux (Ubuntu)
       Status: Expired => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997718

Title:
  Lenovo Ideacentre B300 - bluetooth adapter not detected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/997718/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to