• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

how to make volume up and volume down with buttons

Scheduled Pinned Locked Moved Help and Support
volumebuttonscontrolhotkeys
23 Posts 12 Posters 25.7k 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.
  • R
    retroprogrammer
    last edited by 30 Apr 2018, 22:55

    @caver01 How do you do this is their a tutorial any where?

    Here is me converting the original Xbox for a case:
    https://retropie.org.uk/forum/topic/15232/converting-original-xbox-into-case-for-raspberrypi/15
    Check out my GitHub: https://github.com/retro-programmer

    1 Reply Last reply Reply Quote 0
    • D
      DougA
      last edited by 1 May 2018, 01:36

      @retroprogrammer I second that. @caver01 ’s solution looks to be exactly what I am looking for, if only I knew how to do it :-)

      C 1 Reply Last reply 1 May 2018, 03:03 Reply Quote 0
      • Z
        zerojay
        last edited by 1 May 2018, 01:52

        This can probably help you guys with the other end of the solution: https://www.reddit.com/r/RetroPie/comments/777ylv/how_to_map_a_controller_to_soft_reboot_your_system/

        1 Reply Last reply Reply Quote 0
        • C
          caver01 @DougA
          last edited by 1 May 2018, 03:03

          @douga and @retroprogrammer a tutorial does not exactly exist but the process is basically this:

          Wire your buttons to usable GPIO pins, other pole of the switches go to ground. Then, follow instructions here for installing and setting up GPIONext. What you want is to configure buttons as commands which is one of the options.

          There are other ways to do the software, but the basis of this solution is to have some kind of script running, be it python or BASH that detects the button presses and sends the commands. That is what GPIONext does in addition to serving as a driver for game controller input.

          My 4-player cocktail style cabinet built as a custom "roadcase"

          1 Reply Last reply Reply Quote 0
          • C
            Clyde @retroprogrammer
            last edited by 1 May 2018, 04:58

            @retroprogrammer It works fine, abeit only in RetroArch and not in other emulators, as @caver01 mentioned. Since I mostly use RA, it's fine for me.

            As @Lurker said, if your audio signal goes through an amplifier, you'll have to adjust that to a volume that allows a good range of volume via the hotkeys and the maximum volume shouldn't be too much for the speakers. Contrary to @Lurker, I can (and do) adjust the volume to many different levels between full and none, although it requires only the slightest nudge of the joystick to change the volume by several values.

            @caver01's solution is more versatile, but for now I'm too lazy to dive into it and I'm content with RA's hotkeys. :)

            C 1 Reply Last reply 1 May 2018, 16:11 Reply Quote 0
            • C
              caver01 @Clyde
              last edited by 1 May 2018, 16:11

              Although I take my audio signal from the jack, I do run an amplifier--just a cheap thing that came with my USB powered speakers. The key to optimizing the range is to set all of your digital controls, amixer etc, to 100% so you are sending a full signal, then adjusting your amplifier volume to the maximum level without distortion (or the max you are comfortable using). Then, you can leave the amp controls alone and make adjustments digitally.

              With my setup, I can tap the volume buttons or hold them down. I get plenty of granularity based on the underlying commands and I don't feel the need to increase the increment in the command. + or - 1dB seems to be a good setting that allows me to hear subtle changes with each adjustment. In other words, the change is not so small as to be inconveniently slow, and it is not so big so as to feel limiting in terms of incremental change.

              My 4-player cocktail style cabinet built as a custom "roadcase"

              S 1 Reply Last reply 25 Oct 2019, 03:55 Reply Quote 1
              • topic:timeago-later,about a year
              • S
                stazna01 @caver01
                last edited by 25 Oct 2019, 03:55

                @caver01 I realize this thread is a bit old, but any chance you can share how you got holding the button down working with volume? I currently have GPIOnext working great with your volume commands, but it's a one press per command thing. I haven't been able to figure out getting it to run the commands multiple times if I hold the button down.

                O 1 Reply Last reply 31 Jan 2020, 19:39 Reply Quote 0
                • M
                  mark1986 @DougA
                  last edited by 27 Oct 2019, 16:24

                  @DougA I have a pretty similar setup to this, speaker volume is set at a limit which I do not change, i then us retroarch and hotkeys to control the volume (select + joystick up to raise the volume for example)

                  1 Reply Last reply Reply Quote 0
                  • topic:timeago-later,3 months
                  • O
                    ooskay @caver01
                    last edited by 31 Jan 2020, 19:37

                    @caver01 Sir,
                    first of all thanks for the trick! I have two player usb encoder setup. Whatever i did unable to figure out to ran the volume up and down command over GPIO on raspberry pi or from on my joyistic buttons.
                    Would you please share with us in here your used python or shell script or whatever using to up and down the volume with buttons.Thanks

                    C 1 Reply Last reply 4 Feb 2020, 21:05 Reply Quote 0
                    • O
                      ooskay @stazna01
                      last edited by 31 Jan 2020, 19:39

                      @stazna01 Would you please share with us in here your running configuration on the GPIONext? I unable to map my joyistic any button to decreise or increise the volume.Thanks advance..

                      1 Reply Last reply Reply Quote 0
                      • C
                        caver01 @ooskay
                        last edited by 4 Feb 2020, 21:05

                        @ooskay said in how to make volume up and volume down with buttons:

                        @caver01 Sir,
                        first of all thanks for the trick! I have two player usb encoder setup. Whatever i did unable to figure out to ran the volume up and down command over GPIO on raspberry pi or from on my joyistic buttons.
                        Would you please share with us in here your used python or shell script or whatever using to up and down the volume with buttons.Thanks

                        Sorry, I am not near my system to share a config, and at this point I don't even remember how or where to find a config. I simply followed the instructions to setup the software, then added commands via the web interface using the GPIO pins I know I am using.

                        I will add that for a second go-round on a NESPi setup, I simply wrote a Python script to manage GPIO inputs watching for EDGE triggers, then executing commands. If I could do over again, I would not need to use something with the fancy setup and web interface like GPIOnext. Raw Python would work fine.

                        My 4-player cocktail style cabinet built as a custom "roadcase"

                        1 Reply Last reply Reply Quote 0
                        • topic:timeago-later,3 months
                        • F
                          fredbuilder
                          last edited by fredbuilder 15 May 2020, 12:26

                          I have figured out an easy way to change the volume within retroarch configuration. Yes, you will need a game loaded in order to change the volume and this only applies to emulators managed by retroarch but I find it is the best way for me to change the volume in my small arcade cabinet and also my Game Boy zero build.

                          I recorded the process but it is as follows:

                          RetroPie --> retroarch --> Main Menu --> Settings --> Input --> Hotkey binds

                          Then just make sure your binds dont clash with any existing ones, set the control for volume i.e. left/right and save the configuration before quitting retroarch.

                          In game you will be able to control the volume with your controls whilst holding the hotkey (select if you dont have a dedicated hotkey).

                          C 1 Reply Last reply 15 May 2020, 14:01 Reply Quote 3
                          • C
                            Clyde @fredbuilder
                            last edited by Clyde 15 May 2020, 14:01

                            @fredbuilder This was discussed earlier in this thread, but via direct editing of the config file. Thanks for the addition about the GUI and for the video. Nice handheld. 🤩

                            1 Reply Last reply Reply Quote 0
                            20 out of 23
                            • First post
                              20/23
                              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.

                              This community forum collects and processes your personal information.
                              consent.not_received