# MAC address remnant after device unpairing

**URL:** <https://forums.balena.io/t/mac-address-remnant-after-device-unpairing/349689>\
**Category:** Product support\
**Tags:** bluetooth, raspberrypi3\
**Created:** [October 15, 2021, 5:54am UTC](https://forums.balena.io/t/mac-address-remnant-after-device-unpairing/349689 "2021-10-15T05:54:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeliot](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jeliot](https://forums.balena.io/u/jeliot)\
**Post date:** [October 15, 2021, 5:54am UTC](https://forums.balena.io/t/mac-address-remnant-after-device-unpairing/349689/1 "2021-10-15T05:54:49Z")

</div>

I have a balena sound fleet with 1 device (a RPi3 B+) running balenaOS 2.83.21+rev1. The way I intend to use this device primarily is via Bluetooth. I have successfully paired and connected multiple devices to this RPi several times and all of them produce audio - no problem. However, there was a point in its trajectory when I noticed that sometimes the balenaOS device doesn’t show up in the list of available devices - **and even when it does, I am unable to pair any device**.

After some digging (i.e. checking the list of connected devices in the `bluetoothctl` by issuing the command `paired-devices`) I noticed that the devices that I had previously unpaired were still listed with their MAC addresses **as if they were still paired**. So I thought, that would explain why a device that is already listed as paired would NOT be able to create a _new_ pairing connection. Whenever I remove a Bluetooth device from its settings, I notice in the `bluetoothctl` console that it issues a `paired-devices` command and the list of devices that are paired includes the device I just unpaired. I am able to remove the devices manually in the terminal, but this feels rather laborious if I ever want to unpair a device.

Just some extra context: In my troubleshooting steps, I have tried both WiFi and ethernet connections, I am currently using an ASUS bluetooth USB dongle and have tried with and without, I have tried different PSUs that are all rated for 2.5 amps, and I have done enough reboots and service restarts that I’ve lost count. And, of course, I have tried unpairing bluetooth devices which is how this all started.

I guess my question is whether or not this is a known issue or if there is some other way to troubleshoot that I’m not aware of?

TL;DR Bluetooth pairing/connectivity _status_ on the balenaOS side is unreliable - showing devices are still paired after they have been unpaired - and causes moderate annoyance.

---

<div class="post-metadata">

**Author:** ![tmigone](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tmigone/32/2814_2.png) [@tmigone](https://forums.balena.io/u/tmigone)\
**Post date:** [December 21, 2021, 6:02pm UTC](https://forums.balena.io/t/mac-address-remnant-after-device-unpairing/349689/5 "2021-12-21T18:02:34Z")

</div>

Hi @jeliot,

Thanks for reporting this. Your assessment is 100% correct, this is a bug and I wasn’t aware of it (I’m the lead dev for balenaSound). If you don’t mind, can you submit this as a GitHub issue here [Sign in to GitHub · GitHub](https://github.com/balenalabs/balena-sound/issues/new/choose) ? I can do it too if you don’t have an account too.

---

<div class="post-metadata">

**Author:** ![tmigone](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/tmigone/32/2814_2.png) [@tmigone](https://forums.balena.io/u/tmigone)\
**Post date:** [December 21, 2021, 6:08pm UTC](https://forums.balena.io/t/mac-address-remnant-after-device-unpairing/349689/6 "2021-12-21T18:08:20Z")

</div>

I went ahead and created the issue here: [bluetooth: unreliable bluetooth pairing status on balenaSound · Issue #526 · balenalabs/balena-sound · GitHub](https://github.com/balenalabs/balena-sound/issues/526). I’ll see if I can reproduce and fix soon.
