I’m making a RetroPie for a friend and I want to make it as user friend as possible (i.e no console commands or keyboards needed, just a controller and the Pi).
He should be able to walk up press a button and the Pi will wake/boot and vice versa to shutdown/turnoff.
I know things like PowerBlock/ControlBlock exist but if I can do this with a simple button then that’s much easier and cheaper.
Two Options I see:
1) Toggle Power – setup a switch to toggle power to the Pi (I’m trying to think of solution to do this safely without damaging the SD card with an abrupt power off. I could make a little circuit to toggle power and send a interrupt to a GPIO pin switch would trigger a Python script (basically what the PowerBlock does)
2) Halt/Resume CPU Processes – I could write a script for a GPIO interrupt with a momentary button that simply exits EmulationStation (if it hasn’t already) and run a sudo halt, then wait for the same GPIO interrupt to wake the Pi.
Has anyone heard or had success themselves doing this?
It seems like an easy idea but I’m not sure if I need things like pull-up/pull-down resistors or even some basic power diodes to make this work.