04-24-2018, 03:46 PM
Hi @badbat75,
I extracted the Bluetooth recipe from your custom Builder at https://github.com/badbat75/rpi_moode_build
Am I correct in understanding that this bluetooth build resolved your connection issues?
-Tim
I extracted the Bluetooth recipe from your custom Builder at https://github.com/badbat75/rpi_moode_build
Am I correct in understanding that this bluetooth build resolved your connection issues?
Code:
# Remove current bluez installation
sudo apt-get -y remove bluez libbluetooth-dev libbluetooth3
# Compile bluez
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.49.tar.xz
#cp ./rel-stretch/other/bluetooth/bluez-5.49.tar.xz ./
tar xvf bluez-5.49.tar.xz
cd bluez-5.49
./configure \
--prefix=/usr \
--libdir=/usr/lib/arm-linux-gnueabihf \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-library \
--enable-manpages \
--enable-deprecated \
--disable-cups \
--disable-hid \
--disable-hog \
--disable-network \
--disable-obex
make
sudo make install
cd ~
rm -rf ./bluez-5.49*
# Install pi bluetooth
git clone https://github.com/RPi-Distro/pi-bluetooth
sudo cp pi-bluetooth/usr/bin/btuart /usr/bin/
sudo cp pi-bluetooth/debian/pi-bluetooth.hciuart.service /etc/systemd/system/hciuart.service
sudo systemctl daemon-reload
rm -rf pi-bluetooth
# Compile bluez-alsa
cd /tmp
git clone -b v1.2.0 --single-branch https://github.com/Arkq/bluez-alsa.git
cd bluez-alsa
autoreconf --install
mkdir build
cd build
../configure --disable-hcitop --with-alsaplugindir=/usr/lib/arm-linux-gnueabihf/alsa-lib
make
sudo make install
cd ~
rm -rf /tmp/bluez-alsa
# Services are started by moOde Worker so lets disable them here
sudo systemctl daemon-reload
sudo systemctl disable bluetooth.service
sudo systemctl disable hciuart.service
# Finish up
sudo mkdir -p /var/run/bluealsa
sudo sync
-Tim