Before this blog, the Rasptendo script works only for RetroPie, arguably the most popular emulation OS for Raspberry Pi. Since a lot of you is asking for Recalbox support, we decided to create a script for it. But before we start, there are just a couple of things that you need to know about Recalbox.
The first thing about Recalbox is that it is created using Buildroot, which makes it very minimal – which also makes it a little low with nice features such as the Debian’s* package management tool apt. The original script uses GPIOZero, a nice and easy Python module for controlling the GPIO. It is easily installed using apt. Since Recalbox doesn’t have this, this script won’t use the GPIOZero. The reason why we wanted to use GPIOZero instead of the “lower level” RPi.GPIO module is that because we wanted you to “hack” your Rasptendo. You can see the Python script at
/opt/Rasptendo/halt_wake.py in your RetroPie. Feel free to do some configuration but make sure you know what you’re doing.
Secondly, Recalbox’s support for GPIO3 as a power button doesn’t work the same as much as typical Raspberry Pi OS. It doesn’t allow holding which means it shuts down your Pi simultaneously once you press it. But enough of the talking, here’s your script for Recalbox. (Remember to connect your Recalbox to the internet)
wget --no-check-certificate -O - "https://raw.githubusercontent.com/Argon40Tech/Super-Rasptendo-Case-Power-Switch/master/recalbox_install.sh" | bash
Don’t worry if the script runs too fast, it does what it does, but the script does not make use of GPIOZero (takes a little time to download) in exchange for a little more complicated Python script.
(*Note: Raspbian is Debian-based and RetroPie is built on top of Raspbian which makes RetroPie a “Debian-based operating system”)