Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Same idea as the other PRs, with a twist:
This takes into account that PWM doesn't work with just any fan consistently, and on top of that often introduces audible whine, as we're throwing a rectangle waveform onto a electromechanical transducer ;)
Almost any capacitor should fix this, but has implications on the PWM frequency, as well as the minimum PWM value the fan can take; generally higher PWM frequency means a higher PWM cutoff value for minimum fan speed.
E.g. for a 100uF Cap, 500 Hz corresponds to a min PWM of .64 in my case, while for 10kHz the value was around .8
This also includes an exponential fan curve that tries to keep the PWM as low as possible over a wide temp range, as in my experience the lowest possible fan speed is often enough to keep the Raspi cool.
In the end this is the priority list when it comes to fan speed for me:
This PWM control addresses all those requirements. For 2) and 4) we need to enter a steady state within a given operating mode (e.g. file transfer if you use the Raspi as a NAS).