I decided to set up my audio router remote control on a Pi 4B with a touch screen. I’ve got the Pi all up and running and my app fired right up, though I still need to get the serial connection working. In any case, I’m wondering if anyone here has built something like this. It lives in a 19" equipment rack, so getting to the back of the enclosure is not really ideal. The enclosure will have a dedicated power supply with 110V in, and internally that will connect to the Pi USB power port.
I want my app to come up automatically when the unit is powered on, since it’s the only thing that will be run on it, and I want to set up a way to gracefully power down the system from the front panel.
How does one do this on a raspberry pi? I’ve seen some hacks where you set up a GPIO switch to power it down, which would initiate a command line shutdown of the system. That’s fine, but it doesn’t address powering the unit on.
I can put whatever I want on the front panel of the rack, so adding a switch or a button isn’t an issue, but I’m not sure how to implement it.