Hi,
I’ve fitted a FanShim to my Pi4 (Python 3.9.2) and it spins very nicely. However, it seems to be ignoring the “go off now” temperature threshold.
Per the instructions at: Getting Started with Fan SHIM I’ve installed the Python library, and configured the automatic “come on at / go off at” service - which is active.
No errors were reported during install or in operation, but despite setting the “off at” temperature to 40deg and the Pi4 temperature reported as 33.1deg - the fan is still/permanently on.
I’ve tried a reboot. The fan service launched successfully after the Pi came back up, but again - fan is permanently on.
Does anyone have any ideas?
Thanks
fanshim-python/examples $ sudo ./install-service.sh --on-threshold 50 --off-threshold 40 --delay 5
Setting up with:
Off Threshold: 40 C
On Threshold: 50 C
Low Temp: 40 C
High Temp: 50 C
Delay: 5 seconds
Preempt: no
Disable LED: no
Disable Button: no
Brightness: 255
Extended Colours: no
To change these options, run:
sudo ./install-service.sh --off-threshold <n> --on-threshold <n> --delay <n> --brightness <n> --low-temp <n> --high-temp <n> --venv <python_virtual_environment> (--preempt) (--noled) (--nobutton) (--extended-colours)
Or edit: /etc/systemd/system/pimoroni-fanshim.service
Checking for rpi.gpio >= 0.7.0 (for Pi 4 support)
rpi.gpio >= 0.7.0 already installed
Checking for Fan SHIM
Fan SHIM already installed
Checking for psutil >= 5.6.7
psutil >= 5.6.7 already installed
Installing service to: /etc/systemd/system/pimoroni-fanshim.service
● pimoroni-fanshim.service - Fan Shim Service
Loaded: loaded (/etc/systemd/system/pimoroni-fanshim.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-03-06 16:01:58 GMT; 19ms ago
Main PID: 2005 (python3)
Tasks: 1 (limit: 1830)
CPU: 13ms
CGroup: /system.slice/pimoroni-fanshim.service
└─2005 /usr/bin/python3 /home/steveharman/fanshim-python/examples/automatic.py --on-…
Mar 06 16:01:58 raspberrypi systemd[1]: Started Fan Shim Service.
steveharman@raspberrypi:~/fanshim-python/examples $ /usr/bin/vcgencmd measure_temp
temp=33.1'C