Use pwm-gpio-fan if the fan has a PWM speed control or gpio-fan if it is just on/off.
ok, thanks that also work.
Code:
sudo nano /boot/firmware/config.txtCode:
dtoverlay=pwm-gpio-fan,gpio=18,fan_temp0=50000,fan_temp1=60000,fan_temp2=67500,fan_temp3=75000then save and reboot RPI5
fan turns-on when temperature is over 50°C otherwise it is stopped
Statistics: Posted by ao0 — Sun Sep 14, 2025 8:42 pm