squeezelite-bluetooth icon indicating copy to clipboard operation
squeezelite-bluetooth copied to clipboard

With Debian 12 / bookworm, blueasla switched to blue-alsa-tools

Open rayb67 opened this issue 6 months ago • 1 comments

Hi, some years ago, I start using your script to install my „sound environment“. Until now, it was working with older Debian version below 12. But with Debian 12 / bookworm, they replaced the bluealsa with blue-also-tools. https://wiki.debian.org/Bluetooth/Alsa

Therefore the installation process is a little different.

sudo apt-get install -y pi-bluetooth
sudo apt-get install -y libasound2-dev dh-autoreconf libortp-dev bluez pi-bluetooth bluez-tools libbluetooth-dev libusb-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev libsbc1 libsbc-dev libdbus-glib-1-dev python3-pip
 
**sudo apt install -y bluez-alsa-utils**
 
sudo apt install -y python3-dbus
cd /etc/systemd/system
wget https://raw.githubusercontent.com/oweitman/squeezelite-bluetooth/master/src/etc/systemd/system/btspeaker-monitor.service
cd /etc
mkdir pyserver
cd pyserver
wget https://raw.githubusercontent.com/oweitman/squeezelite-bluetooth/master/src/etc/pyserver/btspeaker-monitor.py
wget https://raw.githubusercontent.com/oweitman/squeezelite-bluetooth/master/src/etc/pyserver/bt-devices
sudo sed -i "s/User=lms/User=pi/" /etc/systemd/system/btspeaker-monitor.service
sudo sed -i "s/syslog/journal/" /etc/systemd/system/btspeaker-monitor.service
sudo adduser pi bluetooth
sudo chown root:root /etc/pyserver/btspeaker-monitor.py
sudo chown root:root /etc/pyserver/bt-devices
sudo chown root:root /etc/systemd/system/btspeaker-monitor.service
sudo chmod +x /etc/pyserver/btspeaker-monitor.py
sudo systemctl daemon-reload
sudo systemctl enable btspeaker-monitor.service
sudo systemctl start btspeaker-monitor.service
sudo systemctl status btspeaker-monitor.service
 
systemctl status btspeaker-monitor.service
systemctl status bluealsa.service 

Because of less python knowledge, I used the asound.conf way ans modify the btspeaker-monitor.py file like that way:

root@display7:/etc/pyserver# diff btspeaker-monitor.py btspeaker-monitor.py-orig 
33,34c33,34
<     debug(SQUEEZE_LITE, '-n', name, '-m', dev, '-f', '/dev/null')
<     players[key] = Popen([SQUEEZE_LITE, '-n', name, '-m', dev , '-f', '/dev/null'], stdout=DEVNULL, stderr=DEVNULL, shell=False)
---
>     debug(SQUEEZE_LITE, '-o', 'bluealsa:HCI=%s,DEV=%s,PROFILE=a2dp' % ( hci,dev), '-n', name, '-m', dev, '-f', '/dev/null')
>     players[key] = Popen([SQUEEZE_LITE, '-o', 'bluealsa:DEV=%s,PROFILE=a2dp' % ( dev), '-n', name, '-m', dev , '-f', '/dev/null'], stdout=DEVNULL, stderr=DEVNULL, shell=False)

My /etc/asound.conf file looks like this:

pcm.!default {
    type plug
    slave.pcm {
        type bluealsa
		device "2C:81:BF:0B:6E:64" # BeatsPill
        profile "a2dp"
    }
}
ctl.!default {
    type bluealsa
}

I am sure, there must be something change in the python script to work without the ssound.conf furthermore.

Best regards Ralf

rayb67 avatar Aug 18 '25 16:08 rayb67

Thank you very much for your research. I'm not currently using it myself. But I'll see if I can look into it in more detail.

oweitman avatar Aug 19 '25 01:08 oweitman