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: 251msJun 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?
thank you and your help will be much appreciated.