# Pironman 5 GPIO fans not controlled from 6.6.45 kernel

**URL:** <https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570>\
**Category:** General\
**Created:** [August 29, 2024, 10:41am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570 "2024-08-29T10:41:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![markvd](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/markvd/32/745_2.png) [@markvd](https://forum.sunfounder.com/u/markvd)\
**Post date:** [August 29, 2024, 10:41am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/1 "2024-08-29T10:41:18Z")

</div>

With `rpi-update`, from kernel 6.6.45 (commit `39f724da259ac1930ed38a1b9a7b1f96cff76963`), the GPIO fans are not controlled anymore and stay on permanently.

The last working commit is 6.6.44, `44a287fe97c04506841fe3b3e794c70a2e01c7de`

Due to medical issues I’m not able to dive into the cause for this. So hopefully someone is willing to pick this up.

if people have these problems, they can switch to the commit mentioned to get the GPIO fans to work again until it gets fixed:

`rpi-update 44a287fe97c04506841fe3b3e794c70a2e01c7de`

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [August 30, 2024, 3:47am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/2 "2024-08-30T03:47:24Z")

</div>

1.If you are saying that the RGB fans continue to work when the PI5 is turned off, you need to configure the shutdown to deactivate the GPIO power. The RGB fans will only stop working after the PI5 is shut down. Please refer to the tutorial: [Set Up on Raspberry Pi/Ubuntu/Kali/Homebridge OS.](https://docs.sunfounder.com/projects/pironman5/en/latest/set_up/set_up_rpi_os.html) Remember, the configuration will only take effect after restarting the PI5.  
2.If you are using commands to control the RGB fans, please follow the instructions in this tutorial: [Control with Commands](https://docs.sunfounder.com/projects/pironman5/en/latest/control/control_with_commands.html#cc-control-fan). Remember that after each modification to the controls, you need to execute the command to restart the pironman5 software service for the changes to take effect. Use the following command:  
sudo systemctl restart pironman5.service

 ![image (38)](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/63dd3cffd811f0b77278b5eafdefe436ad59736a.png)

---

<div class="post-metadata">

**Author:** ![markvd](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/markvd/32/745_2.png) [@markvd](https://forum.sunfounder.com/u/markvd)\
**Post date:** [August 30, 2024, 12:40pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/3 "2024-08-30T12:40:56Z")

</div>

Hi there, yes, I’m aware of these steps (but useful for people new to the topic).

Actually what I’m saying is that with these newer kernel versions the fans stay on no matter what.

---

<div class="post-metadata">

**Author:** ![Weirdyguy](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@Weirdyguy](https://forum.sunfounder.com/u/Weirdyguy)\
**Post date:** [September 3, 2024, 12:40am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/4 "2024-09-03T00:40:18Z")

</div>

Same for me, I didn’t notice before but I saw RGB fan on, cpu is cold and setting in dashboard are set to default. I reinstalled Pironman5 software, same issue.

Have some changes between new kernel and Pironman5? Any update in progress? How can I get back with previous kernel?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [September 3, 2024, 10:23am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/5 "2024-09-03T10:23:23Z")

</div>

What system are you currently using, and what is the version?  
It is possible that after the official system update, the kernel version was also updated, which may have caused the pironman5 software to be partially incompatible.  
Our pironman5 software has not been updated or changed.  
Have you tried other compatible systems?  
It seems that this issue occurs only on a specific system.

---

<div class="post-metadata">

**Author:** ![markvd](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/markvd/32/745_2.png) [@markvd](https://forum.sunfounder.com/u/markvd)\
**Post date:** [September 3, 2024, 11:01am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/6 "2024-09-03T11:01:19Z")

</div>

It occurs on Raspberry Pi OS (the current version which is Debian Bookworm) and happens after running `rpi-update which I described above.

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [September 4, 2024, 8:40am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/7 "2024-09-04T08:40:04Z")

</div>

Currently, you are unable to stop the RGB fan from working regardless of the mode you switch to. This issue may be caused by an update to the system kernel.

Have you updated the Raspberry Pi system kernel yourself?

We have reproduced this issue. When we installed the Pironman 5 software on the kernel version 6.6.31, all functions worked normally. However, when we updated the kernel version to 6.6.47, we encountered the same situation as you. We will work to resolve this issue as soon as possible, appreciate your patient!

We recommend reinstalling the system and then installing our Pironman 5 software to see if it functions correctly.

---

<div class="post-metadata">

**Author:** ![markvd](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/markvd/32/745_2.png) [@markvd](https://forum.sunfounder.com/u/markvd)\
**Post date:** [September 4, 2024, 6:55pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/8 "2024-09-04T18:55:16Z")

</div>

Thank you for your understanding. I appreciate it.

> [@SunFounder\_Moderator](#):
>
> Have you updated the Raspberry Pi system kernel yourself?

No, I am trying to explain to you that the `rpi-update` command will update the kernel to the latest version. Users are not required to do this. But they may choose to do so if they want the latest kernel.

> [@SunFounder\_Moderator](#):
>
> We recommend reinstalling the system and then installing our Pironman 5 software to see if it functions correctly.

No that is not necessary. Look where I explained in my first post:

`rpi-update 44a287fe97c04506841fe3b3e794c70a2e01c7de`

This command will downgrade the kernel to 6.6.44. After this command, GPIO works again. The hash comes from the [rpi-firmware github repository](https://github.com/raspberrypi/rpi-firmware/commits/master/). I tested it myself: this hash is the most recent commit, right before the problem starts to occur.

---

<div class="post-metadata">

**Author:** ![tango](https://avatars.discourse-cdn.com/v4/letter/t/e36b37/32.png) [@tango](https://forum.sunfounder.com/u/tango)\
**Post date:** [September 6, 2024, 10:41pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/9 "2024-09-06T22:41:11Z")

</div>

I had the same issue and this post was very helpful. Thanks

---

<div class="post-metadata">

**Author:** ![Hamilton](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@Hamilton](https://forum.sunfounder.com/u/Hamilton)\
**Post date:** [September 13, 2024, 3:53pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/10 "2024-09-13T15:53:17Z")

</div>

I have the same issue … when can we expect a patch ?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [September 14, 2024, 3:08am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/11 "2024-09-14T03:08:43Z")

</div>

Regarding the issue of not being able to control the RGB fan after updating the kernel, we apologize for the inconvenience. This issue is caused by the gpiozero library.

You can refer to the following link:

> <https://github.com/gpiozero/gpiozero/issues/1166>
>
> Operating system: e.g. RPiOS Bookworm
> Python version: 3.11.2
> Pi model: Pi 5
> …GPIO Zero version: 2.0.1
> Pin factory used: lgpio
> 
> A recent change in the RPi kernel switched the gpiochip number on RPi5 to 0 (see https://github.com/raspberrypi/linux/pull/6144) but gpiozero still uses a hardcoded chip number of 4 on RPi5 (see https://github.com/gpiozero/gpiozero/blob/master/gpiozero/pins/lgpio.py#L66) and thus fails to find the GPIO pin
> 
> \`\`\`
> root@raspberrypi:~# python3
> Python 3.11.2 (main, May 2 2024, 11:59:08) \[GCC 12.2.0\] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> \>\>\> import gpiozero
> \>\>\> b = gpiozero.Button(4)
> /usr/lib/python3/dist-packages/gpiozero/devices.py:295: PinFactoryFallback: Falling back from lgpio: 'can not open gpiochip'
> warnings.warn(
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line 408, in pin
> pin = self.pins\[info\]
> ~~~~~~~~~ ^^^^^^
> KeyError: PinInfo(number=7, name='GPIO4', names=frozenset({'J8:7', 'BCM4', 'GPIO4', 4, 'WPI7', '4', 'BOARD7'}), pull='', row=4, col=1, interfaces=frozenset({'', 'gpio', 'dpi', 'spi', 'uart', 'i2c'}))
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
> File "\<stdin\>", line 1, in \<module\>
> File "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 103, in \_\_call\_\_
> self = super().\_\_call\_\_(\*args, \*\*kwargs)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/gpiozero/input\_devices.py", line 412, in \_\_init\_\_
> super().\_\_init\_\_(
> File "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 417, in \_\_init\_\_
> super().\_\_init\_\_(\*args, \*\*kwargs)
> File "/usr/lib/python3/dist-packages/gpiozero/input\_devices.py", line 162, in \_\_init\_\_
> super().\_\_init\_\_(
> File "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 243, in \_\_init\_\_
> super().\_\_init\_\_(\*args, \*\*kwargs)
> File "/usr/lib/python3/dist-packages/gpiozero/input\_devices.py", line 79, in \_\_init\_\_
> super().\_\_init\_\_(pin, pin\_factory=pin\_factory)
> File "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 549, in \_\_init\_\_
> pin = self.pin\_factory.pin(pin)
> ^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line 410, in pin
> pin = self.pin\_class(self, info)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/gpiozero/pins/rpigpio.py", line 101, in \_\_init\_\_
> GPIO.setup(self.\_number, GPIO.IN, self.GPIO\_PULL\_UPS\[self.\_pull\])
> RuntimeError: Cannot determine SOC peripheral base address
> \`\`\`

The current solution is to execute:

sudo ln -s gpiochip0 /dev/gpiochip4

Then, go to the PC dashboard to control the RGB fan and check the results.

Alternatively, you can downgrade the kernel by executing the following command:

sudo rpi-update 44a287fe97c04506841fe3b3e794c70a2e01c7de

After that, restart your Raspberry Pi 5 and try to control the RGB fan again.

---

<div class="post-metadata">

**Author:** ![duvalljm](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@duvalljm](https://forum.sunfounder.com/u/duvalljm)\
**Post date:** [February 5, 2025, 5:55pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/12 "2025-02-05T17:55:52Z")

</div>

I have same issue. Waiting for patch. I downgraded the kernel but that did not help me. Shutdown behavior remains unchanged.

---

<div class="post-metadata">

**Author:** ![rognas](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rognas](https://forum.sunfounder.com/u/rognas)\
**Post date:** [February 5, 2025, 10:58pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/13 "2025-02-05T22:58:51Z")

</div>

Hi there.  
New to this forum and to this computer type. I’ve tried all of the above and still nothing.  
This is what I get when I try to put in the values:  
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xe5 in position 13: invalid continuation byte

What on earth is this??? This is a fresh install on a SD card that I wish to do and then copy it to my SSD when i’m done… What am I doing wrong??? N00bie here…

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 6, 2025, 8:39am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/14 "2025-02-06T08:39:30Z")

</div>

What system are you using? What is the system kernel version? The problem has been fixed in the latest kernel version of the system. If you are using the latest system and the fan is not controllable, it could be something else.

---

<div class="post-metadata">

**Author:** ![rognas](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rognas](https://forum.sunfounder.com/u/rognas)\
**Post date:** [February 6, 2025, 7:11pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/15 "2025-02-06T19:11:01Z")

</div>

Hi. I’m running raspberry Pi os on a newly installed SD card. But I can’t adjust anything in text mode. Nothing at all is being changed despite my efforts. I’m beginning to think some thing is wrong with my installation. I could back the kernel to the one in this thread above and install Pironman’s software to get the oled going, but that’s all.

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 7, 2025, 7:27am UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/16 "2025-02-07T07:27:01Z")

</div>

Your error message shows an encoding error, please set your system encoding format to utf-8.

---

<div class="post-metadata">

**Author:** ![rognas](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@rognas](https://forum.sunfounder.com/u/rognas)\
**Post date:** [February 8, 2025, 4:42pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/17 "2025-02-08T16:42:31Z")

</div>

Thanks. I noticed that. I was forced to reinstall Raspberry Pi to get everything to work again. Now it’s ok finally. Everything is working just fine. Thanks a lot everyone!

---

<div class="post-metadata">

**Author:** ![CowboySkippy](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@CowboySkippy](https://forum.sunfounder.com/u/CowboySkippy)\
**Post date:** [February 9, 2025, 3:25pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/18 "2025-02-09T15:25:16Z")

</div>

I have experienced the same problems as others report.  
I have seen the Pironman5 RGB fans not illuminate nor spin in the standard configuration.

I posted a new finding at the following link.

> [@Both Pironman5 RGB Fans not (1) illuminating or (2) spinning - Strange Finding](https://forum.sunfounder.com/t/both-pironman5-rgb-fans-not-1-illuminating-or-2-spinning-strange-finding/2597/4):
>
> Attached is a photo showing my modification to the Pironman5 IO boards, Prionman5 fans and RPi GPIO header. See my previous post for an explanation.

I do so because I suspected I could overcome the issue by using a common ground between the Pironman5 IO board and the RGB fans.

I post this reply for completeness and reference.  
I have not attempted any software-based suggestion to resolve the fan issue.

I would be very interested from anyone in the community regarding this finding.

---

<div class="post-metadata">

**Author:** ![Weirdyguy](https://avatars.discourse-cdn.com/v4/letter/w/d78d45/32.png) [@Weirdyguy](https://forum.sunfounder.com/u/Weirdyguy)\
**Post date:** [February 9, 2025, 6:24pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/19 "2025-02-09T18:24:39Z")

</div>

Did you connect RGB fan correctly with good polarity? Did jumper is well plugged?  
[https://docs.sunfounder.com/projects/pironman5/en/latest/advanced/io\_board.html#rgb-fan-pins](https://docs.sunfounder.com/projects/pironman5/en/latest/advanced/io_board.html#rgb-fan-pins)  
Did OLED display work well? Can you access to dashboard?

---

<div class="post-metadata">

**Author:** ![CowboySkippy](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@CowboySkippy](https://forum.sunfounder.com/u/CowboySkippy)\
**Post date:** [February 9, 2025, 8:59pm UTC](https://forum.sunfounder.com/t/pironman-5-gpio-fans-not-controlled-from-6-6-45-kernel/1570/20 "2025-02-09T20:59:57Z")

</div>

Yes, I connected my two RGB fans correctly and with the correct polarity.  
Yes the jumper is well plugged, too.  
Yes, the OLED display works.  
Yes, I can access the dashboard.

The post I created (not this post) includes all of this information.

Thank you for your response!
