Balena sound audio stuttering and bluetooth constantly disconnecting and reconnecting

Hello,
I am a complete newb and just received tonight a raspberry pi 4b 2GO on which i succeeding in installing BalenaCloud.
All services are running fine and i output audio through HDMI.

However i do have some quircks, first there is a real instability of the bluetooth from my phone which is very close to the Pi, when i do not play music i constantly hear the disconnection / connection sound.
When i play music, it works ok with very few stuttering.

For information i am connected through LAN, however i have entered LAN + wifi when setting up the device.

I also notice a delay : when i push play or pause on my phone, it takes a few seconds to pause / play on the pi. Plus pausing music will give me the “connection/disconnection” sound every 5 seconds.

Any help would be appreciated.

Thanks a lot

1 Like

Hi there, thanks for trying out balenaSound and welcome to our forums!

With regards to the delay, that is somewhat to be expected. We use Snapcast to sync audio across multiple devices and that comes with the cost of a bit of delay to it. If you don’t use the multi-room feature you can disable it and it should be less noticeable. You can do so by creating a device environment variable called DISABLE_MULTI_ROOM. This two links might be of help:

Regarding bluetooth instability. From my experience the Pi 4 is pretty stable in terms of bluetooth connection, so my first hunch would be to look elsewhere. Can you try streaming from another device to rule it out? Also if you can provide information on OS type and version for your phone. Lastly, in terms of the device itself, do you see any errors being logged when the connection/disconnection sounds loop? Can you check dmesg while that is going on? Thanks!

Hi,

I’m using a RPI 3A+ With exactly the same issue.
Anyone able to help

Hi, thanks for reporting the problem. Could you please confirm that your problem matches the second problem reported in this thread, that is, the instability of the bluetooth connection?

Did you try the suggestions above to help us get to the bottom of this? Namely,

  • Can you try streaming from another device to rule it out?
  • Also if you can provide information on OS type and version for your phone.
  • Lastly, in terms of the device itself, do you see any errors being logged when the connection/disconnection sounds loop? Can you check dmesg while that is going on?

I am facing the exact same issue. Bluetooth keeps getting connected and disconnected every 5-10 seconds. Tried it with Samsung S10, iPhone XS, and Macbook Pro; same behavior.

HOST OS VERSION - [balenaOS 2.56.0+rev1]
Raspberry Pi 4 - 2 GB

Any help on this would be appreciated. Tagging folks who help earlier on this thread. @alexgg @tmigone

This is how the setup looks -

Hi

  • Have you tried the things that we have listed out in the troubleshooting guide here - https://sound.balenalabs.io/docs/support#troubleshooting
    We have a section for the audio stuttering issue.
  • Do let us know what from that list of thing to try worked for you. Bluetooth is known to be finicky.
  • There’s no real need to tag people that have replied before :slight_smile:

Thanks for the link, I will disable the multi-room feature to address the audio delay.

But the issue I am facing is Bluetooth gets disconnected. I can clearly see on my device that Bluetooth is disconnected, and then it connects back in 5-10 sec. This goes in a cycle. And there are no errors on the console. :frowning:

I saw this problem a few days ago, but it seemed to go away on its own once I started plating music and I didn’t think much of it until now. It happened a few times for me. Now, I’m watching logs on one of my devices and below is what it’s reporting as I type this. No idea why it’s doing that, and it was rebooted a few hours ago and hasn’t been used since before the reboot. This device is currently still on 2.4.10 code. I’ll try tomorrow to see if the 3.x code does it.

