x-c1 icon indicating copy to clipboard operation
x-c1 copied to clipboard

Fan service scripts do not work on PI 5 hardware

Open geekworm-com opened this issue 1 year ago • 4 comments

@pimlie Hello,

Is there any way to get the fan service script to work on PI 5?

geekworm-com avatar Mar 22 '24 12:03 geekworm-com

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.

geekworm-com avatar Mar 22 '24 13:03 geekworm-com

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?

pimlie avatar Mar 22 '24 16:03 pimlie

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.

geekworm-com avatar Mar 23 '24 03:03 geekworm-com

@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

geekworm-com avatar Mar 23 '24 10:03 geekworm-com