9

How do you pair bluetooth headphones without using the GUI? I don't know how to.

I found different method on the internet but nothing works.

I can actually see my headphones with the command : hcitool scan

then i try to connect with : hcitool cc 00:00:00:00:00:00 and hcitool auth 00:00:00:00:00:00

I haven't received an error message but my headphones are not working.

thanks for your time.

3

You can use bluez-tools.

Install it by running sudo apt-get install bluez-tools.

Find the MAC address of your device with bt-device -l and connect to it with bt-audio -c 00:00:00:00:00:00.

  • 2
    bt-audio is not installed but bluez-tools is installng. – Dysnod Oct 6 '16 at 13:16
  • bt-audio should come together with bluez-tools. – Tony Lancer Oct 6 '16 at 14:25
  • What happens when you run bt-audio -c 00:00:00:00:00:00? – Tony Lancer Oct 6 '16 at 14:29
  • 2
    The BT-audio program is not yet installed. You can install it by typing sudo apt-get install bluez-tools. I tried to remove and install bluez-tools but the problem is still there. – Dysnod Oct 6 '16 at 14:40
  • 2
    There's an open issue for bt-audio missing from bluez-tools github.com/khvzak/bluez-tools/issues/13. – Jaakko Mar 22 '17 at 15:59
1

I'm on ubuntu 19.04 and executing the following worked for me:
sudo bluetoothctl <<<"connect $DEVICE_MAC_ADDRESS"
where $DEVICE_MAC_ADDRESS is the mac address of the bluetooth device.

To find my device's mac address I used bt-device -l

Both bluetoothctl and bt-device commands were already pre-installed on my system.

Hope this can help someone! ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.