# RGB/GPIO Fans not working. Pironman5 on Ubuntu Server 25.04

**URL:** <https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409>\
**Category:** General\
**Created:** [June 21, 2025, 11:29pm UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409 "2025-06-21T23:29:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![MafiaCoconut](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MafiaCoconut](https://forum.sunfounder.com/u/MafiaCoconut)\
**Post date:** [June 21, 2025, 11:29pm UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/1 "2025-06-21T23:29:38Z")

</div>

If someone have problems with not working RGB Fans / GPIO Fans, i found a decision

If you have these logs in `fan_control`

```auto
25/06/21 22:12:38.318 [ERROR] GPIO Fan init error: 'GPIO busy'
25/06/21 22:12:38.319 [WARNING] GPIO Fan init failed, disable gpio_fan control

```

You can create a service that will reserve the necessary fan pins before launching the pironman5 service, so they will work for you, but you will not be able to control them. But at least the cooling will work.

1. 

```sh
sudo apt install python3-lgpio

```

1. 

```sh
sudo nano /usr/local/bin/hold_gpio6.py

```

1. Then write this script inside file

```sh
#!/usr/bin/python3
import lgpio, time

h = lgpio.gpiochip_open(0)
lgpio.gpio_claim_output(h, 6)
lgpio.gpio_write(h, 6, 1)
try:
    while True:
        time.sleep(3600)
except KeyboardInterrupt:
    pass

```

1. Press

```auto
ctrl+x, Y, enter

```

1. 

```sh
sudo chmod +x /usr/local/bin/hold_gpio6.py

```

1. 

```sh
sudo nano /etc/systemd/system/hold-gpio6.service

```

1. Write this in file

```sh
[Unit]
Description=Hold GPIO6 high via lgpio
Before=pironman5.service
After=multi-user.target

[Service]
ExecStart=/usr/local/bin/hold_gpio6.py
Restart=always

[Install]
WantedBy=multi-user.target

```

1. 

```sh
sudo systemctl daemon-reload
sudo systemctl enable --now hold-gpio6.service

```

Then you need reboot your Raspberry Pi 5

I hope this helps you.))

it took me 5 hours to figure out how to do this…

---

<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:** [June 23, 2025, 6:38am UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/2 "2025-06-23T06:38:43Z")

</div>

We conducted verification tests using the Ubuntu Server 25.04 system you provided, and the installation of the Pironman5 software was successful. All functions of the case are working as expected.

1. Please confirm if there were any error messages during the installation of the Pironman5 software. If so, kindly provide screenshots of the errors for our analysis.
2. Once you successfully install the Pironman5 software and start the system, the software will automatically launch without needing to manually start the service.
3. We accessed the dashboard using Google Chrome.
4. Is your RGB fan correctly connected to the FAN pins on the IO expansion board? The red wire should connect to the “+” terminal, and the black wire should connect to the “-” terminal.
5. We recommend reinstalling the system and then installing the Pironman5 software to see if it resolves the issue. You may also choose another compatible system to verify the results.

If other users encounter this problem, they can follow MafiaCoconut’s solution to see if it resolves the issue. We have not been able to reproduce this problem; following the correct installation process for the Pironman5 software, all functions are working as expected.

---

<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:** [June 23, 2025, 6:41am UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/3 "2025-06-23T06:41:09Z")

</div>

![image (64)](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/c/cb508ca4c0c95f64db426dc5abab2a0b378a2e0b.png)  
 ![1AFFEB2E-58DB-430d-8A89-4CDCA9660A6D](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/f/f674ee676cae211622180d625e5553b82622c519.png)  
 ![64853A31-CDE2-4be6-BDD0-772C4E77DFEC](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/8/8d99a5d700c6b8bc511e1b51f32d152af7bf9a2b.png)  
 ![8ED49AB9-AE07-42a5-B839-184C06DA9B11](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/d/d10d0d5b7ffec528e17c036985cecd029bae941c.png)  
 ![A584ECCD-6BCB-4fe0-82F6-09DDDEBC6436](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/1/139c954591ab8c92e4b62222fbb2e15fcd54eb38.png)  
 ![909D2361-8FE6-40f6-9B94-7CEA7CC2C7A0](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/8/8517f1bc0cffe25f402ba7170c579168e68707c3.png)  
 ![650A44E0-CF5F-4336-ACC1-5385AAE90527](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/1/1fdfd971f8158629ab0d954dc6fee0044a90a3eb.png)

---

<div class="post-metadata">

**Author:** ![Tete](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tete](https://forum.sunfounder.com/u/Tete)\
**Post date:** [July 21, 2025, 4:50pm UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/4 "2025-07-21T16:50:00Z")

</div>

I don’t understand, I’ve the same problem. Does it work with Ubuntu 25.04?

Thanks

---

<div class="post-metadata">

**Author:** ![MafiaCoconut](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MafiaCoconut](https://forum.sunfounder.com/u/MafiaCoconut)\
**Post date:** [July 21, 2025, 5:03pm UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/5 "2025-07-21T17:03:40Z")

</div>

It was not working for me, so i downgraded my os to ubuntu server 24 and fans works fine, but now dashboard not working after first restart …

---

<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:** [July 22, 2025, 2:09am UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/6 "2025-07-22T02:09:18Z")

</div>

Have you followed the correct tutorial link to install the Pironman5 software?  
[[Setting Up on Raspberry Pi OS/Ubuntu/Kali Linux/Homebridge — SunFounder Pironman 5 documentation](https://docs.sunfounder.com/projects/pironman5/en/latest/pironman5/set_up/set_up_rpi_os.html#downloading-and-installing-the-pironman5-module)]  
Ubuntu 25.04 is also compatible with the Pironman5 software installation and should work properly.  
If you encounter any issues, please provide us with complete screenshots of the installation process and log information, so we can help you analyze and resolve the problem.

---

<div class="post-metadata">

**Author:** ![Tete](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tete](https://forum.sunfounder.com/u/Tete)\
**Post date:** [August 15, 2025, 10:05am UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/7 "2025-08-15T10:05:43Z")

</div>

Je viens de tout réinstaller, avec ubuntu 25.04 desktop.

Les ventilateurs RGB fonctionne soit tout le temps soit jamais, il ne s’adaptent pas en fonction de la température, aucune info n’est apportées par les logs…

Merci de m’aider

---

<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 18, 2025, 5:45am UTC](https://forum.sunfounder.com/t/rgb-gpio-fans-not-working-pironman5-on-ubuntu-server-25-04/3409/8 "2025-08-18T05:45:53Z")

</div>

After successfully installing the software, the RGB fans are set to “Always On” by default. You can use commands to configure the operating modes of the two RGB fans. These modes determine the conditions under which the RGB fans will activate:

4: Quiet - The RGB fans will activate at 70°C.  
3: Balanced - The RGB fans will activate at 67.5°C.  
2: Cool - The RGB fans will activate at 60°C.  
1: Performance - The RGB fans will activate at 50°C.  
0: Always On - The RGB fans will remain on at all times.  
For example:

sudo pironman5 -gm 3

sudo systemctl restart pironman5.service

[https://docs.sunfounder.com/projects/pironman5/en/latest/pironman5/hardware/io\_board.html#rgb-fan-pins](https://docs.sunfounder.com/projects/pironman5/en/latest/pironman5/hardware/io_board.html#rgb-fan-pins)
