Page 1 of 1

bluetooth audio (mostly solved)

Posted: 05 Sep 2009, 00:03
by cout
How do I play music through bluetooth?

If I understand the icons under bluetooth preferences correctly, I have the device paired. I have also modified my .asoundrc as follows:

Code: Select all

cout@sapphire:~$ cat .asoundrc 
pcm.bluetooth {
  type bluetooth
  device <address of device as given by "hcitool dev">
}
but when I try to play a wav file I see:

Code: Select all

cout@sapphire:~$ aplay /usr/share/sounds/alsa/Noise.wav -D bluetooth
ALSA lib pcm_bluetooth.c:1569:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
aplay: main:590: audio open error: Input/output error
Has anyone else been able to get this to work? Do I need a newer alsa?

RE: bluetooth audio

Posted: 08 Sep 2009, 13:24
by cout
I think I figured this out, mostly.

Using instructions here:

http://ubuntuforums.org/showpost.php?p= ... stcount=11

I installed latest blueman, pulseaudio, and pulseaudio-plugin-bluetooth. Blueman replaced the gnome bluetooth applet and left it as a black box icon, so I logged out and logged back in. I repaired my device, and now blueman automatically creates the appropriate sink in pulseaudio.

Only problem is that when I connect to the A2DP service, I get an HSP sink instead of A2DP. So I installed pavucontrol which lets me change to an A2DP profile under the Configuration tab.

I don't know how to change the default sink via the gui yet, so if I want all audio to go through my headphones, I still have to type:

Code: Select all

pacmd set-default-sink 2
(2 just happens to be the id for the A2DP sink on my machine; you can see them all with the list-sinks command)