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

    Volume buttons on arcade control panel

    Scheduled Pinned Locked Moved Help and Support
    volume controlvolumearcade controlsretropie 4.1newb
    2 Posts 2 Posters 2.0k 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
      cif140
      last edited by cif140

      Hello. I have an arcade cabinet build with xarcade diy controls and the latest version of retropie. I'm trying to figure a way to control volume using individual volume up and volume down buttons on the control panel without having to press a hot key with it.

      I've tried to set it up in retro arch, but it only functions if I use it as with a hot key. My goal is to make the cabinet as user friendly as possible so anyone will to be able to come up and easily know how to use it.

      Any help on how I can set this up would be greatly appreciated!

      FYI I'm very inexperienced with all of this. I've learned what I can on my own in the last couple of weeks.

      Pi Model: 3/B +
      RetroPie Version Used: 4.1
      Built From: Pre made SD Image on RetroPie website
      USB Devices connected: wifi dongle, keyboard, xarcade controls
      Controller used: diy 2player xarcade
      Error messages received:n/a
      Log found in /dev/shm/runcommand.log (if relevant):
      Guide used: n/a
      File: used retroarch
      Emulator: all
      Attachment of config files: n/a
      How to replicate the problem: n/a

      Z 1 Reply Last reply Reply Quote 0
      • Z
        Zigurana @cif140
        last edited by

        @cif140
        I've set this up using the buttons on a logitec s-150 usb sound card+amp+speakers. To the pi, it registers as two devices a sound card, and a HID keyboard.
        Anyways, I used triggerhappy (or its deamon: thd) to listen to specific keypresses (it has a mode to just show the presses it detects, so you can find out easily depending on your HW).
        This then triggers one of three scripts for volume up, down or mute toggle.
        These scripts first perform the alsa command, then play a sound to reflect the current sound volume.

        This all starts at system startup, and is completely independent from RetroArch.

        I can post the scripts if you're interested, and when I'm back at a proper computer.

        If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

        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.