Raspberry Pi 5 users FYI only - this info doesn't apply to any other version or model!
Those '
very smart people' over at Raspberry Pi Ltd. (yep, I'm intentionally being sardonic) have finally made it easier for end-users on the Raspberry Pi 5 to manage their active cooling fan settings and parameters... sort of. After a fashion.
Users can now manage these values via dtparam settings in the /boot/config.txt file - for a list of possibilities see the /boot/overlay/README file. Basically there's 3 options and 4 levels to play with:
Quote:
dtparam=fan_temp0 - Temperature threshold (in millicelcius) for level trigger. When the temp reaches this value it becomes active. e.g. 50000 = 50 degrees Celsuis.
dtparam=fan_temp0_hyst - Temperature hysteresis (in millicelcius) for 1st cooling level. Fan will be active while cooling level is active ± this value.
dtparam=fan_temp0_speed - Fan PWM setting for 1st cooling level [0-255] - 0 = 0% | 255 = 100% - Fan will rotate at this value for the set cooling level.
|
How to implement it? Really easy. Edit the config.txt file by adding something like this:
Code:
## Pi 5 active cooling fan parameters
# Cooling fan on | off
dtparam=cooling_fan=on
# Tepid: 40% fan @ 40'C
dtparam=fan_temp0=40000
dtparam=fan_temp0_hyst=3000
dtparam=fan_temp0_speed=100
# Warm: 60% fan @ 45'C
dtparam=fan_temp1=45000
dtparam=fan_temp1_hyst=4000
dtparam=fan_temp1_speed=150
# Hot: 80% fan @ 55'C
dtparam=fan_temp2=55000
dtparam=fan_temp2_hyst=5000
dtparam=fan_temp2_speed=200
# Very Hot: 100% fan @ 65'C
dtparam=fan_temp3=65000
dtparam=fan_temp3_hyst=5000
dtparam=fan_temp3_speed=255
Alternatively, you can do it like this:
Code:
## Pi 5 active cooling fan parameters
# Cooling fan on | off
dtparam=cooling_fan=on
# Tepid: 40% fan @ 40'C
dtparam=fan_temp0=40000,fan_temp0_hyst=3000,fan_temp0_speed=100
# Warm: 60% fan @ 45'C
dtparam=fan_temp1=45000,fan_temp1_hyst=4000,fan_temp1_speed=150
# Hot: 80% fan @ 55'C
dtparam=fan_temp2=55000,fan_temp2_hyst=5000,fan_temp2_speed=200
# Very Hot: 100% fan @ 65'C
dtparam=fan_temp3=65000,fan_temp3_hyst=5000,fan_temp3_speed=255
NB: the above settings and values are my own, based on my Pi 5 usage and setup. Yours will most certainly be different so adjustments will need to be considered to factor in your personal preferences and test-case.
Back in December 2023 I fervently appealed to Raspberrry Pi Ltd. (on their forums) with what I thought was common sense and the logical thing to do... and ended up being perm-banned for it! The moderator's excuse was "signature spam" even though I'd been using the same signature for over a decade. It just makes me laugh so goddam hard when they end up doing
EXACTLY what I suggested to them in the first place! PMSL
[EDIT] I'll be including the above active cooler management settings in future SARPi5_64 releases.