fanshim-python icon indicating copy to clipboard operation
fanshim-python copied to clipboard

Fan does not go off if the PI is powered down

Open neilyoung opened this issue 3 years ago • 3 comments

As subject says. I'm having the service running to control the fan, but if I sudo shutdown now the PI powers off, but the fan still roars. Only a complete removal of power from the PI switches off the fan. Is that by design?

neilyoung avatar Apr 01 '21 18:04 neilyoung

I'm getting the same problem, it's probably by design, and I'm unsure if it's a hardware thing or not because it's connected directly to the pins.

But I would also like to see it powering down and the RPI is powered off!

jpmvferreira avatar May 17 '21 19:05 jpmvferreira

This is by design, but you may be able to force it off by asserting a GPIO pin on shutdown.

It'll require a script in /lib/systemd/system-shutdown/gpio-poweroff that looks something like this - https://github.com/pimoroni/clean-shutdown/blob/master/daemon/lib/systemd/system-shutdown/gpio-poweroff

And drop a config file in /etc/cleanshutd.conf with:

poweroff_pin=18

Gadgetoid avatar Feb 14 '22 11:02 Gadgetoid

This is by design, but you may be able to force it off by asserting a GPIO pin on shutdown.

It'll require a script in /lib/systemd/system-shutdown/gpio-poweroff that looks something like this - https://github.com/pimoroni/clean-shutdown/blob/master/daemon/lib/systemd/system-shutdown/gpio-poweroff

And drop a config file in /etc/cleanshutd.conf with:

poweroff_pin=18

I cannot confirm that this solution is working, means 120s after shutdown the fan is still running. Maybe I missed a step. Can you please explain what you mean by "[...] asserting a GPIO pin on shutdown."?

cmonty14 avatar Mar 04 '22 15:03 cmonty14