17.09.20 00:09:19 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:09:19 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:09:37 (-0700)  bluetooth-audio  Setting output volume to 75%
17.09.20 00:09:38 (-0700)  bluetooth-audio  Connection notify volume is 25%
17.09.20 00:09:39 (-0700)  bluetooth-audio  amixer: Unable to find simple control 'Digital',0
17.09.20 00:09:39 (-0700)  bluetooth-audio  
17.09.20 00:09:39 (-0700)  bluetooth-audio  Error org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
17.09.20 00:09:39 (-0700)  bluetooth-audio  
17.09.20 00:09:39 (-0700)  bluetooth-audio  Restarting bluetooth service
17.09.20 00:09:49 (-0700)  bluetooth-audio  rm: cannot remove '/root/.asoundrc': No such file or directory
17.09.20 00:09:52 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:09:52 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:09:52 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:09:52 (-0700)  bluetooth-audio  /usr/bin/bluealsa: No HCI device available
17.09.20 00:09:52 (-0700)  bluetooth-audio  Starting bluetooth agent in Legacy Pairing Mode - PIN CODE is "2539"
17.09.20 00:09:56 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:09:57 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:10:03 (-0700) Service exited 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:10:16 (-0700) Restarting service 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:09:57 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:10:19 (-0700)  bluetooth-audio  Setting output volume to 75%
17.09.20 00:10:19 (-0700)  bluetooth-audio  Connection notify volume is 25%
17.09.20 00:10:21 (-0700)  bluetooth-audio  amixer: Unable to find simple control 'Digital',0
17.09.20 00:10:21 (-0700)  bluetooth-audio  
17.09.20 00:10:22 (-0700)  bluetooth-audio  Error org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
17.09.20 00:10:22 (-0700)  bluetooth-audio  
17.09.20 00:10:22 (-0700)  bluetooth-audio  Restarting bluetooth service
17.09.20 00:10:32 (-0700)  bluetooth-audio  rm: cannot remove '/root/.asoundrc': No such file or directory
17.09.20 00:10:35 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:10:35 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:10:35 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:10:35 (-0700)  bluetooth-audio  Starting bluetooth agent in Legacy Pairing Mode - PIN CODE is "2539"
17.09.20 00:10:35 (-0700)  bluetooth-audio  /usr/bin/bluealsa: No HCI device available
17.09.20 00:10:37 (-0700)  bluetooth-audio  Bluetooth agent registered
17.09.20 00:10:39 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:10:39 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:10:45 (-0700) Service exited 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:10:56 (-0700) Restarting service 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:10:39 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:10:39 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:10:59 (-0700)  bluetooth-audio  Setting output volume to 75%
17.09.20 00:10:59 (-0700)  bluetooth-audio  Connection notify volume is 25%
17.09.20 00:11:01 (-0700)  bluetooth-audio  amixer: Unable to find simple control 'Digital',0
17.09.20 00:11:01 (-0700)  bluetooth-audio  
17.09.20 00:11:01 (-0700)  bluetooth-audio  Error org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
17.09.20 00:11:01 (-0700)  bluetooth-audio  
17.09.20 00:11:01 (-0700)  bluetooth-audio  Restarting bluetooth service
17.09.20 00:11:11 (-0700)  bluetooth-audio  rm: cannot remove '/root/.asoundrc': No such file or directory
17.09.20 00:11:13 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:11:13 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:11:13 (-0700)  bluetooth-audio  /usr/bin/bluealsa: No HCI device availableCan't get device info: No such device
17.09.20 00:11:13 (-0700)  bluetooth-audio  
17.09.20 00:11:13 (-0700)  bluetooth-audio  Starting bluetooth agent in Legacy Pairing Mode - PIN CODE is "2539"
17.09.20 00:11:17 (-0700)  bluetooth-audio  Bluetooth agent registered
17.09.20 00:11:18 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:11:18 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:11:25 (-0700) Service exited 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:11:38 (-0700) Restarting service 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:11:18 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:11:18 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:11:38 (-0700)  bluetooth-audio  Setting output volume to 75%
17.09.20 00:11:38 (-0700)  bluetooth-audio  Connection notify volume is 25%
17.09.20 00:11:39 (-0700)  bluetooth-audio  amixer: Unable to find simple control 'Digital',0
17.09.20 00:11:39 (-0700)  bluetooth-audio  
17.09.20 00:11:40 (-0700)  bluetooth-audio  Error org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
17.09.20 00:11:40 (-0700)  bluetooth-audio  
17.09.20 00:11:40 (-0700)  bluetooth-audio  Restarting bluetooth service
17.09.20 00:11:52 (-0700)  bluetooth-audio  rm: cannot remove '/root/.asoundrc': No such file or directory
17.09.20 00:11:56 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:11:56 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:11:57 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:11:57 (-0700)  bluetooth-audio  Starting bluetooth agent in Legacy Pairing Mode - PIN CODE is "2539"
17.09.20 00:11:57 (-0700)  bluetooth-audio  /usr/bin/bluealsa: No HCI device available
17.09.20 00:12:01 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:12:01 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:12:12 (-0700) Service exited 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:12:54 (-0700) Restarting service 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:12:01 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:12:01 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:12:33 (-0700)  bluetooth-audio  Setting output volume to 75%
17.09.20 00:12:33 (-0700)  bluetooth-audio  Connection notify volume is 25%
17.09.20 00:12:35 (-0700)  bluetooth-audio  amixer: Unable to find simple control 'Digital',0
17.09.20 00:12:35 (-0700)  bluetooth-audio  
17.09.20 00:12:35 (-0700)  bluetooth-audio  Error org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
17.09.20 00:12:35 (-0700)  bluetooth-audio  
17.09.20 00:12:35 (-0700)  bluetooth-audio  Restarting bluetooth service
17.09.20 00:12:51 (-0700)  bluetooth-audio  rm: cannot remove '/root/.asoundrc': No such file or directory
17.09.20 00:12:52 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:12:52 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:12:52 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:12:52 (-0700)  bluetooth-audio  /usr/bin/bluealsa: No HCI device available
17.09.20 00:12:53 (-0700)  bluetooth-audio  Starting bluetooth agent in Legacy Pairing Mode - PIN CODE is "2539"
17.09.20 00:12:55 (-0700)  bluetooth-audio  Bluetooth agent registered
17.09.20 00:12:57 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:12:57 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:13:14 (-0700) Service exited 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:13:25 (-0700) Restarting service 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:12:57 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:12:57 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:13:27 (-0700)  bluetooth-audio  Setting output volume to 75%
17.09.20 00:13:27 (-0700)  bluetooth-audio  Connection notify volume is 25%
17.09.20 00:13:28 (-0700)  bluetooth-audio  amixer: Unable to find simple control 'Digital',0
17.09.20 00:13:28 (-0700)  bluetooth-audio  
17.09.20 00:13:28 (-0700)  bluetooth-audio  Error org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
17.09.20 00:13:28 (-0700)  bluetooth-audio  
17.09.20 00:13:29 (-0700)  bluetooth-audio  Restarting bluetooth service
17.09.20 00:13:39 (-0700)  bluetooth-audio  rm: cannot remove '/root/.asoundrc': No such file or directory
17.09.20 00:13:41 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:13:42 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:13:42 (-0700)  bluetooth-audio  /usr/bin/bluealsa: No HCI device available
17.09.20 00:13:42 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:13:42 (-0700)  bluetooth-audio  Starting bluetooth agent in Legacy Pairing Mode - PIN CODE is "2539"
17.09.20 00:13:45 (-0700)  bluetooth-audio  Bluetooth agent registered
17.09.20 00:13:46 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:13:47 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:13:53 (-0700) Service exited 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:14:06 (-0700) Restarting service 'bluetooth-audio sha256:379d11ba3f8a3058660074b2be569f906733c89b660673c7d6eef99061e9ec85'
17.09.20 00:13:47 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory
17.09.20 00:14:08 (-0700)  bluetooth-audio  Setting output volume to 75%
17.09.20 00:14:08 (-0700)  bluetooth-audio  Connection notify volume is 25%
17.09.20 00:14:09 (-0700)  bluetooth-audio  amixer: Unable to find simple control 'Digital',0
17.09.20 00:14:09 (-0700)  bluetooth-audio  
17.09.20 00:14:10 (-0700)  bluetooth-audio  Error org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
17.09.20 00:14:10 (-0700)  bluetooth-audio  
17.09.20 00:14:10 (-0700)  bluetooth-audio  Restarting bluetooth service
17.09.20 00:14:20 (-0700)  bluetooth-audio  rm: cannot remove '/root/.asoundrc': No such file or directory
17.09.20 00:14:22 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:14:23 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:14:23 (-0700)  bluetooth-audio  Can't get device info: No such device
17.09.20 00:14:23 (-0700)  bluetooth-audio  Starting bluetooth agent in Legacy Pairing Mode - PIN CODE is "2539"
17.09.20 00:14:23 (-0700)  bluetooth-audio  /usr/bin/bluealsa: No HCI device available
17.09.20 00:14:26 (-0700)  bluetooth-audio  Bluetooth agent registered
17.09.20 00:14:27 (-0700)  bluetooth-audio  Device is discoverable as "Multi-Room Audio GC"
17.09.20 00:14:27 (-0700)  bluetooth-audio  /usr/bin/bluealsa-aplay: BlueALSA connection failed: No such file or directory

