# problems with raspberry pi sound

**URL:** <https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414>\
**Category:** balenaOS\
**Created:** [March 17, 2020, 11:16am UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414 "2020-03-17T11:16:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 17, 2020, 11:16am UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/1 "2020-03-17T11:16:34Z")

</div>

Hello, my name is Gabriel, I open this thread in the forum because I have problems with the sound of the raspberry pi, that for HDMI if it goes and for the 3.5 jack it does not go, I connect it without the hdmi and if with the jack and not with those something it happens to me that the sound does not get out where I want

---

<div class="post-metadata">

**Author:** ![rcooke-warwick](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rcooke-warwick](https://forums.balena.io/u/rcooke-warwick)\
**Post date:** [March 17, 2020, 11:32am UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/2 "2020-03-17T11:32:19Z")

</div>

Hello Gabriel, just to clarify, you want the sound to come out from the 3.5mm jack of the raspberry pi, but it was coming out of the HDMI. To try and fix this, you booted the raspberry pi without the HDMI connected, but sound still wasn’t coming out of the 3.5mm jack. Is this correct?

A few questions that will help us:

- what raspberry pi and OS are you using?
- what environment variables have you added?

Thanks!

---

<div class="post-metadata">

**Author:** ![rcooke-warwick](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rcooke-warwick](https://forums.balena.io/u/rcooke-warwick)\
**Post date:** [March 17, 2020, 11:56am UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/3 "2020-03-17T11:56:45Z")

</div>

Additionally, it would be useful if you could share the content of your devices ‘config.txt’ file

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 17, 2020, 9:11pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/7 "2020-03-17T21:11:07Z")

</div>

Hello, I have looked at the jack and restarted and this without HDMI still does not damage the sound through the 3.5 mm jack

---

<div class="post-metadata">

**Author:** ![anujdeshpande](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/anujdeshpande/32/3155_2.png) [@anujdeshpande](https://forums.balena.io/u/anujdeshpande)\
**Post date:** [March 18, 2020, 9:17am UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/9 "2020-03-18T09:17:26Z")

</div>

Hi  
Can you check if the following `hdmi_force_edid_audio` flag has been set in your device configuration? If so please remove it.  
Please set `hdmi_ignore_edid_audio` to 1 so that ALSA will default to the analogue audio jack

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 2:29pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/12 "2020-03-18T14:29:57Z")

</div>

Hello Anuj Deshpande where you can edit this configuration to get the sound out of the 3.5 mm jack

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [March 18, 2020, 2:35pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/13 "2020-03-18T14:35:30Z")

</div>

Hi Gabriel, you can set a Configuration Variable in your device through Balena Cloud. Check out the following tutorial: [https://www.balena.io/docs/learn/manage/configuration/#configuration-variables](https://www.balena.io/docs/learn/manage/configuration/#configuration-variables)

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 3:05pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/14 "2020-03-18T15:05:29Z")

</div>

Hello and to do the sound as I would, I am quite a novice in this balenasound

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [March 18, 2020, 3:11pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/15 "2020-03-18T15:11:20Z")

</div>

In order to force the sound to go through the 3.5mm jack you have to:

- Remove the `RESIN_HOST_CONFIG_hdmi_force_edid_audio`, if its set
- Set `RESIN_HOST_CONFIG_hdmi_ignore_edid_audio` to `1`

Can you make those changes and check if the audio is sent through the 3.5mm jack?

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 3:18pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/16 "2020-03-18T15:18:57Z")

</div>

> [@jviotti](#):
>
> Remove the `RESIN_HOST_CONFIG_hdmi_force_edid_audio`

Remove the RESIN\_HOST\_CONFIG\_hdmi\_force\_edid\_audio  
I have not found it established in device configuration the parameter that you have told me I do not know if that is where it goes

---

<div class="post-metadata">

**Author:** ![jviotti](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jviotti/32/220_2.png) [@jviotti](https://forums.balena.io/u/jviotti)\
**Post date:** [March 18, 2020, 3:22pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/17 "2020-03-18T15:22:35Z")

</div>

In that case its fine. We just wanted to make sure it wasn’t set 🙂

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 3:31pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/18 "2020-03-18T15:31:58Z")

</div>

Something is wrong because it does not output the sound through the 3.5mm jack and I still think it outputs it through the HDMI and the first command is nowhere to be seen

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [March 18, 2020, 3:50pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/20 "2020-03-18T15:50:20Z")

</div>

Not finding the first item `RESIN_HOST_CONFIG_hdmi_force_edid_audio` is actually what we want , so that’s good. It means that variable is not assigned a value, so you don’t need to be concerned about it.

For the second item, `RESIN_HOST_CONFIG_hdmi_ignore_edid_audio`, on your dashboard, go to “device configuration”, scroll down and click on the “+ add custom variable” button on the right. In the popup “add a variable” window, paste `RESIN_HOST_CONFIG_hdmi_ignore_edid_audio` for Name. Then enter `1` for Value. Click the “Add” button. Your application will then restart with the new value. After that, please test the 3.5mm audio output and let us know if that works.

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 4:16pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/21 "2020-03-18T16:16:05Z")

</div>

Well, I do something wrong that the audio is not removed through the 3.5 mm jack and the hdmi is disconnected from the raspberry pi

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [March 18, 2020, 4:20pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/22 "2020-03-18T16:20:06Z")

</div>

Just to confirm though, were you able to add the `RESIN_HOST_CONFIG_hdmi_ignore_edid_audio` variable with a value of 1?

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 4:22pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/23 "2020-03-18T16:22:01Z")

</div>

if this value is set as you have told me

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 4:46pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/24 "2020-03-18T16:46:44Z")

</div>

If this value is set as you have told me value 1 and nothing is wrong and I know that this output works

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [March 18, 2020, 5:43pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/25 "2020-03-18T17:43:20Z")

</div>

Can you provide some information on your setup such as the type of Raspberry Pi and the OS you are using? I can attempt to duplicate it and see if there are further settings for you to adjust. What is the source of the audio you are trying to listen to?

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forums.balena.io/u/Gabriel)\
**Post date:** [March 18, 2020, 7:16pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/27 "2020-03-18T19:16:09Z")

</div>

Hello, this is my configuration  
Rpi 3b 3.5 jack connected to Denon amplifier  
BalenaOS [balenaOS 2.47.0+rev1]  
airplay and Bluetooth in none of the means of the balena it takes me out through the 3.5 mm jack

---

<div class="post-metadata">

**Author:** ![samothx](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@samothx](https://forums.balena.io/u/samothx)\
**Post date:** [March 18, 2020, 8:26pm UTC](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414/28 "2020-03-18T20:26:43Z")

</div>

After setting the `RESIN_HOST_CONFIG_hdmi_ignore_edid_audio` variable , was the device rebooted ?

[Next page](https://forums.balena.io/t/problems-with-raspberry-pi-sound/80414.md?page=2)
