RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Retropie no sound

    Scheduled Pinned Locked Moved Help and Support
    retropieretropie-setupsoundsound settings
    15 Posts 7 Posters 34.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cackmobile
      last edited by

      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 here0_1486795025376_IMG_20170211_152121374-1305x734.jpg

      edmaul69E 1 Reply Last reply Reply Quote 0
      • edmaul69E
        edmaul69 @cackmobile
        last edited by edmaul69

        @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

        C 1 Reply Last reply Reply Quote 1
        • C
          cackmobile @edmaul69
          last edited by

          @edmaul69 thanks mate. I have searched and tried numerous things. I think I may have tried this but I'll give it ago Sun

          edmaul69E 1 Reply Last reply Reply Quote 0
          • edmaul69E
            edmaul69 @cackmobile
            last edited by edmaul69

            @cackmobile actually i think you need this in the /boot/config.txt. Add both of them and you should be good.

            dtparam=audio=on
            
            C 2 Replies Last reply Reply Quote 0
            • C
              cackmobile @edmaul69
              last edited by

              @edmaul69 thanks mate, the first one I'd already done, I'll try the other now

              1 Reply Last reply Reply Quote 0
              • C
                cackmobile @edmaul69
                last edited by

                @edmaul69 nope that didnt work either. i'll keep searching

                1 Reply Last reply Reply Quote 0
                • RoxsteadyR
                  Roxsteady
                  last edited by Roxsteady

                  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

                  1. 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

                  1. You can SSH via Putty/WINSCP] and enter command cd /boot to find config file.

                  2. 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=1

                  2.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 attached

                  hdmi_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.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cackmobile @Roxsteady
                    last edited by

                    @Roxsteady thanks for that. i got the sound working in the menu etc but not in games. I've done everything you suggested

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      cackmobile @cackmobile
                      last edited by

                      @cackmobile solved. in retroarch config i changed hw:0,1 to hw:1

                      K 1 Reply Last reply Reply Quote 1
                      • J
                        jothum
                        last edited by

                        @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.

                        1 Reply Last reply Reply Quote 0
                        • K
                          kot
                          last edited by

                          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 pam8403

                          for example:
                          I entered in config.txt hundred times.
                          I went to audio setup and set 3.5mm

                          Any 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?

                          1 Reply Last reply Reply Quote 0
                          • K
                            kot @cackmobile
                            last edited by

                            @cackmobile Don't find this line. could you mind to guide me, please?

                            1 Reply Last reply Reply Quote 0
                            • N
                              n00bi3
                              last edited by

                              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=16

                              uncomment to force a console size. By default it will be display's size minus

                              overscan.

                              #framebuffer_width=1280
                              #framebuffer_height=720

                              uncomment 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=1

                              uncomment 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=800

                              Uncomment some or all of these to enable the optional hardware interfaces

                              #dtparam=i2c_arm=on
                              #dtparam=i2s=on
                              #dtparam=spi=on

                              Uncomment 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 ---


                              mituM 1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @n00bi3
                                last edited by

                                @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.

                                1 Reply Last reply Reply Quote 0
                                • N
                                  n00bi3
                                  last edited by

                                  It might not be new or the answer for the whole life existence thingy, but it may help someone ;)

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post

                                  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.