My bluetooth chip isn't being put into hci mode at boot anymore. This happened when I updated udev. I believe a udev rule from bluez was running hid2hci to switch the chip to HCI, but now that rule doesn't seem to work anymore. I have to run hid2hci manually.
Please let me know what information you need. Here is lsusb and my 97-bluetooth-hid2hci.rules file.
lsusb:
Code:
us 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0424:2503 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 006: ID 05ac:8300 Apple, Inc. Built-in iSight (no firmware loaded)
Bus 001 Device 007: ID 05ac:8240 Apple, Inc. IR Receiver [build-in]
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 05ac:1003 Apple, Inc. Hub in Pro Keyboard [Mitsumi, A1048]
Bus 002 Device 003: ID 05ac:0304 Apple, Inc. Optical USB Mouse [Mitsumi]
Bus 002 Device 004: ID 05ac:020b Apple, Inc. Pro Keyboard [Mitsumi, A1048/US layout]
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 05ac:1000 Apple, Inc. Bluetooth HCI MacBookPro (HID mode)
the udev rules I had were messed up, partly by me and partly by bad rules from bluez. This is my new 97-bluetooth-hid2hci.rules, which still don't work.
Code:
# CSR devices (in HID mode)
ACTION=="add", ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="1000", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hci"
#ACTION=="add", ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="8207", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hid"
Edit: removed 'ACTION=="add"', and now the rule matches on boot and when I run 'udevadm trigger', does this device never get "add"ed? And is it safe to leave the file like below
Code:
# CSR devices (in HID mode)
ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="1000", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hci"
#ACTION=="add", ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="8207", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hid"