I try to get Bluetooth A2DP audio working on car's multimedia system (W53850, Toyota brand, 2011) with Ubuntu 16.04.
Audio works from Windows, or from Ubuntu 14.04, so the problem must be Ubuntu 16.04-specific. And it is not a hardware problem, because the bluetooth audio works on the same Ubuntu 16.04 laptop, when I dual-boot into Windows 10.
The whole setup procedure looks and feels exactly the same in Ubuntu 14.04 and Ubuntu 16.04, with the only obvious difference that when I finally play the sound on the 16.04, I hear nothing from car's speakers.
This the procedure I use in detail:
- Remove old pairings from the car's multimedia system
Remove old pairings from Ubuntu
Start pairing procedure on car's multimedia system.
- On Ubuntu under "Bluetooth settings" click "+" to get "Device Search"
- After a few seconds a device "CAR M_MMEDIA" appears, click it.
- Under Ping options select the correct pin (it is "0000" anyway, but just be safe). OK.
- Next. After a second I get confirmation "Successfully setup new device 'CAR M_MEDIA'. Quit.
- In car's system exit the "setup" menu (otherwise the sound will be blocked).
- In Sound settings I select "Handsfree CAR M_MEDIA" in "Play sound through" list.
- Play some music.
- The music player show progression in playback time - which indicate that the player is effectively pushing data into the pulse audio sink.
- No sound is heard.
Diagnostics I was able to do so far
On Ubuntu 14.04 I was able to discover the services from the command line:
$ bt-device -s "CAR M_MEDIA"
Discovering services...
[RECORD:65537]
SrvClassIDList: "AudioSink"
ProtocolDescList:
"L2CAP", 0x19
"AVDTP", 0x100
BTProfileDescList:
"AdvAudio", 0x100
SrvName: "Audio Sink"
ProviderName: ""
[RECORD:65538]
SrvClassIDList: "AVRemote"
ProtocolDescList:
"L2CAP", 0x17
"AVCTP", 0x102
BTProfileDescList:
"AVRemote", 0x103
SrvName: "A/V RemoteControl"
ProviderName: ""
Done
I can't do the same on 16.04, because all my two 16.04 computers display error
$ bt-device -s "CAR M_MEDIA"
Discovering services...
Failed to start SDP discovery. Please make sure you have bluez-utils installed on your system.
even if I run bluetoothd
in the --compat
mode.
Maybe Ubuntu 14.04 sends sound in a different sampling frequency (48 kHz as opposed to 44.1 kHz)? But I don't know how to test it.
Here is a hcidump from the sequence: a) connecting to the audio sink (car audio) b) playing music, c) stopping music and d) disconnecting.
paman
andpavucontrol
. – N0rbert Nov 19 '17 at 20:09