I have a raspberry pi 4 and 2 5v power sources.
1 of the power source is always on and i would like it to power my pi.
The other one i will be connecting to a 5v to 3v converter and connect it to a gpio so it could turn the pi on and off whenever theres power.
I think i have the turn off figured out by writing a script that listens to the gpio and have it shutdown when the voltage drops.
But how do i have it turn on when the power kicks back in? Is that even possible?
Please try to explain things as layman as possible as i am very new to these kind of stuff. Thanks!
gpio-shutdown
. Now comes the ugly part: the Pi 4 can either stay powered after a shutdown but be able to restart, or it can reduce the power consumption considerably (be essentially off), but it won't be able to restart without a power cycle. – Dmitry Grigoryev Oct 26 '21 at 08:51