bluetooth audio (mostly solved)

Discussions about Linux installation and configuration on Samsung laptops
cout
Newbie
Newbie
Posts: 7
Joined: 28/08/2009, 15:10

bluetooth audio (mostly solved)

Postby cout » 05/09/2009, 0:03

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?
Last edited by cout on 08/09/2009, 13:25, edited 1 time in total.

cout
Newbie
Newbie
Posts: 7
Joined: 28/08/2009, 15:10

RE: bluetooth audio

Postby cout » 08/09/2009, 13:24

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)


Return to “Linux On My Samsung”

Who is online

Users browsing this forum: Google [Bot] and 2 guests