Retropie no sound
-
Hi team, I'm really struggling with getting any sound out of retropie. I've tried all the steps I can find eg modifying config.txt but can't get it to work. I've tried HDMI and audio jack. Strangely when I run Kodi from ports menu sound is fine. In terminal when I run sound check I get the attached error. Any one help, I'm going insane here
-
@cackmobile open up /boot/config.txt and remove the hashtag in front of the line:
#hdmi_drive=2
so it looks like this:
hdmi_drive=2
just an fyi, if you used the search feature for "no sound" you would have found hundreds of threads with the exact same question and answer. and to get sound out of the 3.5mm jack you need to go to the retropie menu on the main screen, and in the audio setting and change the audio from hdmi to the jack
-
@edmaul69 thanks mate. I have searched and tried numerous things. I think I may have tried this but I'll give it ago Sun
-
@cackmobile actually i think you need this in the /boot/config.txt. Add both of them and you should be good.
dtparam=audio=on
-
@edmaul69 thanks mate, the first one I'd already done, I'll try the other now
-
@edmaul69 nope that didnt work either. i'll keep searching
-
This is what I did to fix my audio via HDMI problems:
THIS IS PART OF A RETROPIE MASTER FIX PDF I AM PUTTING TOGETHER FORT SELF USE
Even after several released of RetroPie, several people are still reporting audio issues. It is also a common issue with Pi users altogether. Here is a quick fix I discovered after editing the config file.
2.1 a: Editing config.txt
Linux:
Linux location: /boot on PI (root or boot)
Methods
- SSH via WIFI with Linux through CLI on a local Linux box and network
Windows location: / (root or boot) on PI or USB root (PI Micro SD)
Methods
-
You can SSH via Putty/WINSCP] and enter command cd /boot to find config file.
-
You can insert the PI Micro SD USB into a hub/USB adapter and connect it to your PC. The config file will be sitting in the root of the USB.
Editing tools recommendations:
Linux: VI/VIM/NANO (NANO=gross)
Windows: Notepad++ (free)2.1 b. Adding fix:
When you open the config.txt file, there are several settings hashed out. For those who are new to config files under a Linux distro, # means the option in that line is disabled. You can look for the lines below in the text file and remove the hash or just add this entire text to the end of the file:
#Audio issues over HDMI fix
hdmi_drive=2
hdmi_force_hotplug=1
hdmi_force_edid_audio=12.1 c. Additional Information:
The hdmi_drive=2 value may fix the issue as it is meant to force and only choose HDMI for sound.
An issue may still exist when switching monitors as audio formats may change form TV to TV. Enabling some forcing options fixed the audio issues for me. Here are the options and what they do. You can either enable one at a time or all at once.hdmi_drive=2
o Chooses HDMI only over any other option and will transmit sound if supported.hdmi_force_hotplug=1
o Pretends HDMI hotplug signal is asserted so it appears as an HDMI display is attachedhdmi_force_edid_audio=1
o Pretends all audio formats are supported by the display, allowing pass-through of DTS/AC3 even when not reported as supported.If the issues persist, some Googling may help as well. That's how I got all this info.
-
@Roxsteady thanks for that. i got the sound working in the menu etc but not in games. I've done everything you suggested
-
@cackmobile solved. in retroarch config i changed hw:0,1 to hw:1
-
@cackmobile Thank you for solving this. None of the other threads I've read actually detailed the same problem, or listed the solution. Running Jessie on a laptop and don't have sound in games, but perfect in menus and scrape videos? This is the solution.
-
Hi!
I'm having trouble in this part. I also try almost everything.
I built a mini console with raspberry zero, a small screen and I'm using audio amplifier pam8403for example:
I entered in config.txt hundred times.
I went to audio setup and set 3.5mmAny suggestions, please?
Other question. I tried to measure signal at GPIO13 (where the audio amplifier is connected) and I don't have signal. Is this so because it isn't somehow activated in software? -
@cackmobile Don't find this line. could you mind to guide me, please?
-
I have seen that a lot of people are suffering from the same. I had the same issues and headaches. I kinda made it work. On games run OK. I only have Sonic for Megadrive, the only Game I kinda have :). I also have the lines for adjusting the sound on your keyboard and joystick, using Hotkey + ANY KEY. I will add it later.
I will past here my config.txt. I hope it helps.
------------------------------------- ""---------------------------
For more options and information see
http://rpf.io/configtxt
Some settings may impact device functionality. See link above for details
uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
uncomment this if your display has a black border of unused pixels visible
and your display can output without overscan
disable_overscan=0
uncomment the following to adjust overscan. Use positive numbers if console
goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16uncomment to force a console size. By default it will be display's size minus
overscan.
#framebuffer_width=1280
#framebuffer_height=720uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1uncomment to force a HDMI mode rather than DVI. This can make audio work in
DMT (computer monitor) modes
#hdmi_drive=2
uncomment to increase signal to HDMI, if you have interference, blanking, or
no display
#config_hdmi_boost=4
uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=onUncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
Additional overlays and parameters are documented /boot/overlays/README
Enable audio (loads snd_bcm2835) <- this part is very important.
dtparam=audio=on
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256
overscan_scale=1
gpu_mem=256--- added by elecrow-pitft-setup ---
hdmi_force_hotplug=1
max_usb_current=1
hdmi_drive=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
display_rotate=0--- end elecrow-pitft-setup ---
-
@n00bi3 Please surround file contents/code with code tags (
``
) at the beginning and at the end of the paragraph. What you quoted for sound settings is the default setting for the RetroPie image (dtparam=audio=on
), so it's not something new. -
It might not be new or the answer for the whole life existence thingy, but it may help someone ;)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.