# Raspberry pi headphone jack no longer works with latest OS

**URL:** <https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667>\
**Category:** balenaOS\
**Tags:** raspberrypi3\
**Created:** [August 27, 2019, 6:45am UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667 "2019-08-27T06:45:27Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [August 27, 2019, 6:45am UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/1 "2019-08-27T06:45:27Z")

</div>

I have just upgraded my device to production `balenaOS 2.41.0+rev3` on my raspberry pi and I can no longer play audio through the headphone jack.

The following command lists all alsa playback devices on my raspberry pi.

```auto
bash-5.0# aplay -l
****List of PLAYBACK Hardware Devices****
card 0: vc4hdmi [vc4-hdmi], device 0: MAI PCM vc4-hdmi-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bash-5.0# 

```

When I executed the same command on another rapsberry pi 3 running development `balenaOS 2.38.0+rev1` I get the following:

```auto
root@70c82e027ec4:/# aplay -l
****List of PLAYBACK Hardware Devices****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@70c82e027ec4:/# 

```

I am not specialist but it looks like the raspberry pi audio driver has changed when upgrading the OS and I don’t know how I can play now audio through the headphone jack.

All help is much appreciated  
Jan.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [August 27, 2019, 6:58am UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/2 "2019-08-27T06:58:07Z")

</div>

Maybe it is due to configuration variable `RESIN_HOST_CONFIG_dtoverlay` which is set to `"vc4-kms-v3d"` while the same configuration variable is not set on the older raspberry pi installation.

 ![image](https://global.discourse-cdn.com/balena/original/2X/e/e046e64c5b778c2ccbf1f056ea73c8937786c45f.png)

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [August 27, 2019, 4:09pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/5 "2019-08-27T16:09:23Z")

</div>

I tried the following (inspired by what I found on google) without any success:

1. increased `RESIN_HOST_CONFIG_gpu_mem` from 16 to 126 =\> no success
2. changed `RESIN_HOST_CONFIG_dtparam` from `"i2c_arm=on","spi=on","audio=on"` into `"i2c_arm=on","spi=on"` =\> no success
3. deleted configuration variable `RESIN_HOST_CONFIG_dtoverlay` =\> problem got worse. The command `aplay -l` hanged. I think this is a similar problem as [link](https://github.com/raspberrypi/linux/issues/2051#issuecomment-306241234).

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [August 27, 2019, 6:22pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/13 "2019-08-27T18:22:15Z")

</div>

Hi @janvda , it looks like we recreated the issue here. It seems like if you remove or overwrite `dtoverlay=vc4-kms-v3d` it should make the audio work. We will also test on earlier versions, but it seems like this overlay, added for Pi 4 support might be causing the issue.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [August 27, 2019, 6:28pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/14 "2019-08-27T18:28:33Z")

</div>

Thanks for looking into it.

For me deleting `RESIN_HOST_CONFIG_dtoverlay` didn’t work. (see point 3 above). It made the problem worse. running command `aplay -l` never returned had to control-c to interrupt it.

I am going back now to a previous balenaOS version and will check if I still have the problem.

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [August 27, 2019, 6:39pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/15 "2019-08-27T18:39:30Z")

</div>

Hmm, interesting. We will continue testing on our side to try narrow down where the change was caused. Thanks for helping us figuring it out.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [August 27, 2019, 6:42pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/16 "2019-08-27T18:42:45Z")

</div>

I went back to BalenaOS `balenaOS 2.38.0+rev1` and it is working again:

```auto
bash-5.0# aplay -l
****List of PLAYBACK Hardware Devices****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 6/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bash-5.0# 

```

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [August 27, 2019, 7:04pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/17 "2019-08-27T19:04:46Z")

</div>

Okay cool, I just tested `2.41.0+rev1` (grabbed it from our staging environment because it wasn’t officially released) and this version the audio jack works correctly (just running our balena-sound project).

I’m going to test 2.41.0+rev3 again with the exact test (balena-sound) and see where it breaks. I suspect its the introduction of new firmware for pi4 that could be causing it, we will see.

---

<div class="post-metadata">

**Author:** ![dcanob](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dcanob/32/1413_2.png) [@dcanob](https://forums.balena.io/u/dcanob)\
**Post date:** [August 27, 2019, 7:37pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/18 "2019-08-27T19:37:08Z")

</div>

Hi, i am working with raspberrypi3-2.38.0+rev1-v9.15.7 very well but i upgrade of raspberrypi3-2.38.0+rev1-v9.15.7 to raspberrypi3-2.41.0+rev3-v10.2.2 and now the hdmi display not rotate not work, and if i remove the new parameter RESIN\_HOST\_CONFIG\_dtoverlay=vc4-kms-v3d the display not work and still in boot splash screen

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [August 27, 2019, 7:43pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/19 "2019-08-27T19:43:33Z")

</div>

Thanks for the additional info @dcanob , it is looking like the Pi4 firmware update introduced in [https://github.com/balena-os/balena-raspberrypi/blob/master/CHANGELOG.md#2019-08-26](https://github.com/balena-os/balena-raspberrypi/blob/master/CHANGELOG.md#2019-08-26) might have caused issues on the pi3 devices. We will have to confirm what is going on and see what fixes we can make.

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [August 29, 2019, 1:00pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/22 "2019-08-29T13:00:50Z")

</div>

Hi, this is something from the kernel update apparently: [https://github.com/raspberrypi/linux/issues/3181](https://github.com/raspberrypi/linux/issues/3181)  
So if you use the resin dashboard, go to “Device Configuration” section, then modify the existing RESIN\_HOST\_CONFIG\_dtoverlay variable to “vc4-fkms-v3d” then audio will be working again

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [August 29, 2019, 1:27pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/24 "2019-08-29T13:27:27Z")

</div>

I think we need to also update the rpi firmware. Stay tuned, will let you know when there’s a new release fixing this

---

<div class="post-metadata">

**Author:** ![pdcastro](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pdcastro/32/1264_2.png) [@pdcastro](https://forums.balena.io/u/pdcastro)\
**Post date:** [October 4, 2019, 2:14pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/26 "2019-10-04T14:14:39Z")

</div>

It has been reported that these issues (headphone jack and HDMI rotation) do not occur with balenaOS release 2.43 and later. I understand it’s due to upstream changes. If that’s not your experience, let us know.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/janvda/32/1271_2.png) [@janvda](https://forums.balena.io/u/janvda)\
**Post date:** [October 5, 2019, 2:54pm UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/27 "2019-10-05T14:54:31Z")

</div>

Hi @pdcastro ,

Thanks a lot: indeed upgrading the host OS to version `balenaOS 2.43.0+rev1` fixed the issue.

See following output:

```auto
root@ba7c427:/# aplay -l
****List of PLAYBACK Hardware Devices****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 6/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Device [USB2.0 Device], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
root@ba7c427:/# 

```

---

<div class="post-metadata">

**Author:** ![afitzek](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/afitzek/32/359_2.png) [@afitzek](https://forums.balena.io/u/afitzek)\
**Post date:** [October 7, 2019, 8:57am UTC](https://forums.balena.io/t/raspberry-pi-headphone-jack-no-longer-works-with-latest-os/27667/28 "2019-10-07T08:57:33Z")

</div>

Hi,  
Great to see that it works now.
