bluetoothctl No default controller available

后端 未结 6 2081
广开言路
广开言路 2021-02-05 06:15

It\'s a bit wired here.

I have a problem is bluetoothctl always said \"No default controller available\". I found there are many people had same problem with me. But th

6条回答
  •  别那么骄傲
    2021-02-05 06:51

    Here are the steps that worked for me by modifying the bluez config and the run without sudo:

    • Create a "bluetooth" group which will be granted with on bluez's d-bus config

    $ sudo groupadd bluetooth

    • Open the config in /etc/dbus-1/system.d/bluetooth.conf with your favorite text editor

      e.g.

    $ sudo vi /etc/dbus-1/system.d/bluetooth.conf

    • Add/append the following lines below in /etc/dbus-1/system.d/bluetooth.conf




    • Save your changes.

    • Add your login user to "bluetooth" group

    $ sudo usermod -a -G bluetooth

    • Reboot the system.

    • Then try to use "bluetoothctl" without sudo

      $ bluetoothctl
      [bluetooth]# show

提交回复
热议问题