You can now add an on/off button to your Recalbox. The button can be a push button (also called "momentary switch") or an ON/OFF button.
Connect one pin to the GPIO3 (the fifth gpio from the top left), and the other to the ground on its right (the sixth gpio).
Finally, you must enable button support in the recalbox.conf file by adding one of these lines:
system.power.switch=PIN56ONOFF
for an ON/OFF buttonsystem.power.switch=PIN56PUSH
for a push buttonAnd you have a Recalbox that can be turned off/on with a single button!
There is another option where you can add a reset button and an LED.
In recalbox.conf, add/uncomment (by removing the ; at the beginning of the line) the following line:
system.power.switch=PIN356ONOFFRESET
for an ON/OFF power buttonsystem.power.switch=PIN356PUSHRESET
for a push power buttonTo wire the reset button to the Raspberry Pi GPIO:
The LED is connected to GPIO14 (the eighth gpio) as well as to the ground.
Note that this only works with a push button for reset !
SELECT
> Turn off
normally)SELECT
> Turn off
normally)SELECT
> Restart
)Actually not working on Raspberry Pi 5 (on Recalbox Pulsar 9.2.3) without this fix
Fix for RPi5 (Source : https://forums.raspberrypi.com/viewtopic.php?t=361218) :
Connect to the Recalbox in ssh
mount -o remount,rw /
cd /tmp/
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip uninstall RPi.GPIO
pip install rpi-lgpio
Reboot Recalbox (shutdown -r now)