Controlar volumen en retropie con dos botones conectados a raspberry

https://www.reddit.com/r/RetroPie/comments/axw2js/how_to_control_volume_in_retropie_with_buttons/?utm_medium=android_app&utm_source=share


1. Hacer backup de la tarjeta sd antes de empezar!!

2. Unir un cable de cada boton y conectarlo a GPIO14

3. Los otros cables conectarlos a GPIO 11 y 13

4. En el emulador, presionar F4 para ir a cmd

5. Instalar GPIOnext:

    cd ~

    git clone https://github.com/mholgatem/GPIOnext.git

       bash GPIOnext/install.sh

       Elegir "make a new command"

       Escribir Volume UP

       Dejar presionado el boton correspondiente a volume up

       /usr/bin/amixer -q -c 0 sset PCM 4dB+ unmet no cap

Cuando pregunta para agregar otro comando, responder N

Crear otro comando para Volume DOWN y escribir esto:


/usr/bin/amixer -q -c 0 sset PCM 4dB- unmet no cap

6. Salir del menu

7. Escribir        

    gpionext start     sudo reboot