Cannot connect Pi to Bluetooth headphones
Posted: Thu Jan 09, 2020 4:40 pm
Hi! I've only gotten my first Pi yesterday, and though I've got it working, I cannot seem to connect it to my Bluetooth headphones. Unfortunately there doesn't seem to be any guides for using Bluetooth from the command line - I'm running Raspbian headless from my computer, through SSH - and instructions I've been able to find aren't working.
I've read through multiple solutions, including installing multiple packages such as pulseaudio and blueman, but none have worked, so I'm hoping posting on a forum could help.
Here is the terminal logs of what I've been trying to do:
I hope this is enough information, since I don't remember all the steps I've taken to try to work through the problem, but I'm happy to do any troubleshooting suggested.
I've read through multiple solutions, including installing multiple packages such as pulseaudio and blueman, but none have worked, so I'm hoping posting on a forum could help.
Here is the terminal logs of what I've been trying to do:
Code: Select all
pi@raspberrypi:~ $ sudo bluetoothctl
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# scan on
Discovery started
[CHG] Controller DC:A6:32:37:4E:DF Discovering: yes
[NEW] Device 5C:FB:7C:E4:70:93 JBL TUNE500BT
[CHG] Device 90:32:4B:1F:71:6A RSSI: -65
[CHG] Device 90:32:4B:1F:71:6A TxPower: 0
[bluetooth]# trust 5C:FB:7C:E4:70:93
[CHG] Device 5C:FB:7C:E4:70:93 Trusted: yes
Changing 5C:FB:7C:E4:70:93 trust succeeded
[bluetooth]# pair 5C:FB:7C:E4:70:93
Attempting to pair with 5C:FB:7C:E4:70:93
[CHG] Device 5C:FB:7C:E4:70:93 Connected: yes
[CHG] Device 5C:FB:7C:E4:70:93 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:E4:70:93 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:E4:70:93 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:E4:70:93 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:E4:70:93 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 5C:FB:7C:E4:70:93 ServicesResolved: yes
[CHG] Device 5C:FB:7C:E4:70:93 Paired: yes
Pairing successful
[CHG] Device 5C:FB:7C:E4:70:93 ServicesResolved: no
[CHG] Device 5C:FB:7C:E4:70:93 Connected: no
[bluetooth]# connect 5C:FB:7C:E4:70:93
Attempting to connect to 5C:FB:7C:E4:70:93
Failed to connect: org.bluez.Error.Failed
[bluetooth]# quit
pi@raspberrypi:~ $ sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-01-09 15:54:26 GMT; 38min ago
Docs: man:bluetoothd(8)
Main PID: 470 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
Memory: 3.7M
CGroup: /system.slice/bluetooth.service
└─470 /usr/lib/bluetooth/bluetoothd --noplugin=sap
Jan 09 15:54:26 raspberrypi systemd[1]: Started Bluetooth service.
Jan 09 15:54:26 raspberrypi bluetoothd[470]: Starting SDP server
Jan 09 15:54:26 raspberrypi bluetoothd[470]: Excluding (cli) sap
Jan 09 15:54:26 raspberrypi bluetoothd[470]: Bluetooth management interface 1.14 initialized
Jan 09 15:54:26 raspberrypi bluetoothd[470]: Failed to set privacy: Rejected (0x0b)
Jan 09 16:21:40 raspberrypi bluetoothd[470]: a2dp-sink profile connect failed for 5C:FB:7C:E4:70:93: Protocol not available