Hi @koyaanisqatsi , I found several posts where user reported error similar to yours:

Can you try the troubleshooting steps suggested in the second post?

Hi @karaxuna,

I’ll try this out tonight and see how it goes. I don’t actually use BT audio for the most part, so this isn’t a problem for me. I was just supporting the thread with some more info about the symptoms, since I was seeing it happen in my logs. :slight_smile:

Cheers!

Hey Alok, this was happening on a Raspberry Pi 4 correct? If so, that’s a new one as pretty much all the bluetooth problems usually are with Pi3’s. If possible can you try updating to the latest balenaSound (version greater than 3.0) and see if you are still experiencing problems?

Yes, it’s Pi 4. One interesting fact that I noticed today is - When I am streaming music through BT, it never disconnects. As soon as I stop the music, it starts that cycle of disconnecting and connecting.

How do I update BalenaSound to 3.0? When I go to BalenaOS update, the latest version I see is v2.56.0.

You need to push the latest balenaSound from here: https://github.com/balenalabs/balena-sound

Thanks! I will give it a try this evening.

Updated the BalenaOS 3.1.1. Here is the change I noticed

  • It added A2DP functionality
  • Bluetooth connect/ disconnect still happening if not streaming music
  • Lost Bluetooth volume control from the phone. In the old version, I was able to control the volume through the phone now I can’t. It’s either 0 or 100.

