# Disable bluetooth-audio service

**URL:** <https://forums.balena.io/t/disable-bluetooth-audio-service/117749>\
**Category:** Product support\
**Created:** [May 20, 2020, 6:25pm UTC](https://forums.balena.io/t/disable-bluetooth-audio-service/117749 "2020-05-20T18:25:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![densmtl](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@densmtl](https://forums.balena.io/u/densmtl)\
**Post date:** [May 20, 2020, 6:25pm UTC](https://forums.balena.io/t/disable-bluetooth-audio-service/117749/1 "2020-05-20T18:25:12Z")

</div>

Hello,

I have BalenaSound running on an RPi 2 that does not have bluetooth, When I restart the device, the bluetooth-audio service keeps failing to start and loops. I have to stop it manually via the web portal.

Is there a way to prevent the service from starting by setting a variable (like the variable DISABLE\_MULTI\_ROOM to prevent the fleet-supervisor and the rest from starting)?

Thank you.

---

<div class="post-metadata">

**Author:** ![saintaardvark](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/saintaardvark/32/3390_2.png) [@saintaardvark](https://forums.balena.io/u/saintaardvark)\
**Post date:** [May 20, 2020, 8:05pm UTC](https://forums.balena.io/t/disable-bluetooth-audio-service/117749/2 "2020-05-20T20:05:27Z")

</div>

Hi @densmtl, welcome to the forums!

There isn’t currently a way to disable Bluetooth with an environment variable, but that’s a good idea! I encourage you to [submit that as a feature request](https://github.com/balenalabs/balena-sound/issues/new/choose).

In the meantime, there are a couple of things you could experiment with:

- You could try changing the `restart` directive in [docker-compose.yml](https://github.com/balenalabs/balena-sound/blob/master/docker-compose.yml#L5) from `always` to `never`. (See [here](https://docs.docker.com/compose/compose-file/#restart) for more details on your options.)
- Alternately, you could try commenting out the entire `bluetooth-audio` stanza in `docker-compose.yml`.

Give those a try and let us know how they go!

All the best,  
Hugh

---

<div class="post-metadata">

**Author:** ![densmtl](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@densmtl](https://forums.balena.io/u/densmtl)\
**Post date:** [May 20, 2020, 10:16pm UTC](https://forums.balena.io/t/disable-bluetooth-audio-service/117749/4 "2020-05-20T22:16:11Z")

</div>

Hi @saintaardvark,

Thank you for the suggestions. I submitted a feature request and commented out the `bluetooth-audio` section in the docker file.

Cheers,  
Dens

---

<div class="post-metadata">

**Author:** ![densmtl](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@densmtl](https://forums.balena.io/u/densmtl)\
**Post date:** [May 20, 2020, 10:20pm UTC](https://forums.balena.io/t/disable-bluetooth-audio-service/117749/5 "2020-05-20T22:20:16Z")

</div>

Actually I just saw a PR that would probably solve my issue… 🙂

> <https://github.com/balenalabs/balena-sound/pull/186>

---

<div class="post-metadata">

**Author:** ![alexgg](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@alexgg](https://forums.balena.io/u/alexgg)\
**Post date:** [June 15, 2020, 3:33pm UTC](https://forums.balena.io/t/disable-bluetooth-audio-service/117749/7 "2020-06-15T15:33:33Z")

</div>

Hi, the issue attached to this ticket was closed, and a resolution provided. See [https://github.com/balenalabs/balena-sound/issues/196#issuecomment-641384693](https://github.com/balenalabs/balena-sound/issues/196#issuecomment-641384693) got details.
