ARpiCADE_5 - for Pi4 or Pi5
Moderator: dee2eR
Re: ARpiCADE_5 - for Pi4 or Pi5
That segfault is indeed the issue, that said I'm not sure why MAME would sometimes segfault and sometimes load fine... (possibly a 251 thing?). I know at least one game that segfaults after starting in 251 but it runs long enough I didn't see this sort of behaviour with the hotkeys (said game seems to be fine in 269).
I'm guessing it's also the cause of your extra xboxdrv(s). If MAME segfaults prior to the driver starting after the sleep the hotkeys won't be stopped as they are not yet up and running when the hotkeys stop command is issued in the launcher script - so you end up with extra instances.
I could slow down the return to the menu after MAME and stop the hotkeys a bit later in the script. Hopefully that way if MAME crashed during startup there would be time for the hotkeys to start before the attempt to stop them again.
I'm guessing it's also the cause of your extra xboxdrv(s). If MAME segfaults prior to the driver starting after the sleep the hotkeys won't be stopped as they are not yet up and running when the hotkeys stop command is issued in the launcher script - so you end up with extra instances.
I could slow down the return to the menu after MAME and stop the hotkeys a bit later in the script. Hopefully that way if MAME crashed during startup there would be time for the hotkeys to start before the attempt to stop them again.
Re: ARpiCADE_5 - for Pi4 or Pi5
269 has the same issue, first few games work fine with correct controls, then one of the games fails to load on the first go (segmentation fault) and the controls are screwed up for every game thereafter.
Re: ARpiCADE_5 - for Pi4 or Pi5
@mappy24 can you try adding a sleep for the hotkeys stop in /usr/local/bin/hotkeys and replort back - something like
It may be worth matching the sleep timer on the start up, but a little less is probably fine too. Hopefully it helps actually stop the hotkeys when something goes wrong launching MAME.
Code: Select all
if [ $1 == stop ]; then
sleep 4
sudo killall xboxdrv
fi
- cool_factor
- Legendary Contributor

