I have some strange behaviour with the RGB case fans. When the pi is starting up, the RGB case fans will spin up. Once raspiOS has started, the fans stop. If I shut the pi down, the case fans spin UP again and stay on. The only way then to stop them is to pull the power. I can control the fans using the “sudo pironman5 -gm 0/1/2/3 or 4” command. I’ve got it set to mode 3 - balanced.
I’ve confirmed and made sure the “POWER_OFF_ON_HALT=1” is set. When I shut it down, the OLED screen does go off, but the case fans that were off when the OS is running, suddenly spin up and stay on.
I checked the cables to the fans, swapped the + / - wires to see if that did anything, it didn’t. I saw another post about downgrading the kernel, which I did. Down to v6.6.44-v8-16k+, but the issue remained. Now back running kernel 6.6.63-v8-16k+.
Just not sure why if the OLED screen does turn off, suggesting the power rail is disabled, why do the case fans suddenly turn on when the pi shutdown, even if they weren’t running before. It’s like there’s a default state of ON until the OS boots and the conf setting takes over, but I can’t figure where or how that’s controlled.
Thanks
What system are you currently using, and what is the system version?
If the fan continues to operate after the PI5 is shut down, please edit the configuration file with the following command:
sudo rpi-eeprom-config -e
POWER_OFF_ON_HALT=1
Save and exit, then reboot the PI5 for the changes to take effect.
After safely shutting down the Pironman 5, the GPIO of the PI5 will turn off, and the fan will stop working. The fan will only operate normally when you start the Pironman 5 again.
If you encounter any issues, please provide a video of the problem so we can assist you in analyzing and resolving it.
I have never managed to get this case to function as expected, no matter what I have tried.
The POWER_OFF_ON_HALT=1 is set but appears to do nothing.
To list the behaviour, this is what happens:
- the POWER_OFF_ON_HALT=1 is set
- As soon as the case gets power, it turns itself on
- Once the OS loads the case fans stop spinning and the OLED screen stays on
- I push the power button and the power options menu appears
- I select Shutdown
- The pi eventually shuts down, but, the OLED screen turns off but now the case fans turn ON and forever stay on
I can find any physical reason to explain this behavior and I have checked multiple times that the POWER_OFF_ON_HALT is set to =1
So, 1) Should the case power itself up the moment it receives power from a power strip or should it wait until I press the power button on the case? and 2) If the conf is set as described, why do the case fans turn ON when the unit is shutdown and never turn off but when the system is on and running they stay OFF
Update the kernel with sudo rpi-update and reboot. Should fix it.
Thanks for the suggestion. It’s now running 6.12.16-v8-16k+ aarch64. But unfortunately the problem remains. Writing this, the case fans are off, the OLED screen is on. The moment I press the case power button and click Shutdown, the case fans spin up. The onoard red/green LED changes to Red and the pi shuts down but the fans never stop spinning. When powering on the moment the OS loads, the do then stop spinning.
It’s running Raspberry Pi OS
I don’t know what to say, normally it solve this issue. Everything else work fine but when you turn it off, RGB fans stay on. OS freshly install and fully updated, sudo apt-get update && sudo apt full-upgrade, kernel up-to-date, system rebooted and then Pironman5 software installed and reboot. Issue still there even with POWER_OFF_ON_HALT=1?
Yes. After you verify according to Weirdyguy’s solution, execute the uname -a command and provide us with a screenshot.
If the problem still cannot be solved after verification, it may be that there is a problem with the IO expansion board. We will reissue you a new IO expansion board.
Yes, please follow Weirdyguy’s solution and execute the uname -a
command. Kindly provide us with a screenshot of the output.
If the issue persists after verification, it may indicate a problem with the IO expansion board. In that case, we will arrange to send you a replacement IO expansion board.
That is all correct. I’ve updated everything, everything listed is installed. I can’t patch any higher at the moment, but the issue remains. The moment the system shuts down, the fans spin up and never turn off.

please contact service@sunfounder.com. We will send you a IO board.