3
  1. I have an onboard bluetooth device that stops working a few hours after booting with this error. I can not understand what is the reason for this behavior, so I decided to use an another method. I need to reboot the bluetooth adapter without restarting the operating system. enter image description here

  2. Using ls -lA /sys/class/bluetooth/ , I make sure that the PCI address of the buggy device in the system logs belongs to Bluetooth: enter image description here

  3. Using find /sys | grep drivers.*00:04.1, I find out which driver 00:04.1 is bound to: enter image description here

  4. I successfully unbind the HSU serial driver from 00:04.1 by using echo -n "0000:00:04.1" | sudo tee /sys/bus/pci/drivers/"HSU serial"/unbind. You can see that hciconfig doesn't output anything: enter image description here

  5. But I can't bind the HSU serial driver back to 00:04.1. No such device error occurs: enter image description here

  6. I also tried to specify the vendor 8086 and device name 1191, it did not help: enter image description here

  7. Using lspci -nn, I saw that device 00:04.1 exists in the operating system: enter image description here

How do I get the Bluetooth adapter to work, either by binding a driver to it, or by fixing the original bug that caused Bluetooth to crash?

4 Answers4

2

service bluetooth restart possibly in combination with sudo

dusoft
  • 181
2

You can use:

sudo systemctl restart bluetooth

to restart bluetooth on modern Linux operating systems. Worked for me on KDE Neon (very similar to kubuntu).

842Mono
  • 171
1

I had strange problems with bluetooth prior to updating to 20.04 (focal)

This script did the trick then, may be it is a "fix" for your problem too:

$ type -a bt
bt is a function
bt () 
{ 
    case $1 in 
        on)
            rfkill unblock bluetooth
        ;;
        off)
            rfkill block bluetooth
        ;;
        *)
            echo "use: bt on | off";
            return 1
        ;;
    esac
}
Hannu
  • 10,568
1

For me i first updated the bluetooth firmware: https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/1542743

Then what magically resets the bluetooth adapter when it crashes, was this command which removes mod:

sudo rmmod ath3k 

followed by this command which re-inserts mod:

sudo modprobe ath3k

I guess this works if you have atheros bluetooth driver. Other modules are btusb and btintel, try these too.