- Posts: 409
- Joined: Tue Sep 26, 2017 10:55 am
- Location: Fort Worth TX
Re: ARpiCADE_5 - for Pi4 or Pi5
Out of curiosity are these joysticks USB or JAMMA wired? Not even sure if this would cause the issues, just throwing out ideas...
Re: ARpiCADE_5 - for Pi4 or Pi5
Code: Select all
if [ $1 == stop ]; then
sleep 4
sudo killall xboxdrv
# sudo rm /dev/input/js2
# sudo rm /dev/input/event3
# rm /tmp/tmpHK.txt
fiGames still frequently fail to load on the first attempt but at least the controls appear to function now.
All JAMMA, no USB.Out of curiosity are these joysticks USB or JAMMA wired? Not even sure if this would cause the issues, just throwing out ideas...
Re: ARpiCADE_5 - for Pi4 or Pi5
The controls issue is resolved with that last bit of code you posted. Thanks!!!
Re: ARpiCADE_5 - for Pi4 or Pi5
Awesome. Glad thats working at least.
Re: ARpiCADE_5 - for Pi4 or Pi5
Testiment to arpicade, I have 4 MiSTers, 2 setups of PC with JPAC and heaps of unreliable jamma boards, I come back to my cabs after 3 years, guess which one works like a champ? Arpicade Pi 3b+.
So got excited and got a Pi 5, however MAME .172 buttons are not working. Player one start button doesnt work, player 2 does work but then player two direction buttons dont work. I didnt try any other MAME versions I have installed the update for controls in the first post but I think thats for more recent MAME. Retroarch cores work without a hitch.
Thanks dee2er, might get a couple more arpicades for the Pi 5
really appreciate you are still supporting the HW.
btw is it possible in future to add runahead options for the older consoles like NES, SNES etc.
So got excited and got a Pi 5, however MAME .172 buttons are not working. Player one start button doesnt work, player 2 does work but then player two direction buttons dont work. I didnt try any other MAME versions I have installed the update for controls in the first post but I think thats for more recent MAME. Retroarch cores work without a hitch.
Thanks dee2er, might get a couple more arpicades for the Pi 5
btw is it possible in future to add runahead options for the older consoles like NES, SNES etc.
Re: ARpiCADE_5 - for Pi4 or Pi5
Just tried out the Pi5 build with mame .269 really good, few things on wishlist and questions:
1. MAME .269 updater does not create a mame-269 folder in the boot partition, might be a good idea to make it do that.
2. Since we have donut dodo and fixit felix, any chance to have this on here as well? https://forum.arcadecontrols.com/index. ... c=134445.0
Love this remake of monaco GP now it runs on Pi4 and I think even Pi5.
3. Any chance to have autosave and autoload enabled on Retroarch or a way to enable it. enabled autosave in .mame269/mame.ini file and it works perfectly.
4. Can we get 3do emulation via 4do? IIRC Pi4 ran 3do fine using Recalbox I am assuming a Pi5 will do just as well.
Questions:
Also any idea why .md file in a zip doesnt launch on arpicade? Tries to launch and drops back to the screen. Changed the extension to bin no difference. Seems like mastersystem roms not launching either... NES working fine.
Also how do I filter out the bin files related to the .gdi file not show on the menu since I just need to see the gdi/cdi?
Is therea simple way to shift the image to the left using config instead of changing the pots on the chassis?
How do I get to the terminal to edit the files using nano? Escape doesnt seem to work... f4 to enter the service mode, again f4 to leave the service mode and get the terminal, any idea how to get the terminal full screen? Hard to read.
Far fetched thoughts:
1. Any chance of a video player so I can watch a longplay on the cab besides me while I play the same game on a different cab, kinda like the good old days though when real people were playing. Good way to learn a game.
2. Since shortcuts work while playing a game, I was wondering if there is a way to reduce the volume after say 2 minutes of no inputs. Attractmode can get really annoying after a while specially for others
3. MAME also emulates consoles like Gakken TV Boy however the roms dont show up. The MAME format for the so called "softwarelist" roms are - mame/roms/ctvboy/mrbomb.zip - vanilla mame menu can pick up the roms, however I know even emulation station doesnt pick it up either. Command to run these games on windows would be "mame ctvboy mrbomb"
Sorry kept adding questions after questions.
Best regards
Another note:
Very odd, some MAME .269 games dont launch and then the next MAME game that will launch will had wrong inputs and for example p1 start + b1 for coin doesnt work... I did run the updater script.
Update: Rainbow Islands crashed it originally triggering others to crash as well, I checked arcadeitalia and realised rbisland.zip also needed cchip.zip, added that fixed the mame crash, seems like when MAME errors out the crash disables the hotkeys like mentioned earlier in the thread, its sorted.
1. MAME .269 updater does not create a mame-269 folder in the boot partition, might be a good idea to make it do that.
2. Since we have donut dodo and fixit felix, any chance to have this on here as well? https://forum.arcadecontrols.com/index. ... c=134445.0
Love this remake of monaco GP now it runs on Pi4 and I think even Pi5.
3. Any chance to have autosave and autoload enabled on Retroarch or a way to enable it. enabled autosave in .mame269/mame.ini file and it works perfectly.
4. Can we get 3do emulation via 4do? IIRC Pi4 ran 3do fine using Recalbox I am assuming a Pi5 will do just as well.
Questions:
Also any idea why .md file in a zip doesnt launch on arpicade? Tries to launch and drops back to the screen. Changed the extension to bin no difference. Seems like mastersystem roms not launching either... NES working fine.
Also how do I filter out the bin files related to the .gdi file not show on the menu since I just need to see the gdi/cdi?
Is therea simple way to shift the image to the left using config instead of changing the pots on the chassis?
How do I get to the terminal to edit the files using nano? Escape doesnt seem to work... f4 to enter the service mode, again f4 to leave the service mode and get the terminal, any idea how to get the terminal full screen? Hard to read.
Far fetched thoughts:
1. Any chance of a video player so I can watch a longplay on the cab besides me while I play the same game on a different cab, kinda like the good old days though when real people were playing. Good way to learn a game.
2. Since shortcuts work while playing a game, I was wondering if there is a way to reduce the volume after say 2 minutes of no inputs. Attractmode can get really annoying after a while specially for others
3. MAME also emulates consoles like Gakken TV Boy however the roms dont show up. The MAME format for the so called "softwarelist" roms are - mame/roms/ctvboy/mrbomb.zip - vanilla mame menu can pick up the roms, however I know even emulation station doesnt pick it up either. Command to run these games on windows would be "mame ctvboy mrbomb"
Sorry kept adding questions after questions.
Best regards
Another note:
Very odd, some MAME .269 games dont launch and then the next MAME game that will launch will had wrong inputs and for example p1 start + b1 for coin doesnt work... I did run the updater script.
Update: Rainbow Islands crashed it originally triggering others to crash as well, I checked arcadeitalia and realised rbisland.zip also needed cchip.zip, added that fixed the mame crash, seems like when MAME errors out the crash disables the hotkeys like mentioned earlier in the thread, its sorted.



