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

    Picade Sound stuck at Max Volume

    Scheduled Pinned Locked Moved Help and Support
    picaderaspberry pi4soundmaximum
    25 Posts 3 Posters 5.9k 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.
    • mituM
      mitu Global Moderator @ULTRA-MAGNUSS
      last edited by

      Ok, so it has a I2S sound output and the onboard sound is disabled.
      If you run alsamixer from the terminal, can you control the volume ?

      Run also amixer and post the output.

      U 1 Reply Last reply Reply Quote 0
      • U
        ULTRA-MAGNUSS @mitu
        last edited by

        @mitu When I run alsamixer, I get this

        ──────────────────────────────────────────────────────────────────────────────────── AlsaMixer v1.1.8 ─────────────────────────────────────────────────────────────────────────────────────┐
        │ Card: snd_rpi_hifiberry_dac F1: Help │
        │ Chip: F2: System information │
        │ View: F3: Playback F4: Capture F5: All F6: Select sound card │
        │ Item: Esc: Exit │
        │ │
        │ This sound device does not have any controls. │

        When I enter amixer, it doesn't show any output

        pi@retropie:~ $ amixer
        pi@retropie:~ $

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @ULTRA-MAGNUSS
          last edited by

          @ultra-magnuss said in Picade Sound stuck at Max Volume:

          │ This sound device does not have any controls.

          This means there's no mixer for the snd_rpi_hifiberry_dac card, so no volume control (probably that's why amixer also returns nothing). Probably this is how this card works ?

          Can you post the contents of /etc/asound.conf and $HOME/.asoundrc ?

          U 1 Reply Last reply Reply Quote 0
          • U
            ULTRA-MAGNUSS @mitu
            last edited by

            @mitu

            /etc/asound.conf contents:

            pcm.real {
            type hw
            card 0
            device 0
            }

            pcm.dmixer {
            type dmix
            ipc_key 1024
            ipc_perm 0666
            slave.pcm "real"
            slave {
            period_time 0
            period_size 1024
            buffer_size 8192
            rate 44100
            }
            bindings {
            0 0
            1 1
            }
            }

            ctl.dmixer {
            type hw
            card 0
            }

            pcm.softvol {
            type softvol
            slave.pcm "dmixer"
            control {
            name "PCM" # Masquerade as the default "PCM" sound device on Pi (for EmulationStation)
            card 0
            }
            }

            pcm.!default {
            type plug
            slave.pcm "softvol"
            }


            $HOME/.asoundrc output
            pi@retropie:~ $ vi .asoundrc
            pcm.!default {
            type asym
            playback.pcm {
            type plug
            slave.pcm "output"
            }
            capture.pcm {
            type plug
            slave.pcm "input"
            }
            }
            pcm.output {
            type hw
            card 0
            }
            ctl.!default {
            type hw
            card 0
            }

            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @ULTRA-MAGNUSS
              last edited by

              @ultra-magnuss From the $HOME/.asoundrc file and see if opening up alsamixer allows you to change the volume.

              U 1 Reply Last reply Reply Quote 0
              • U
                ULTRA-MAGNUSS @mitu
                last edited by

                @mitu When I run the alsamixer, it shows "This sound device does not have any controls". It shows Functions keys 1 - 6 and the only one that doesn't immediately exit is F6 which allows me to select the sound device (Default or snd_rpi_hifiberry_dac) Whether I pick default or snd_rpi_hifiberry_dac, I don't get any other options.

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

                  That's strage, since the /etc/asound.conf creates a soft mixer (since the card doesn't have a hw mixer included) and it should show a PCM volume control.
                  Have you tried restarting after you removed the $HOME/.asoundrc file ?
                  What does amixer contents && amixer scontents outputs this time ?

                  U 2 Replies Last reply Reply Quote 0
                  • U
                    ULTRA-MAGNUSS @mitu
                    last edited by

                    @mitu I literally just moved the /home/.asoundrc file and it did make a difference but it's temporary. I renamed the file (didn't delete) and I can now change the volume in the the amixer and alsamixer and the volume will be lower until I load a game. The moment I hit a button to add credits or anything, the volume suddenly jumps back to 100%. Strange.

                    1 Reply Last reply Reply Quote 0
                    • U
                      ULTRA-MAGNUSS @mitu
                      last edited by

                      @mitu

                      Here is the contents of amixer contents

                      pi@retropie:~ $ amixer contents
                      numid=1,iface=MIXER,name='PCM'
                      ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
                      : values=230,230
                      | dBscale-min=-51.00dB,step=0.20dB,mute=0

                      Here is the output from amixier scontents

                      pi@retropie:~ $ amixer scontents
                      Simple mixer control 'PCM',0
                      Capabilities: volume
                      Playback channels: Front Left - Front Right
                      Capture channels: Front Left - Front Right
                      Limits: 0 - 255
                      Front Left: 230 [90%]
                      Front Right: 230 [90%]

                      alsamixer allows me to change the volume, but like I said, when a game loads and I hit a button, suddenly it jumps back to 100% volume

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @ULTRA-MAGNUSS
                        last edited by

                        Sorry, I overlooked that. Which emulator are you using ? Did you save its configuration at some point, which might have included the sound volume ?

                        U 1 Reply Last reply Reply Quote 0
                        • U
                          ULTRA-MAGNUSS @mitu
                          last edited by

                          @mitu I've tried Mame, FBA, Flycast, Redream so far. I haven't gone through all of them but it seems like the affects them all. When it happens and I check the mixers, the volume is back to 100%. Something is kicking in an overriding the settings.

                          Where should I go to check the volume settings for each emulator?

                          mituM 1 Reply Last reply Reply Quote 0
                          • mituM
                            mitu Global Moderator @ULTRA-MAGNUSS
                            last edited by

                            @ultra-magnuss said in Picade Sound stuck at Max Volume:

                            Where should I go to check the volume settings for each emulator?

                            I was thinking about the Libretro based emulators, which share a common configuration. Redream is not a libretro based emulator, so that excludes this possibility.
                            Is the volume slider working now in EmulationStation ?

                            Try lowering the volume, then rebooting, this will save the current volume level. Check if - after the reboot - the volume is saved.

                            U 1 Reply Last reply Reply Quote 0
                            • U
                              ULTRA-MAGNUSS @mitu
                              last edited by ULTRA-MAGNUSS

                              @mitu So I just checked Redream and it did the same. I used putty to change the volume using the alsamixer and left it open. I would change the volume to a lower volume. It would stay that way for a while then it would jump to 90%. I would change it again and leave it and I would see and hear it jump to 90%. When I leave the emulator, it does the same for all.

                              When using the retropie volume,right now it's set to 90%. I will lower it and check and it will save it but when I launch anything, it goes back to 90%. So it's not necessarily an emulator. It's not dependent on me hitting a button. If I just let a game run, it will just jump to 90%, If I leave or launch anything it will reset. It's not really saving the settings.

                              I did try setting the volume lower and rebooting. After reboot, it went back 90% There seems to be a configuration somewhere that keeps kicking in to set the volume.

                              mituM 1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator @ULTRA-MAGNUSS
                                last edited by

                                Besides the configuration of EmulationStation that keeps the volume, there is the ALSA mixer configuration that's saved on reboot with alsactl store/restore.

                                U 1 Reply Last reply Reply Quote 0
                                • U
                                  ULTRA-MAGNUSS @mitu
                                  last edited by

                                  @mitu I figured out what is causing it to jump in volume. It's my start and coin button on the picade. The moment I press one of those buttons, it changes the volume. I don't know why. The front buttons (Coin and 1up) which I have mapped as Start and Coin seems to reset the volume to the max. No idea why. They do function properly as the Coin and Start to start a game but they also reset the volume.

                                  mituM 1 Reply Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator @ULTRA-MAGNUSS
                                    last edited by mitu

                                    It could be something installed by the Picade script, maybe the driver/program that handles the input via GPIO also executes some additional commands.
                                    What's the name of the Picade controller in EmulationStation ?

                                    U 1 Reply Last reply Reply Quote 0
                                    • U
                                      ULTRA-MAGNUSS @mitu
                                      last edited by

                                      @mitu It's named Keyboard.

                                      mituM 1 Reply Last reply Reply Quote 0
                                      • mituM
                                        mitu Global Moderator @ULTRA-MAGNUSS
                                        last edited by

                                        It's named Keyboard.

                                        Of course it is, what was I thinking.
                                        Looks like the Picade script maps the GPIO inputs to keyboard keys with an overlay, mapping start/coin to buttons Q/W (?). Do you have any other programs capturing the keyboard input and executing commands on inputs (like triggerhappy) ? Is this a new RetroPie installation or you're using an existing image ?

                                        U 1 Reply Last reply Reply Quote 0
                                        • U
                                          ULTRA-MAGNUSS @mitu
                                          last edited by

                                          @mitu I don't have key capturing software. I guess I could download one but I've never used one. I am using an existing image. I would hate to have to rebuild this image due to the amount of work it took to get this build where I want it. I'm going to go bed for now but I will resume my work later in the day. I appreciate your efforts. This is the last thing I have to resolve and my Picade will be complete.

                                          U 1 Reply Last reply Reply Quote 0
                                          • U
                                            ULTRA-MAGNUSS @ULTRA-MAGNUSS
                                            last edited by

                                            @ultra-magnuss I haven't looked at this in a few days. For now I have remapped my buttons to not use the start and coin up button. I leave a putty session open to turn the volume down if someone hits it but I would like to figure out how to fix it. It's not as urgent for now since I have a kind of workaround but I would like to figure this out. I'm sure it's a configuration somewhere but don't know where.

                                            1 Reply Last reply Reply Quote 0
                                            • S SignedUp referenced this topic on
                                            • 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.