fan-control-rock5b
fan-control-rock5b copied to clipboard
Fan-control won't start on Rock 5b
Hello,
I'm running Armbian and this software won't start. I'm getting these errors:
$ sudo /usr/sbin/fan-control
pwmchip: 0
gpio: 0
pwm-period: 20000
temp-map:
speed: 0, temp: 20, duty: 8400, duration: 10
speed: 1, temp: 50, duty: 9600, duration: 2
speed: 2, temp: 60, duty: 10800, duration: 2
speed: 3, temp: 70, duty: 16000, duration: 5
Failed to export GPIO, No such file or directory
Failed to export GPIO, No such file or directory
Failed to export GPIO, No such file or directory
Failed to export GPIO, No such file or directory
Failed to export GPIO, No such file or directory
Failed to export GPIO, No such file or directory
Failed to init GPIO
Looking at the source, I think it is trying to access the file /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip0/pwm0/export
(among others.) That directory exists only so far as /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip0
and doesn't contain pwm0.
Listing that directory:
$ ls -al
total 0
drwxr-xr-x 3 root root 0 Jul 10 15:21 .
drwxr-xr-x 3 root root 0 Jul 10 15:21 ..
lrwxrwxrwx 1 root root 0 Jul 10 16:48 device -> ../../../fd8b0010.pwm
--w------- 1 root root 4096 Jul 10 15:21 export
-r--r--r-- 1 root root 4096 Jul 10 16:48 npwm
drwxr-xr-x 2 root root 0 Jul 10 16:48 power
lrwxrwxrwx 1 root root 0 Jul 10 15:21 subsystem -> ../../../../../class/pwm
-rw-r--r-- 1 root root 4096 Jul 10 15:21 uevent
--w------- 1 root root 4096 Jul 10 15:21 unexport
I'm using Armbian Bookworm, Minimal CLI which includes no firmware installed automatically. So, could I be missing required firmware? Or, could the needed file be elsewhere?
Thanks, Richard
Try this?
https://github.com/radxa/kernel/issues/88#issuecomment-1508267224
Thank you. I tried
echo step_wise | sudo tee /sys/class/thermal/thermal_zone0/policy
and can't see any change. I'm guessing that the kernal has absorbed control of the fan and that's why I don't see the expected files within /sys/devices/platform/fd8b0010.pwm/pwm/pwmchip0
.
Any advice is appreciated.
Richard