How To Setup Reset Button For Retropie
-
Hey guys, does any one know how to setup a reset button, that backs you out of a emulator, I am not the best with python :-)
-
Look in the pinned Useful topics thread, there are a few variations for shutdown scripts, and some of them have a code block that stop the currently running emulator.
-
@mitu okay thanks for like the quickest reply
-
@mitu Which one is it, I am making this for my other topic here:
https://retropie.org.uk/forum/topic/15232/converting-original-xbox-into-case-for-raspberrypi/6 -
@mitu which one is the link to setup reset button for Retropie?
-
@retroprogrammer I think @mitu was referring to the threads describing the use of Powerblock and Mausberry Cirucits. These are complete power switch hardware solutions, but the software configuration insights are applicable. Basically, you could setup a switch on a GPIO pin that would trigger a soft shutdown command. The Mausberry thread goes to great lengths to improve the shutdown by gracefully exiting emulators and saving ES metadata.
To get a switch working on GPIO, I would take a look at mholgatem's GPIOnext software on Github. This solution is aimed at using GPIO for arcade controls, but I have used his software to trigger shutdown commands, volume up and down commands.
-
-
@retroprogrammer No problem. The switch issue on Raspberry Pi is a need for everyone, not just RetroPie users. So, you can google the idea and find all kinds of examples of people using a simple momentary switch to short a GPIO pin to ground with examples of their custom scripts to monitor for that event. In most cases, examples in include a shutdown command, and that would be enough to do a soft shutdown or reboot. However, it is this command that you could replace with something more retropie-specific found in the threads here.
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.