Apparently it only works with Buster (doesn't say that anywhere in product description or tutorial).
Tried a fresh Stretch image on SD, and same problem. Tried Buster and it all works as advertised.
Pretty cool product (pun intended). LED goes green-yellow-red as SoC heats up.
Got a Fan Shim recently, and after installing the hardware it runs all the time with no LED or button control, which is probably expected since it's software controlled. So today I followed the Pimoroni tutorial (Getting Started with Fan SHIM), but the fan just shuts off, with no LED or button control, and it does not turn on no matter how hot the system gets (stress tested to over 80C where SoC started to throttle).
Running sudo systemctl status pimoroni-fanshim.service returns the following error.
Trying to run automatic.py manually returns the following error.
Code: Select all
~ $ sudo systemctl status pimoroni-fanshim.service ● pimoroni-fanshim.service - Fan Shim Service Loaded: loaded (/etc/systemd/system/pimoroni-fanshim.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2019-08-17 16:40:31 PDT; 1min 9s ago Process: 604 ExecStart=/home/tim/fanshim-python/examples/automatic.py --on-threshold 65 --off-threshold 55 --delay 2 --brightness 255 (code=exited, status=1 Main PID: 604 (code=exited, status=1/FAILURE) Aug 17 16:40:30 Pi3BSSD systemd: pimoroni-fanshim.service: Failed with result 'exit-code'. Aug 17 16:40:31 Pi3BSSD systemd: pimoroni-fanshim.service: Service hold-off time over, scheduling restart. Aug 17 16:40:31 Pi3BSSD systemd: Stopped Fan Shim Service. Aug 17 16:40:31 Pi3BSSD systemd: pimoroni-fanshim.service: Start request repeated too quickly. Aug 17 16:40:31 Pi3BSSD systemd: Failed to start Fan Shim Service. Aug 17 16:40:31 Pi3BSSD systemd: pimoroni-fanshim.service: Unit entered failed state. Aug 17 16:40:31 Pi3BSSD systemd: pimoroni-fanshim.service: Failed with result 'exit-code'.
Spent some time on google without a solution. Only found one hit that seemed to be the same problem, and it had no resolution (yet). Pretty lost on this one. Thought it would be simple.
Code: Select all
~ $ /home/tim/fanshim-python/examples/automatic.py --on-threshold 65 --off-threshold 55 --delay 2 --brightness 255 Traceback (most recent call last): File "/home/tim/fanshim-python/examples/automatic.py", line 99, in <module> t = get_cpu_temp() File "/home/tim/fanshim-python/examples/automatic.py", line 50, in get_cpu_temp t = psutil.sensors_temperatures() AttributeError: module 'psutil' has no attribute 'sensors_temperatures'
- Raspberry Pi 3B v1.2 (not +), with USB boot OTP bit set.
- Raspbian Stretch, fully up-to-date (apt update/full-upgrade).
- USB booted from SSD (empty FAT32 card in slot).
- Not official PSU, but load tested, so I know it's okay (good micro USB cable as well).
- Nothing else on GPIO.
- SATA-III SSD with Eluteng black USB adapter (only other USB device is a Logitech Unifying dongle).
- Image was written directly to SSD with Etcher and has been updated/upgrade regularly.
- HDMI monitor.
- No Ethernet (using WiFi).
- Nothing weird in my OS configuration (basic Raspbian Stretch with Desktop and a few applications).
Anyone got one of these working correctly? Thanks in advance for any help.