2

I am trying to connect to a Bluetooth audio device on fully updated Raspberry Pi 3 running Jessie using the following:

pi@raspberrypi:~ $ bluetoothctl
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller YY:YY:YY:YY:YY:YY Discoverable: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent 
Default agent request successful
[bluetooth]# scan on
Discovery started
...
[NEW] Device XX:XX:XX:XX:XX:XX Device Name
...
[bluetooth]# pair XX:XX:XX:XX:XX:XX
Attempting to pair with XX:XX:XX:XX:XX:XX
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs:
    ########-####-####-####-############
    ########-####-####-####-############
    ########-####-####-####-############
[CHG] Device XX:XX:XX:XX:XX:XX Paired: yes
Pairing successful
[bluetooth]# trust XX:XX:XX:XX:XX:XX
[CHG] Device XX:XX:XX:XX:XX:XX Trusted: yes
Changing XX:XX:XX:XX:XX:XX trust succeeded
[bluetooth]# connect XX:XX:XX:XX:XX:XX
Attempting to connect to XX:XX:XX:XX:XX:XX
Failed to connect: org.bluez.Error.Failed

One the GUI Desktop a popup appears:

Connection failed -
GDBus.Error:org.bluez.Error.Failed: No such file or directory. Try to connect manually.

Both Bluetooth devices I've tried work with other devices

I've run both

sudo hciconfig hci0 up
hcitool scan

and was able to see the device under scan

Any ideas?

  • 1
    What kind of audio device are you trying to connect to? Is it a set of Bluetooth speakers for playing Pi audio? Perhaps Bluetooth headphones, again for playing audio? Is it a Bluetooth audio source such as a cell phone or car and you want to play audio from speakers attached to your Pi? – Kolban May 31 '16 at 5:06
  • Maybe updating rpi firmware might solve it and then sudo service bluetooth restart && sudo service bluez restart – xdhe May 31 '16 at 5:30
  • @Kolban I've tried both Bose SoundLink and Bluetooth to 30 pin adapter (my ultimate goal) – D-W May 31 '16 at 22:32
2

Try to do:

pulseaudio --start

And after:

[bluetooth]# connect XX:XX:XX:XX:XX:XX
  • 3
    While this may answer the question, it would be nice if you listed some information as to why this answers the question. – Jacobm001 May 31 '16 at 16:03
1

I had this exact problem .I find that it works if you install blueman and run that. Then run pulseaudio --start. Open up blueman on the devices tab and search for devices. It should then find your device. Click pair and make sure it is set as a trusted device. Then go onto pavucontrol and set the output device to high fidelity A2DP or something similar.

0
 pulse audio --start
 bluetoothctl
 pair XX:XX:XX:XX:XX:XX
 connect XX:XX:XX:XX:XX:XX
  • 1
    Could you please give some kind of explanation as to what this code does. This does not answer the question. – Darth Vader Dec 11 '17 at 7:38

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.