x-c1
x-c1 copied to clipboard
Fan service scripts do not work on PI 5 hardware
@pimlie Hello,
Is there any way to get the fan service script to work on PI 5?
https://github.com/Pioreactor/rpi_hardware_pwm/issues/10
https://forums.raspberrypi.com/viewtopic.php?t=367294
I set PWM_CHANNEL to 1 and CHIP to 2 and it still doesn't work. Looks like another kernel problem.
Unfortunately I dont have a RPi5 yet so Im not sure.
Reading the links you mentioned above it seems you have to make sure you are using at least kernel 6.6.22 (ie run rpi-update) and you have to change the PWM_CHIP_PATH to /sys/class/pwm/pwmchip2 and use gpio12 to control the pwm?
I also saw the link to this, my current kernel version is 6.6.20, I have tried to upgrade the kernel a few times without success, both online and offline, I will try again today.
@pimlie
I installed a clash on my Raspberry Pi 5 before I could run rpi-update without problems, which really wasted a lot of my time!
After updating the kernel from 6.6.20 to 6.6.22 the fan started working properly.
As you said, must change the PWM_CHIP_PATH to /sys/class/pwm/pwmchip2