树莓派5 风扇默认是温度控制50度才开始转。
1、我们可以通过配置文件修改控制通电常转。
内存卡接读卡器插上电脑打开boot盘符下的“config.txt”文件
或者使用远程ssh输入
sudo nano /boot/firmware/config.txt
打开后,在最后添加
dtparam=cooling_fan=on
dtparam=fan_temp3=36000,fan_temp3_hyst=5000,fan_temp3_speed=255
设置上电常转。
2、如果想要控制其他温度就可以转,根据温度实现转速,可以添加
dtparam=cooling_fan=on
dtparam=fan_temp0=36000,fan_temp0_hyst=2000,fan_temp0_speed=90
dtparam=fan_temp1=40000,fan_temp1_hyst=3000,fan_temp1_speed=150
dtparam=fan_temp2=52000,fan_temp2_hyst=4000,fan_temp2_speed=200
dtparam=fan_temp3=58000,fan_temp3_hyst=5000,fan_temp3_speed=255
配置说明
#fan_temp0/1/2/3 表示温度(360000表示36℃)
#fan_temp0/1/2/3_speed 表示对应的转速(值最大255)
#fan_temp0/1/2/3_hyst 表示迟滞温度