I am trying to make sure my fan turns off when I power off my raspberry pi (without having to unplug it). My fan is connected to the 3.3V pin. I didn't connect it to the 5V pin because I deemed the 3.3V was good enough and the noise was less.
I used the following commands in attempt to make sure my fan was off when I powered down my pi:
MAKE_ON_GPIO=1
POWER_OFF_ON_HALT=1
Then I shutdown my pi:
sudo shutdown -h now
Fan is still running though and I have to unplug it from the power adapter to fully turn it off.
Also, does anyone know how I can power my pi back up after shutting it down without need a power button. I am assuming definitely not, but worth a shot to ask!
BTW, I am running ubuntu.
halt
,shutdown
, orpoweroff
commands if you haveWAKE_ON_GPIO=0
*AND*POWER_OFF_ON_HALT=1
. To re-boot, you can momentarily shortGLOBAL_EN
to ground. More details in this old-ish answer, and this Q&A. I don't use a button, but I do have a wire jammed inGLOBAL_EN
via that I "scratch" on a USB housing :) – Seamus May 17 '21 at 07:38