-
Add
Enable=Sourceto /etc/bluetooth/audio.conf right after[General]. -
Find address in form XX:XX:XX:XX:XX:XX of phone with
hcitool scan. -
Pair and trust smartphone with
sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XXandsudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes. -
Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # based on monitor-bluetooth | |
| # Changes by Domen Puncer <[email protected]> | |
| import gobject | |
| import dbus | |
| import dbus.mainloop.glib | |
| import os |
Date: 2014-10-11
Author: Fredrik Boulund
System: HP Microserver running Debian Linux (Debian 7.5 Wheezy)
TLDR: Short recipe to enable Bluetooth A2DP server that is always visible, with automatic bluetooth device pairing, and automatic pulseaudio module loading on Debian 7.5 wheezy.
Thanks to:
Joerg Schiller (https://gist.github.com/joergschiller)
Domen Puncer (https://gist.github.com/domenpuncer)
Daniel Hodgson (https://gist.github.com/Toasty27)