Hey there,
I think you meant balenaSound 3.1.1 :slight_smile:

Bluetooth connect/ disconnect still happening if not streaming music

Ok, since this is still occuring, we will require your help to debug this. Can you please try and collect logs from the device and send them here? It might help to enable persistent logs. You can ssh into the hostOS to collect logs. Check out our masterclass on debugging for more details Balena Device Debugging Masterclass - Balena Documentation

Lost Bluetooth volume control from the phone. In the old version, I was able to control the volume through the phone now I can’t. It’s either 0 or 100.

This shouldn’t be the case. I will ask the maintainer for an update. but in the meantime, you can use the SOUND_VOLUME variable to control the volume. See balenaHub - IoT embedded device apps, edge computing resources, and developer tools for more details.

Cheers

Bluetooth connect/ disconnect still happening if not streaming music

Ok, since this is still occuring, we will require your help to debug this. Can you please try and collect logs from the device and send them here? It might help to enable persistent logs. You can ssh into the hostOS to collect logs. Check out our masterclass on debugging for more details Balena Device Debugging Masterclass - Balena Documentation

I set up persistent logging. This is what’s showing up in the journal:

Sep 18 07:32:55 9373d69 dbus-daemon[1289]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.134" (uid=0 pid=2056 comm="pulseaudio --file /etc/pulse/balena-sound.pa ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=1485 comm="/usr/libexec/bluetooth/bluetoothd --experimental ")
Sep 18 07:33:00 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Sep 18 07:33:00 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
Sep 18 07:33:00 9373d69 kernel: input: 94:8B:C1:11:F0:13 as /devices/virtual/input/input82
Sep 18 07:33:00 9373d69 systemd-logind[1313]: Watching system buttons on /dev/input/event0 (94:8B:C1:11:F0:13)
Sep 18 07:33:24 9373d69 dbus-daemon[1289]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.134" (uid=0 pid=2056 comm="pulseaudio --file /etc/pulse/balena-sound.pa ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=1485 comm="/usr/libexec/bluetooth/bluetoothd --experimental ")
Sep 18 07:33:29 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Sep 18 07:33:29 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
Sep 18 07:33:29 9373d69 kernel: input: 94:8B:C1:11:F0:13 as /devices/virtual/input/input83
Sep 18 07:33:29 9373d69 systemd-logind[1313]: Watching system buttons on /dev/input/event0 (94:8B:C1:11:F0:13)
Sep 18 07:33:53 9373d69 dbus-daemon[1289]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.134" (uid=0 pid=2056 comm="pulseaudio --file /etc/pulse/balena-sound.pa ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=1485 comm="/usr/libexec/bluetooth/bluetoothd --experimental ")
Sep 18 07:33:58 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Sep 18 07:33:58 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
Sep 18 07:33:58 9373d69 kernel: input: 94:8B:C1:11:F0:13 as /devices/virtual/input/input84
Sep 18 07:33:58 9373d69 systemd-logind[1313]: Watching system buttons on /dev/input/event0 (94:8B:C1:11:F0:13)
Sep 18 07:34:22 9373d69 dbus-daemon[1289]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.134" (uid=0 pid=2056 comm="pulseaudio --file /etc/pulse/balena-sound.pa ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=1485 comm="/usr/libexec/bluetooth/bluetoothd --experimental ")
Sep 18 07:34:26 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Sep 18 07:34:26 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
Sep 18 07:34:27 9373d69 kernel: input: 94:8B:C1:11:F0:13 as /devices/virtual/input/input85
Sep 18 07:34:27 9373d69 systemd-logind[1313]: Watching system buttons on /dev/input/event0 (94:8B:C1:11:F0:13)
Sep 18 07:34:34 9373d69 balenad[1408]: time="2020-09-18T07:34:34.747122500Z" level=info msg="shim balena-engine-containerd-shim started" address=/containerd-shim/df3aa6a8d502b4746fe5fe8ad9fccbabff8699dc44975ac54a18fd842565965a.sock debug=false pid=7795
Sep 18 07:34:35 9373d69 balenad[1408]: time="2020-09-18T07:34:35.277546162Z" level=warning msg="OOM monitoring failed" error="cgroups: memory cgroup not supported on this system"
Sep 18 07:34:35 9373d69 balenad[1408]: time="2020-09-18T07:34:35.954601067Z" level=info msg="shim reaped" id=f51b7df2c0659013efa8ae7d45ab885a47512e15aa5ab86480b4b597983fdc4d
Sep 18 07:34:35 9373d69 balenad[1408]: time="2020-09-18T07:34:35.960724474Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Sep 18 07:34:50 9373d69 dbus-daemon[1289]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.134" (uid=0 pid=2056 comm="pulseaudio --file /etc/pulse/balena-sound.pa ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=1485 comm="/usr/libexec/bluetooth/bluetoothd --experimental ")
Sep 18 07:34:56 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Sep 18 07:34:56 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
Sep 18 07:34:56 9373d69 kernel: input: 94:8B:C1:11:F0:13 as /devices/virtual/input/input86
Sep 18 07:34:56 9373d69 systemd-logind[1313]: Watching system buttons on /dev/input/event0 (94:8B:C1:11:F0:13)
Sep 18 07:35:20 9373d69 dbus-daemon[1289]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.134" (uid=0 pid=2056 comm="pulseaudio --file /etc/pulse/balena-sound.pa ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=1485 comm="/usr/libexec/bluetooth/bluetoothd --experimental ")
Sep 18 07:35:25 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Configured latency of 200.00 ms is smaller than minimum latency, using minimum instead
Sep 18 07:35:25 9373d69 259bd384c7b0[1408]: W: [pulseaudio] module-loopback.c: Cannot set requested source latency of 66.67 ms, adjusting to 250.00 ms
Sep 18 07:35:26 9373d69 kernel: input: 94:8B:C1:11:F0:13 as /devices/virtual/input/input87
Sep 18 07:35:26 9373d69 systemd-logind[1313]: Watching system buttons on /dev/input/event0 (94:8B:C1:11:F0:13)

