Audio does not get routed to BT headset/speaker

Bug #1543179 reported by Dave Morley
84
This bug affects 17 people
Affects Status Importance Assigned to Milestone
Canonical System Image
In Progress
High
Unassigned
bluez (Ubuntu)
Invalid
High
Konrad Zapałowicz
pulseaudio (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

STEPS:
1. Flash the latest daily rc-proposed image to a phone
2. Connect a bluetooth headset to the phone
3. Connect a speaker to the phone.

EXPECTED:
I expect the devices to connect and play audio

ACTUAL:
Speakers just connect and instantly disconnect

Headsets don't get trusted and disconnect instantly, Once you trust it and then turn the headset off and back on again it connect can accept calls but the audio from both the mic and earpiece don't function.

Image: 242

Dave Morley (davmor2)
Changed in bluez (Ubuntu):
importance: Undecided → Critical
assignee: nobody → Simon Fels (morphis)
Dave Morley (davmor2)
tags: added: qa-silo
tags: added: regression-proposed
Changed in canonical-devices-system-image:
importance: Undecided → Critical
assignee: nobody → John McAleely (john.mcaleely)
milestone: none → ww08-2016
tags: added: audio
Changed in canonical-devices-system-image:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bluez (Ubuntu):
status: New → Confirmed
Revision history for this message
Christopher Townsend (townsend) wrote :

Any chance this is being looked at? I can confirm that BT audio is busted on Mako using rc-proposed. In my use case, I have my phone paired with my car and when I either dial a number or accept an incoming call, the call is not heard over the speaker in the car. After this happens, my phone usually reconnects with my car.

Thanks!

tags: added: bluetooth
Revision history for this message
Simon Fels (morphis) wrote :

@Christopher: You say you connected two BT devices at the same time and expect audio being played on both?

Can you also please follow https://wiki.ubuntu.com/DebuggingBluetooth and provide some log files here?

description: updated
summary: - image 242 no audio bt devices connect
+ Audio does not get routed to BT headset/speaker
Simon Fels (morphis)
Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Changed in bluez (Ubuntu):
status: Confirmed → Invalid
Changed in pulseaudio (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Christopher Townsend (townsend) wrote :

@Simon,

No, what I meant was that I have my phone paired with my car and as soon as I answer a call or dial a number, the audio does not play over the car's speaker. And many times when this happens, the phone and/or car disconnects and then reconnects.

Sorry, I cannot provide any logs at this time as I switched back to stable on this phone due to this issue. Since this is my phone that I use for everyday purposes, I needed a reliable setup in my car:)

Simon Fels (morphis)
tags: added: bluetooth-ota10
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
milestone: ww08-2016 → 11
Revision history for this message
A Hung (arias) wrote :

I can confirm this issue as specific to xenial pulseaudio-module-bluetooth version 1:8.0-0ubuntu3. When downgrading to wily pulseaudio 1:6.0-0ubuntu13 the bluetooth gets routed perfectly. All bluetooth and bluez related packages appear to be fine. Problem appears specific to xenial pulseaudio packages.

Revision history for this message
Ken VanDine (ken-vandine) wrote :

This is still an issue on vivid based phone images. I'm on rc-proposed and can still reproduce this on arale and turbo.

Changed in canonical-devices-system-image:
milestone: 11 → 12
Revision history for this message
Ken VanDine (ken-vandine) wrote :
Changed in bluez (Ubuntu):
assignee: Simon Fels (morphis) → Konrad Zapałowicz (kzapalowicz)
Revision history for this message
Ken VanDine (ken-vandine) wrote :
Revision history for this message
Ken VanDine (ken-vandine) wrote :

This might be of interest, if i call my cell phone while it's connected to the car but not routing audio to the car... it switches audio to the car as desired. So the incoming call forces triggers it to reroute. But just connecting it doesn't trigger the reroute.

Revision history for this message
Victor gonzalez (victor-gonzalez-0) wrote :

Hope this is useful for you, I performed some test with a BT headset(blueaudio I5):

Time stamp:

10:23 - Paired
10:24 -/27 Two success calls(last one BT is disconnected before ending the call, phone call properly routed to the phone)

10:44 - disconnect and connect Krillin BT again
10:45 - BT headset autoconnects properly(audio routed to headset saying "connected")
10:46 - Receive a phone call("Incoming call" voice sounds through earpiece)
10:47 - Phone call ends properly

10:48 - Play some music and use volume controls properly
10:50 - Disconnect BT and music stops

Additional info: logs = dbus+syslog+application-legacy-ubuntu-system-settings-.log

Changed in canonical-devices-system-image:
milestone: 12 → 13
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

When tested with a2dp music such as mp3 playback the following scenario works as expected, i.e. the audio is transferred to the correct output:

connect BT headset
play music
disable BT (audio is transferred to the phone and paused)
enable BT (playing audio is transferred to the headset that connects automatically)
On the other hand, the same steps fail to produce any audio in step 4 [through both phone speakers and headset] if it is call audio instead of a2dp.

Perhaps ofono is breaking the way the streams are set up for subsequent connections.

Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

paplay produces sound as expected.

phablet@ubuntu-phablet:~$ paplay /usr/share/sounds/alsa/Front_Left.wav
pactl info before the Bluetooth is disabled then enabled

phablet@ubuntu-phablet:~$ pactl info
Server String: /run/user/32011/pulse/native
Library Protocol Version: 30
Server Protocol Version: 30
Is Local: yes
Client Index: 11
Tile Size: 65496
User Name: phablet
Host Name: ubuntu-phablet
Server Name: pulseaudio
Server Version: 6.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: sink.primary
Default Source: source.primary
Cookie: 120b:adfe
Here Bluetooth is disabled then enabled and the headset connects

paplay does not output anything to the speakers after the headset is connected.

phablet@ubuntu-phablet:~$ paplay /usr/share/sounds/alsa/Front_Left.wav
pactl info after the Bluetooth is disabled then enabled

phablet@ubuntu-phablet:~$ pactl info
Server String: /run/user/32011/pulse/native
Library Protocol Version: 30
Server Protocol Version: 30
Is Local: yes
Client Index: 13
Tile Size: 65496
User Name: phablet
Host Name: ubuntu-phablet
Server Name: pulseaudio
Server Version: 6.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: sink.primary
Default Source: source.primary
Cookie: 120b:adfe
phablet@ubuntu-phablet:~$

Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

It is not true that the audio is silent because the volume levels are muted.

[pulseaudio] module-bluez5-device.c: Failed to set default profile a2dp_sink.
Happens because there is a problem acquiring transport due to I/O error

Changed in canonical-devices-system-image:
milestone: 13 → backlog
Revision history for this message
danilo (tatonilo) wrote :

Same on my bq E5 hd (otq 13, as well as the previous 11.12 & 10, only ota9 was fully working wella) paired with car kenwood kca bt200 hands free + hifi bt interface.
Audio hici is working but with some glitch.
If a call is coming ( as,well as,generated) the system establish a connection, as it sould be, but no call audio (neither micro is wotking) Bt volume is different from zero. Need to switch manually to phone speaker to talk.
If the call is terminated, the bt system restarts to play music.

Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → nobody
Revision history for this message
jEzEk (jezek) wrote :

I bought a JBL GO speaker. On my bq Aquaris E5 HD Ubuntu Edition (Ubuntu 15.04 OTA-15) I can connect to the speaker, but the sound is not working. The media player is not playing any mp3 (after pressing the play button, the time counter does not increment). After discnectig from the speaker (turn off speaker, or turn of bluetooh or disconect in bluetooth settings) the phone says it is still connected to headset (in sound indicator) and you can not turn off bluetooth after that (after returning to bluetooth indicator, or bluetooth setting it is still switched on). The only way is to restart the phone. But that is tricky too. You pres restart, and the phone goes black and nothing happens. You can not even turn it on normally. You have to hard-reset it (volume up + on switch).

tags: added: pulse-touch
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
tags: added: a2dp
Changed in canonical-devices-system-image:
importance: Critical → High
Changed in bluez (Ubuntu):
importance: Critical → High
Changed in pulseaudio (Ubuntu):
importance: Critical → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Ubuntu Touch is no longer supported.

Changed in pulseaudio (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.