If you want to use this script on a cabinet with the sliding, momentary, volume switch (returns to middle state and only allows you to touch up or down). Simply change one line of code. You will lose middle volume, so set the high and low volume in your config to something you are happy with, for example on my gen3 sf2 partycade I chose 65 for low and 78 for high here is the block of code to change: if pinMinState == False and pinMaxState == True and currentVolume != volLow: newVolume = volLow elif pinMinState == True and pinMaxState == False and currentVolume != volHigh: newVolume = volHigh elif pinMinState == True and pinMaxState == True and currentVolume != volMid: newVolume = currentVolume change the last line from "newVolume = volMid" to "newVolume = currentVolume" as shown above. This way it won't reset itself to middle volume every time you adjust it. The caveat again being just two volume levels. edit: I'm using a pi4 as an example and have wires red, white, and blue on switch. (Red is center wire on switch so it is ground, white is volup (high) and blue is voldown (low). these wires likely swap on the connector and you will likely need to use GPIO 14 (red), 16, and 18 (white)
Prob with this setup is that if you have a power outage or surge...anything that resets the power in your home, your arcade will turn on by its self as soon as your electric is restored.
Power switch worked like a charm on my 3B+, but volume switch seems to do nothing. I ran continuity tests on the switch prior to plugging into the Pi, and it looked ok. My volume is through the headphone jack with AudioCard=Default and Device=Headphone. Will that affect anything?
Hi there! im getting this error from putty when running the command: bash: /dev/fd/63: Permission denied pi@retropie:~ $ (23) Failed writing body How can i fix that?
Hi. I have a Pi4 B 8gb and im still having trouble trying to get the volume mod to work, I have a SF2 Cab Gen 1 however the wires are different color (mines were Black, Brown, Red from the board) I just can't differentiate which wires are the ground. Anyway ive tried various GPIOs from 12,14,16 to 14,16,18 and nothing works on the slider volume. Any ideas?
I had this setup on my Pi4 and it worked flawlessly, I've just upgraded to a Pi5 and am wondering if it will work. I don't want to install the scripts just in case it messes up my newly built image.
I've got a similar issue as well. The volume works but right after you increase the volume getting louder it then reverts back to a softer volume. (using Pi 3B+)
Hi Holly. Thank you so much for this explanation! My arcade1up power switch has 3 wires instead of 2. Do you know what 3 pin numbers you would use in that case for the power switch?
Easier way plug this in your wall outlet and the other to your powerstrip. You can turn off your entire system/machine with just a click of a button. I use it on my modded arcade1up machine. It comes with a wireless remote to power down everything or turn on everything. This is the item name below i got mine from Amazon.
HBN Outdoor Indoor Wireless Remote Control 3-Prong Outlet Weatherproof Heavy Duty 15 A Compact 1 Remote 1 Outlet with Remote 6-inch Cord 100ft Range
Great video! Using the stock features from the Arcade1up cab makes it look a lot better. I seem to have a little hang up on what is being controlled. The button is only the volume on the HDMI volume out put. I am using the headphone output. Is there any way to adjust this?
For anyone whos updated there Pi 4 and has lost this volume control mod this will fix it: edit opt etropie\configs\all\emulationstation\es_settings.cfg then find and edit this line: to this below to get volume control within emulationstation: Next to get the arcade1up switch volume mod to work again type: sudo nano -w /etc/asound.conf then add this line: defaults.pcm.card 1 Ctrl + X out save and reboot
hi. i did this suggestion exactly as instructed and all of my games had no sound. I couldn't delete the conf file so i deleted the command line and got the sound back. any ideas? the sliding volume still doesn't work
I know this is old but is there any script like this but for the newer volume controls mainly the legacy cabinet ones? I tried the other ones on UA-cam but it crashes the retropie image alot on boot up and the volume control never works. I actually got this to work but because it snap back the volume would lower or get higher only to return back to default since it not stuck in place.
I understand Holly no longer comments here but can anyone confirm if after running this script for the power if the power switch needs to be physically removed and rotated so ON & OFF are correct or if this script reverses the switch so it does'nt need to be rotated?
For some reason my SF cab turns off on the ON switch. If I switch OFF it turns on. Did the script work for you as is EliteC64? Otherwise everything else is working. Thank you
@@SupraB007 the script worked exactly how Holly said for me without the need to physically rotate the switch on an SF2 gen 1 cab not legacy cab though.
@@franciscomorciglio3761 After weeks of trial and error I found a solution. You need to do the following: 1. Make sure the firmware is up to date on the pi4 2. Install a program call uhubctl on the pi. Apparently this is the only way to fully control power to the ports. Install instructions can be found here: github.com/mvp/uhubctl 3. Add the usb permission changes as outlined by the uhubctl author here: raspberrypi.stackexchange.com/questions/118656/raspberry-pi4-uhubctl-bash-script-wont-run 4. Add a uhubctl power off command to both the emulationstation section and non emulation station sections of the arcade1up shutdown script 5. Add a uhubctl power on command to the /etc/rc.local file After this all lights power off when switch is flipped...and back on with switch in on position
I know its been a while but is there another place I can put volume pins? My little fan has a pin on 14. Or I guess is there another pin i can put this fan wire on. For the fan I have one one pin 1, and one on 14
@@FlanFanNetwork sure if that's an option, I just don't want to mess around with the Pi 4 thing connectors, I am waiting on my X-men vs Street fighter Arcade 1up to come that I ordered along with all the other stuff to mod it. if you using a button is available I am down with that. Thanks for your help.
Easier way plug this in your wall outlet and the other to your powerstrip. You can turn off your entire system/machine with just a click of a button. I use it on my modded arcade1up machine. It comes with a wireless remote to power down everything or turn on everything. This is the item name below i got mine from Amazon.
HBN Outdoor Indoor Wireless Remote Control 3-Prong Outlet Weatherproof Heavy Duty 15 A Compact 1 Remote 1 Outlet with Remote 6-inch Cord 100ft Range
It’s gonna be using one of these relay switches connected to a GPIO pin on the raspberry pi. tutorials-raspberrypi.com/raspberry-pi-control-relay-switch-via-gpio/
Really awesome. In the past, I had to use a lot of different resources to find this information. Thanks for another great video!
Nice tutorial! Just did mine and it works like a charm! Thank you especially for pointing out the wire swap on the volume plug!
If you want to use this script on a cabinet with the sliding, momentary, volume switch (returns to middle state and only allows you to touch up or down). Simply change one line of code. You will lose middle volume, so set the high and low volume in your config to something you are happy with, for example on my gen3 sf2 partycade I chose 65 for low and 78 for high
here is the block of code to change:
if pinMinState == False and pinMaxState == True and currentVolume != volLow:
newVolume = volLow
elif pinMinState == True and pinMaxState == False and currentVolume != volHigh:
newVolume = volHigh
elif pinMinState == True and pinMaxState == True and currentVolume != volMid:
newVolume = currentVolume
change the last line from "newVolume = volMid" to "newVolume = currentVolume" as shown above. This way it won't reset itself to middle volume every time you adjust it. The caveat again being just two volume levels.
edit:
I'm using a pi4 as an example and have wires red, white, and blue on switch. (Red is center wire on switch so it is ground, white is volup (high) and blue is voldown (low). these wires likely swap on the connector and you will likely need to use GPIO 14 (red), 16, and 18 (white)
how do you change the code? I have the slider volume.
I can follow the video but there's no edit the script it just runs.
Excellent as always!!
Prob with this setup is that if you have a power outage or surge...anything that resets the power in your home, your arcade will turn on by its self as soon as your electric is restored.
Power switch worked like a charm on my 3B+, but volume switch seems to do nothing. I ran continuity tests on the switch prior to plugging into the Pi, and it looked ok. My volume is through the headphone jack with AudioCard=Default and Device=Headphone. Will that affect anything?
Hi there! im getting this error from putty when running the command:
bash: /dev/fd/63: Permission denied
pi@retropie:~ $ (23) Failed writing body
How can i fix that?
Where do I find these cables / adapters?
Hi. I have a Pi4 B 8gb and im still having trouble trying to get the volume mod to work, I have a SF2 Cab Gen 1 however the wires are different color (mines were Black, Brown, Red from the board) I just can't differentiate which wires are the ground. Anyway ive tried various GPIOs from 12,14,16 to 14,16,18 and nothing works on the slider volume. Any ideas?
The on and button off work great but I have an older volume button where it doesn't snap to low medium high. And, because of that, It doesn't work.
I had this setup on my Pi4 and it worked flawlessly, I've just upgraded to a Pi5 and am wondering if it will work. I don't want to install the scripts just in case it messes up my newly built image.
What image are you are using on this video for raspberry pi 3B plus? It show Dig Dug. Love your video thank you. Now I know how to used those buttons.
So close to working. Everything works except moving volume to the left just seems to cut the power or something
I've got a similar issue as well. The volume works but right after you increase the volume getting louder it then reverts back to a softer volume. (using Pi 3B+)
Hi Holly. Thank you so much for this explanation! My arcade1up power switch has 3 wires instead of 2. Do you know what 3 pin numbers you would use in that case for the power switch?
Easier way plug this in your wall outlet and the other to your powerstrip. You can turn off your entire system/machine with just a click of a button. I use it on my modded arcade1up machine. It comes with a wireless remote to power down everything or turn on everything.
This is the item name below i got mine from Amazon.
HBN Outdoor Indoor Wireless Remote Control 3-Prong Outlet Weatherproof Heavy Duty 15 A Compact 1 Remote 1 Outlet with Remote 6-inch Cord 100ft Range
Great video! Using the stock features from the Arcade1up cab makes it look a lot better. I seem to have a little hang up on what is being controlled. The button is only the volume on the HDMI volume out put. I am using the headphone output. Is there any way to adjust this?
For anyone whos updated there Pi 4 and has lost this volume control mod this will fix it:
edit opt
etropie\configs\all\emulationstation\es_settings.cfg then find and edit this line:
to this below to get volume control within emulationstation:
Next to get the arcade1up switch volume mod to work again type:
sudo nano -w /etc/asound.conf
then add this line:
defaults.pcm.card 1
Ctrl + X out save and reboot
hi. i did this suggestion exactly as instructed and all of my games had no sound. I couldn't delete the conf file so i deleted the command line and got the sound back. any ideas? the sliding volume still doesn't work
does not work on pi 4b 2gb, power and volume switches still do nothing and every other tutorial im seeing is for a pi3
I know this is old but is there any script like this but for the newer volume controls mainly the legacy cabinet ones? I tried the other ones on UA-cam but it crashes the retropie image alot on boot up and the volume control never works. I actually got this to work but because it snap back the volume would lower or get higher only to return back to default since it not stuck in place.
there is I just need to find time to make the video. I do have the slider volume control
Or did they came with the Arcade1up?
I understand Holly no longer comments here but can anyone confirm if after running this script for the power if the power switch needs to be physically removed and rotated so ON & OFF are correct or if this script reverses the switch so it does'nt need to be rotated?
Does not need to be rotated. Script works as is
@@FlanFanNetwork Thanks for the reply Holly 😀👍
For some reason my SF cab turns off on the ON switch. If I switch OFF it turns on. Did the script work for you as is EliteC64? Otherwise everything else is working. Thank you
@@SupraB007 the script worked exactly how Holly said for me without the need to physically rotate the switch on an SF2 gen 1 cab not legacy cab though.
Holly, when I turn off the switch my buttons lights stays on. What can I do so they turn off as well?
I have the same problem Francisco...did you find a solution?
@@seanwhite5524 I haven't found anything that helps with this.
@@franciscomorciglio3761 Thanks Francisco...I have a rpi4 with a rampage cab...out if curiousity...do you have a similar setup?
@@seanwhite5524 mine is a SF cab with a rpi4.
@@franciscomorciglio3761 After weeks of trial and error I found a solution. You need to do the following:
1. Make sure the firmware is up to date on the pi4
2. Install a program call uhubctl on the pi. Apparently this is the only way to fully control power to the ports. Install instructions can be found here:
github.com/mvp/uhubctl
3. Add the usb permission changes as outlined by the uhubctl author here:
raspberrypi.stackexchange.com/questions/118656/raspberry-pi4-uhubctl-bash-script-wont-run
4. Add a uhubctl power off command to both the emulationstation section and non emulation station sections of the arcade1up shutdown script
5. Add a uhubctl power on command to the /etc/rc.local file
After this all lights power off when switch is flipped...and back on with switch in on position
Want to use Stock Speakers with the Raspberry
Will this same method work for recalbox?
I know its been a while but is there another place I can put volume pins? My little fan has a pin on 14. Or I guess is there another pin i can put this fan wire on. For the fan I have one one pin 1, and one on 14
If I’m not mistaken any Ground pin on the pie will work. I moved mines to 9 so I could have my volume on 12-14-16
@@DJizLurch thanks mate! Helps a lot
How else can you power down the arcade machine without using this power switch and volume switch? if you can explain or a link somewhere, Thank-you.
What do u want to do? Make it shutdown as a button press instead?
@@FlanFanNetwork sure if that's an option, I just don't want to mess around with the Pi 4 thing connectors, I am waiting on my X-men vs Street fighter Arcade 1up to come that I ordered along with all the other stuff to mod it. if you using a button is available I am down with that. Thanks for your help.
@@FlanFanNetwork I replied to you, waiting for your answer, thanks.
Easier way plug this in your wall outlet and the other to your powerstrip. You can turn off your entire system/machine with just a click of a button. I use it on my modded arcade1up machine. It comes with a wireless remote to power down everything or turn on everything.
This is the item name below i got mine from Amazon.
HBN Outdoor Indoor Wireless Remote Control 3-Prong Outlet Weatherproof Heavy Duty 15 A Compact 1 Remote 1 Outlet with Remote 6-inch Cord 100ft Range
Hi mate will this work for the Pi 4? Would it be the same pins?
Yes
Will this work if I have a Pi 4 in argon one case?
does not appear to, have followed this and buttons still do nothing
Cool., how does the power relay work?
It’s gonna be using one of these relay switches connected to a GPIO pin on the raspberry pi. tutorials-raspberrypi.com/raspberry-pi-control-relay-switch-via-gpio/
@@FlanFanNetwork interesting, thanks for the reply holly!