Sorry for the delayed reply, but I just got back to this. It works great! Thank you.
I hadn't delved into dtbo or dts files before, but I figured out to do the following:
1. I moved the pwm-fan.dtbo file to /boot/firmware/overlays/
2. I removed the former stock fan line for the gpio-fan overlay in /boot/firmware/config.txt (dtoverlay=gpio-fan,gpiopin=14,temp=80000)
3. I figured that the gpio pin for the fan's blue wire would need to be connected to gpio 18, as mentioned in pwm-fan-overlay.dts, as opposed to gpio 14 as used in the stock fan setup
4. I guessed that the overrides section in the pwm-fan-overlay.dts source file defined the variables that I could change
5. I added a dtoverlay line for pwm-fan in /boot/firmware/config.txt, with any desired overrides as dtparams.
I chose to make a set of specifications that is similar to the pi5, though starting slightly higher:Your grep line showed that this overlay was enabled, and varied stress testing showed all four fan levels being invoked. Excellent!
A few questions: the default temperature steps (40, 45, 50, 55) seem low to me. How did you pick those particular values?
The default hysteresis values - except for the last - are 2000 (or 2 degrees). Do you think that's better than the pi5 fan's 5000 (5 degrees)?
Observation: I had thought that the super high pitched whine of the former single pi4 official fan setting was annoying, but I find my new lower settings are also a little grating, even though they're lower pitched and somewhat quieter. I'm glad to have control of this all now, so I'll keep playing and hope to come to settings that keep things cool enough yet quiet enough (both subjective things). Thanks again!
I hadn't delved into dtbo or dts files before, but I figured out to do the following:
1. I moved the pwm-fan.dtbo file to /boot/firmware/overlays/
2. I removed the former stock fan line for the gpio-fan overlay in /boot/firmware/config.txt (dtoverlay=gpio-fan,gpiopin=14,temp=80000)
3. I figured that the gpio pin for the fan's blue wire would need to be connected to gpio 18, as mentioned in pwm-fan-overlay.dts, as opposed to gpio 14 as used in the stock fan setup
4. I guessed that the overrides section in the pwm-fan-overlay.dts source file defined the variables that I could change
5. I added a dtoverlay line for pwm-fan in /boot/firmware/config.txt, with any desired overrides as dtparams.
I chose to make a set of specifications that is similar to the pi5, though starting slightly higher:
Code:
[pi4]dtoverlay=pwm-fandtparam=fan_temp0=55000dtparam=fan_temp0_hyst=5000dtparam=fan_temp0_speed=75dtparam=fan_temp1=62500dtparam=fan_temp1_hyst=5000dtparam=fan_temp1_speed=128dtparam=fan_temp2=70000dtparam=fan_temp2_hyst=5000dtparam=fan_temp2_speed=192dtparam=fan_temp3=77500dtparam=fan_temp3_hyst=5000dtparam=fan_temp3_speed=255
A few questions: the default temperature steps (40, 45, 50, 55) seem low to me. How did you pick those particular values?
The default hysteresis values - except for the last - are 2000 (or 2 degrees). Do you think that's better than the pi5 fan's 5000 (5 degrees)?
Observation: I had thought that the super high pitched whine of the former single pi4 official fan setting was annoying, but I find my new lower settings are also a little grating, even though they're lower pitched and somewhat quieter. I'm glad to have control of this all now, so I'll keep playing and hope to come to settings that keep things cool enough yet quiet enough (both subjective things). Thanks again!
Statistics: Posted by tinker2much — Fri Feb 02, 2024 7:20 pm