Skip to content

having some trouble keeping a stable connection #1

Description

I don't know if I should post this here or at BlueAlsa "prima", but I thought it safe to start here, since I'm now using your version.

First: it rocks. It's so nice to have the audio mixing work transparently.

I'm having some trouble keeping a speaker connected to my Raspberry Pi 4B though, and I'm not sure where to start debugging this.

  • After booting, the audio will be choppy, and then speed up and catch up two seconds later. This later stabiliszes, so probably has to do with the Pi just being busy. Oddly, the network cable is plugged in, so interference from the wifi is not an issue. Similarly, processor use isn't particularly high during boot either.
  • Once the speaker is connected it wil work ok for a while (about 30 minutes to an hour, it varies), but then will randomly stop working. My system does periodic bluetooth scans (3 seconds every 5 minutes, to detect rogue Airtags), but the disconnect doesn't seem to be aligned with that. Once disconnected the speaker doesn't want to reconnect until after a reboot.

This is now BlueAlsa is started in the systemd file:

[Unit]
Description=BluezALSA proxy
Requires=bluetooth.service
After=bluetooth.service

[Service]
Type=simple
User=root
Environment="LD_LIBRARY_PATH=/usr/local/lib"
Environment="LIBASOUND_THREAD_SAFE=0"
ExecStart=/usr/bin/bluealsa --multi-client -p a2dp-source -p a2dp-sink --a2dp-volume -p hfp-ag

[Install]
WantedBy=multi-user.target

This is an error I spotted:

Mar 08 21:52:50 candle bluealsa[409]: /usr/bin/bluealsa: E: PCM poll and read error: Bad file descriptor
Mar 08 21:52:54 candle bluealsa[409]: /usr/bin/bluealsa: E: PCM poll and read error: Bad file descriptor
Mar 08 21:53:21 candle bluealsa[409]: /usr/bin/bluealsa: E: Couldn't release transport: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Method "Release" with signature "" on interface "org.bluez.MediaTransport1" doesn't exist
Mar 08 21:53:21 candle bluealsa[409]: /usr/bin/bluealsa: E: Couldn't release transport: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Method "Release" with signature "" on interface "org.bluez.MediaTransport1" doesn't exist

I suspect the first two lines refer to the speaker being offline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions