Power on by default

I hate to differ, but this does not solve the issue.

Could you please explain when this script is supposed to run and what it is supposed to do.

I understand that it is setting up the GPIO in BCM (pin alias mode) to basically push the power key.

How is this supposed to power on the Pi when the Pi can’t actively run this code?

Could you please clarify?

S