тоцноц.гц/

a2dp debian (bluetooth stereo) Sat, 24 Jul 10 14:25:47 +0400 Posted by danst

Original manual page: http://wiki.eeeuser.com/howto:xandros_a2dp?s=bluetooth

First you need these packages:

apt-get install build-essential libbluetooth2-dev automake autoconf cvs libtool libasound2-dev libdbus-1-dev libdbus-glib-1-dev bluez-gnome

A2DPD:

cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc login

That will ask your for password. Leave it blank and hit enter.

cvs -d:pserver:anonymous@sbc.cvs.sourceforge.net:/cvsroot/sbc co sbc
cd sbc
./bootstrap
./configure --prefix=/usr
make
sudo make install
cd ..

Bluetooth-alsa modules:

cvs -d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa login

Same shit with password

cvs -d:pserver:anonymous@bluetooth-alsa.cvs.sourceforge.net:/cvsroot/bluetooth-alsa co plugz
cd plugz
./bootstrap
./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install

sudo cp alsa-plugins/a2dpd/sample.a2dprc /root/.a2dprc

Small icon pack for bluetooth-applet (huh? I have no idea why I had to do that, but it was mentioned in the original howto, though everything was working fine in bluetooth-applet)

wget http://cbebop.com/stuff/gbico.tar.bz2
tar -xvjf gbico.tar.bz2
cd gbico
chmod 777 install
./install


Then I had to run bluetooth-applet with root privileges. Don't know why, but it seems like permissions issue with /dev/bluetoothdevice_which_I_didn't_manage_to_found. Anyway you have to run it only once because of device pairing procedure. Well, actually I think it's possible to pair your bluetooth headset using some cli stuff, but I failed pairing with passkey-agent which goes with bluez-utils package (see /usr/share/docs/bluez-utils/examples if interested).

So run bluetooth-applet like that:

sudo bluetooth-applet

Then edit a2dpd config file with your favourite text editor at /root/.a2dpd

sudo nano /root/.a2dpd

Set your headset's address in "address=" string. You can find your headset's address with

sudo hcitool scan

Change both rate and plugin-rate to 44100 (not necessary).
Save file.
Finally restart dbus and bluetooth daemons, run a2dpd and configure your player:

sudo /etc/init.d/dbus restart
sudo /etc/init.d/bluetooth restart
sudo a2dpd

In players set stereo alsa output to a2dpd.
Also you can check it with mplayer

mplayer -ao alsa:device=a2dpd test.mp3


After you start playback, bluetooth-applet should tell you about pairing procedure with your headset. When pairing is complete everything should work just fine.


Xeron Mon, 26 Jul 10 10:21:05 +0400
When I see this shit I lold.

Name:

E-mail:


Running тоцноц.гц engine v0.4 on kourindou-hime | Powered by debian linux