fan-shim on rpi4 1 fan-shim on rpi4

fan-shim on rpi4

sudo pip install fanshim
git clone
cd fanshim-python/examples

If you need to change the threshold, hysteresis or delay you can add them as arguments to the installer:

sudo ./ --on-threshold 65 --off-threshold 55 --delay 2

To enable CPU-frequency based control:

sudo ./ --on-threshold 65 --off-threshold 55 --delay 2 --preempt