2

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.

beeeZeee
  • 23
  • 1
  • 3

2 Answers2

5

Going by this: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md

MAKE_ON_GPIO=1

Should be:

WAKE_ON_GPIO=0
^ W not M    ^ 0 not 1

and you must also set:

POWER_OFF_ON_HALT=1  

Both of these parameters must be set to disable the 3V3 supply on halt, shutdown or poweroff.

Also, you did not say how you "used the following commands" but if you just entered them as environment variables or something that won't work; you need to edit the bootloader config in the EEPROM. There are instructions on the page linked above.

Seamus
  • 23,558
  • 5
  • 42
  • 83
goldilocks
  • 60,325
  • 17
  • 117
  • 234
3

While I think powering a fan from 3.3V is a bad idea (it is easy enough to power from 5V and use a transistor to control it) the settings you are using are mutually incompatible.

You can not have power off and WAKE_ON_GPIO=1

POWER_OFF_ON_HALT=1 turns off the PMIC and removes all power except 5V

Milliways
  • 62,573
  • 32
  • 113
  • 225