Rpi4 3.5mm jack audio

Is it possible to get the game audio out of the 3.5mm jack of a Rpi4 while a HDMI device with audio is also connected? I don’t necessarily need output over HDMI, but it wouldn’t hurt to have both. The 3.5mm jack works fine with no display connected, but is disabled when the HDMI display is active.

2 Likes

This is from the event partner section. I use it on all my monitors and works great. I actually don’t know if it also gives audio to the hdmi as they are all on hdmi / dvi adapters and would lose any audio they have. The monitors I use have a separate audio jack.

All credit to @Dave_Flowerday, but I couldn’t link it directly because it’s in the EP section.

Dave_Flowerday

1

Feb '19

I’ve heard this can be common. I don’t have any such monitors myself to test with though.

If you want, you can try to override the Pi’s HDMI audio detection. You have to put the Pi SD card into a PC and then edit the ‘config.txt’ file that is in the folder from the SD card. At the bottom of the file, add this line:

hdmi_ignore_edid_audio=1

In theory that should cause the Pi to ignore the HDMI audio detection and always use the analog headphone jack output.

7 Likes

Perfect, thanks! No amount of google-fu had turned up that parameter for me.

1 Like

And let me know if/how it works. I just saw this is for a rpi4 and I’ve only done this with a 3.

1 Like

You can also use something like this.

4 Likes

On the latest Raspberry Pi image, you should be able to access
http://[pi ip address]/audio
in your browser to control the audio output as well.

10 Likes

Edit: One or both of the solutions worked. Realized the sound mixer wasn’t turned on when I was testing. Thanks for the tips!

Unfortunately neither of those solutions is getting any audio out of the 3.5mm jack. :confused:

Possibly a quirk of the pi4?

1 Like

Should this still work? I tried it on RPi and it gave a not found error. The issue I am having right now is that I have a field monitor connected with an HDMI to VGA adapter cable. If I boot the pi with the video cable plugged in, it will redirect the audio into the HDMI output, so I can’t get audio out of the 3.5 mm jack. If I boot the Pi without the video plugged in, I can get audio out of the 3.5 mm jack, but when I plug the video back in, I get an improper aspect ratio on the monitor. Normally to fix that I would reboot the Pi with the video plugged in, but that would be back to where I started with audio.

3 Likes

It worked for me at my tournament in mid-December

2 Likes

Are you sure you’re running the most recent base image? This is part of the OS image, not the TM software which gets updated from within TM.

2 Likes

I am not sure of that. I was using equipment that was not mine, and I don’t know what version of the image the Pi’s were built with. I will try it with some that I know were recently imaged this week, but it is likely that the ones I were using were just running an older image. Thanks.

3 Likes

So, I find myself without and audio again after updating the base image on my Pis. The audio settings on the web interface are set to the 3.5 jack, and I also tried putting the ignore parameter in the config file and the audio continues to only be transmitted out of the HDMI.

Any ideas to get game sounds back to the 3.5" jack?

Thanks

2 Likes

Not that this is a solution but my workaround for that issue has been to plug into the screens 3.5 jack which mine happen to have. Might be worth checking yours.

1 Like

Unfortunately this is not an option for our setup due to the location of the devices in question. Good suggestion though.

1 Like

Bumping this thread because I am having almost the same issue - except in my case they are pi 3b’s. I have 6 field control setups, and after the update for this season I cant get audio out of the 3.5mm jacks.

I have tried:

  • Adding “hdmi_ignore_edid_audio=1” to the config.txt file.
  • Going to ip address/audio and selecting the 3.5 jack and unmute options
  • Turning on the pi with the HDMI cable unplugged

None of these work. Most of these field controller stups are 4 years old and never had this issue before, so I am guessing this must be related to the latest update. Also, all of these monitors are dvi input only so I am using hdmi to dvi cables in case that matters.

I would really like to avoid buying and dealing with an HDMI splitter and power strips for all 6 field control monitors!

2 Likes

I’m having the same issue here. The PI’s say under the audio page they are going to the 3.5mm jack, but I’m not getting anything. I tried my 4’s and 3b’s.

I’m going to grab the audio from a TV that has an audio out. It’s working but I pi would be more handy.

Thanks for looking into this!

2 Likes

Hi all,
Thanks for bringing our attention to this. It looks like the Raspberry Pi OS changed the way the audio devices work, so that now they’re treated as 2 separate devices rather than a single device with 2 outputs. So, the code that was being used to select the output no longer works (obviously). We’ll have to make some changes to account for this to make audio selection work again. We’ll let you know when we have something ready to try out.

7 Likes

This update should enable you to select the 3.5mm audio output again. Unzip the file and run the .EXE (Windows x64 required). Fill in the IP address of your RPi and click Start Update. After 10-15 seconds the Pi should reboot and you can visit the audio page. If you have a new “Play Test” button then you know the update worked.

Make sure you are using the most recent RPi base image before applying this update:
image

Let me know how it works.

TMRPiAudioUpdate.zip (7.4 MB)

8 Likes

Awesome! Worked like a charm! Thank you for the quick fix!

image

Will this update be built into the next TM release? Thanks!