<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Bluetooth headset pairing broken if pulseaudio is not restarted"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83361">83361</a>
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Bluetooth headset pairing broken if pulseaudio is not restarted
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Daniel.Savard@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>core
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr></table>
<p>
<div>
<pre>I cannot get my headset to work with net-wireless/bluez-5.21-r1,
media-sound/pulseaudio-5.0-r2, 3.14.14-gentoo and Gnome 3.12.
The bluetooth subsystem refuses to recognize the audio profile: a2dp-sink.
I opened a bug to Gentoo and after investigation here is the outcome. I needed
to restart pulseaudio in order to bluez to make the connection. Here is the
steps I followed to debug this:
The problem:
And here is what I am getting in bluetoothctl:
feynman syslog-ng # bluetoothctl
[NEW] Controller 00:02:72:20:1F:84 feynman-0 [default]
[NEW] Device 00:0F:59:10:90:2A iCom
[NEW] Device CC:55:AD:40:84:ED CiDS BB1
[bluetooth]# info 00:0F:59:10:90:2A
Device 00:0F:59:10:90:2A
Name: iCom
Alias: iCom
Class: 0x240404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: yes
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
[bluetooth]# connect 00:0F:59:10:90:2A
Attempting to connect to 00:0F:59:10:90:2A
Failed to connect: org.bluez.Error.Failed
Trying to connect manually:
usr@feynman ~ $ bluetoothctl
[NEW] Controller 00:02:72:20:1F:84 feynman-0 [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# default agent
Invalid command
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:02:72:20:1F:84 Discovering: yes
[NEW] Device 50:85:69:FF:5F:B7 [HTS]H4500
[NEW] Device 00:0F:59:10:90:2A iCom
[bluetooth]# pair 00:0F:59:10:90:2A
Attempting to pair with 00:0F:59:10:90:2A
[CHG] Device 00:0F:59:10:90:2A Connected: yes
[CHG] Device 00:0F:59:10:90:2A UUIDs:
00001108-0000-1000-8000-00805f9b34fb
0000110b-0000-1000-8000-00805f9b34fb
0000110e-0000-1000-8000-00805f9b34fb
0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:0F:59:10:90:2A Paired: yes
Pairing successful
[CHG] Device 00:0F:59:10:90:2A Connected: no
[bluetooth]# connect 00:0F:59:10:90:2A
Attempting to connect to 00:0F:59:10:90:2A
Failed to connect: org.bluez.Error.Failed
Then, here I restarted pulseaudio with pulseaudio -k and then tried to connect:
usr@feynman ~ $ bluetoothctl
[NEW] Controller 00:02:72:20:1F:84 feynman-0 [default]
[NEW] Device 00:0F:59:10:90:2A iCom
[bluetooth]# pair 00:0F:59:10:90:2A
Attempting to pair with 00:0F:59:10:90:2A
Failed to pair: org.bluez.Error.AlreadyExists
[bluetooth]# connect 00:0F:59:10:90:2A
Attempting to connect to 00:0F:59:10:90:2A
[CHG] Device 00:0F:59:10:90:2A Connected: yes
Connection successful
[CHG] Device 00:0F:59:10:90:2A UUIDs:
00001108-0000-1000-8000-00805f9b34fb
0000110b-0000-1000-8000-00805f9b34fb
0000110c-0000-1000-8000-00805f9b34fb
0000110e-0000-1000-8000-00805f9b34fb
0000111e-0000-1000-8000-00805f9b34fb
[bluetooth]#
And now the device is connected properly.
I shouldn't have to restart pulseaudio in order to make this working. Seems to
be a pulseaudio issue. My version of bluez is 5.21.
The bug report for Gentoo is here:
<a href="https://bugs.gentoo.org/show_bug.cgi?id=520710">https://bugs.gentoo.org/show_bug.cgi?id=520710</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>