Also, here’s the output of systemctl status bluetooth:

root@9373d69:/var/log/journal/87739a2c083a4d1c93d04b934c50ed11# systemctl status bluetooth
â—Ź bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/bluetooth.service.d
           └─bluetooth.conf
   Active: active (running) since Fri 2020-09-18 00:27:13 UTC; 7h ago
     Docs: man:bluetoothd(8)
 Main PID: 1485 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 1962)
   CGroup: /system.slice/bluetooth.service
           └─1485 /usr/libexec/bluetooth/bluetoothd --experimental

Sep 18 00:27:13 9373d69 bluetoothd[1485]: Bluetooth daemon 5.50
Sep 18 00:27:13 9373d69 bluetoothd[1485]: Starting SDP server
Sep 18 00:27:13 9373d69 bluetoothd[1485]: Bluetooth management interface 1.14 initialized
Sep 18 00:27:13 9373d69 bluetoothd[1485]: Failed to set privacy: Rejected (0x0b)
Sep 18 06:42:57 9373d69 bluetoothd[1485]: Endpoint registered: sender=:1.134 path=/MediaEndpoint/A2DPSink/sbc
Sep 18 06:42:57 9373d69 bluetoothd[1485]: Endpoint registered: sender=:1.134 path=/MediaEndpoint/A2DPSource/sbc
Sep 18 07:23:57 9373d69 bluetoothd[1485]: /org/bluez/hci0/dev_94_8B_C1_11_F0_13/fd69: fd(24) ready

