domenica 5 giugno 2016

Use Ubuntu computer as bluetooth speaker for an Adroid device

apt-get install bluemon
blueman-manager
connect to a device as A2DP Source (Receive Audio)
I had to to run this first to make it work, though:
pactl load-module module-bluetooth-discover

Sources:
https://crcok.wordpress.com/2014/10/13/bluetooth-device-added-successfully-but-failed-to-connect/
https://ceworkbench.wordpress.com/2011/03/21/configuring-linux-as-an-a2dp-audio-sink/

Configuring ASUS F302LJ laptop's bluetooth on 14.04.1-Ubuntu

EDIT: the following breaks apt-get upgrade so don't do it unless you know what you're doing.
Bluetooth does not work out of the box on the laptop ASUS F302LJ I own. I found a couple of related posts which helped me out solving the problem:
http://askubuntu.com/questions/596570/bluetooth-not-working-on-asus-x555ln-14-10
http://askubuntu.com/questions/682426/my-asus-pc-seems-to-lose-its-bluetooth-firmware-when-i-dual-boot-i-have-reset-i
I basically got it working by doing:
wget https://www.dropbox.com/s/xbmm9vfg2fby2zn/fw-04ca_2006.hcd
sudo cp fw-04ca_2006.hcd /lib/firmware/brcm/BCM43142A0-04ca-2006.hcd
sudo chattr +i /lib/firmware/brcm/
reboot


I'm not sure about the reliability of the dropbox package linked, who put it there and what does the binary contains.  Hopefully the binary is safe.