I have a Raspberry Pi 3 in an Argon One case on my 3D printer, that I use solely for the purpose of running Octoprint.
Occasionally, the Pi has the power cut to it. Whether it’s down to my own negligence, or the frequent power cuts inherit with living in the countryside. Usually I forget to turn it back on, and am then presented with ‘host not found’ confusion some days later.
Since I’m using the Argon One case for it, I have the ability to manage the power slightly more effectively than a bare Pi. Using I2C commands, the controller can be configured to power up the Pi when power is returned.
Using raspi-config, go into Interface Options and enable I2C support.
Now, it’s just a case of running the following command to enable ‘Mode 2’, which is ‘always on’
sudo i2cset -y 1 0x01a 0xfe
Many thanks to https://mgdm.net/ for the pointers to this functionality.