Lost Bluetooth volume control from the phone. In the old version, I was able to control the volume through the phone now I can’t. It’s either 0 or 100.

This shouldn’t be the case. I will ask the maintainer for an update. but in the meantime, you can use the SOUND_VOLUME variable to control the volume. See balenaHub - IoT embedded device apps, edge computing resources, and developer tools for more details.

I can confirm this issue. But it’s not totally on/off. The full volume is reached at a very low setting on the phone. You can achieve volume adjustment, but it’s all within a short space toward the lowest setting. Using the volume up/down buttons jumps too far to hear it. But if you set the slider with your finger, you can find a volume setting that is quieter without going totally mute.

Hey there. Thanks for the additional info, we are looking into this and will get back to you once we have more details

Hey Rahul
SOUND_VOLUME only limits the volume to a specific percentage and has not fixed the volume control from the source device (for example phone).

I had to go back to the old BalenaSound version as volume control through the phone was critical. Here is the log you suggested to provide. Every time when Bluetooth gets disconnected, I get this in the log -

Sep 22 18:37:08 2828aa0 bluetoothd[1543]: connect error: Connection timed out (110)

I can’t make much out of this log, but hopefully, It will make sense to you. Thanks again for the help.

Hi everyone, balenaSound maintainer here. I’ll try to address the issues i’ve seen in this thread so far.

About bluetooth volume control not working, this is a known bug in 3.x, should be fixed once I get to the bottom of it, hopefully soon. You can keep track of progress here: https://github.com/balenalabs/balena-sound/issues/300
About bluetooth connect/disconnect if not streaming, I’m interested in getting more verbose logs if possible. This can be done by setting the env var AUDIO_LOG_LEVEL to DEBUG. Be sure to be running on version 3.0 or greater and if possible catch a few instances of this problem ocurring.

1 Like