Problems with install of software Pi5 SATA HAT Top Board

Hello, Im running Rpi5 with Ubuntu V25 and I have similar issue. Fan goes 100% evena fter the shutdown command, I have no OLED whatsoever.
However Im at the very beginning of Linux journey, so I will need more simplified help.
I did all upgrade, no updates available at the moment

sudo systemctl status rockpi-penta.service
○ rockpi-penta.service - Rockpi SATA Hat
Loaded: loaded (/usr/lib/systemd/system/rockpi-penta.service; enabled; preset: enabled)
Active: inactive (dead) since Wed 2025-06-04 00:01:37 CEST; 8min ago
Duration: 1.003s
Invocation: f11092d7840d43a4a1a31edc385ba14c
Main PID: 1546 (code=exited, status=0/SUCCESS)
CPU: 251ms

Jun 04 00:01:37 pi python3[1546]: File “/usr/bin/rockpi-penta/fan.py”, line 101, in running
Jun 04 00:01:37 pi python3[1546]: pin = Gpio(0.025)
Jun 04 00:01:37 pi python3[1546]: File “/usr/bin/rockpi-penta/fan.py”, line 58, in init
Jun 04 00:01:37 pi python3[1546]: self.line = gpiod.Chip(os.environ[‘FAN_CHIP’]).get_line(int(os.environ[‘FAN_LINE’>
Jun 04 00:01:37 pi python3[1546]: ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
Jun 04 00:01:37 pi python3[1546]: File “/usr/lib/python3/dist-packages/gpiod/chip.py”, line 58, in init
Jun 04 00:01:37 pi python3[1546]: self._chip = _ext.Chip(path)
Jun 04 00:01:37 pi python3[1546]: ~~~~~~~~~^^^^^^
Jun 04 00:01:37 pi python3[1546]: FileNotFoundError: [Errno 2] No such file or directory
Jun 04 00:01:37 pi systemd[1]: rockpi-penta.service: Deactivated successfully.

For instance. “/usr/bin/rockpi-penta/fan.py”, line 58, is in my case

self.line = gpiod.Chip(os.environ[‘FAN_CHIP’]).get_line(int(os.environ[‘FAN_LINE’]))

Did I get it right that I need to replace the line with line

self.line = gpiod.Chip(‘0’).get_line(int(os.environ[‘FAN_LINE’]))

If yes, then how? sudo nano?
what about the other errors. like row 58 in Chip.py. how this should be fixed? in a same manner and fan.py?
And the last bit, Im bit confused about what the first error means on line 101. It says running, so is it an error? :slight_smile:
thank you and your help will be much appreciated.

There is no way to control what happens after the shutdown, depending on the default configuration of the soc.

It seems that ubuntu does not have a software connection from /dev/gpiochip0 to /dev/gpiochip4 configured, which may cause problems. It is recommended to use the official Raspberry PI system.

I was trying to work on it and maybe I, or more precisely, ChatGPT is up to something.
this is pure speculation, as I dont know python at all, so please do take it with shovel of salt :slight_smile:

Maybe it is because the program is written for gpiod library v1.x, but I have the the latest version 2.x. Chatgpt claims that the API changed and thus gpiod library doesn know how to handle get line.

Can someone who actually knows python confirm this?

If proven correct, options are to rewrite whole code for the new API, or use python’s virtual environment and downgrade that library to 1.x

You’re right. I did encounter this problem during the process of using the latest ubuntu, and downgrade gpiod is a very difficult thing. It requires the python version to be less than 3.12. Even the third-party library Adafruit we use has this problem. So this problem is difficult to solve in a short time. You can only roll back to a lower version of ubuntu.

https://packages.debian.org/bookworm/python3-libgpiod

We have already planned to refactor the entire program, but this cannot be accomplished in a short period of time.

Thank you Shawn for reply. It isn’t a reply I was hoping for, but it is what it is. I’ll disconnect the board for now and wait for an update.
Out of curiosity, could a community assist somehow with refactoring the app and thus help to expedite the update?