pimoroni / fanshim-python

Python library for the Fan SHIM for Raspberry Pi
https://shop.pimoroni.com/products/fan-shim
MIT License
295 stars 85 forks source link

The fan does not work #114

Closed homerybart closed 1 year ago

homerybart commented 2 years ago

Hi

When I check the status of the script with systemctl it shows this:

_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 Sun 2022-07-31 10:58:22 CEST; 3s ago Process: 11680 ExecStart=/usr/bin/python3 /home/pi/automatic.py --on-threshold 65 --off-threshold 55 --delay 2 --brightness 255 (code=exited, status=2) Main PID: 11680 (code=exited, status=2)

jul 31 10:58:22 raspberryPi systemd[1]: pimoroni-fanshim.service: Service RestartSec=100ms expired, scheduling restart. jul 31 10:58:22 raspberryPi systemd[1]: pimoroni-fanshim.service: Scheduled restart job, restart counter is at 5. jul 31 10:58:22 raspberryPi systemd[1]: Stopped Fan Shim Service. jul 31 10:58:22 raspberryPi systemd[1]: pimoroni-fanshim.service: Start request repeated too quickly. jul 31 10:58:22 raspberryPi systemd[1]: pimoroni-fanshim.service: Failed with result 'exit-code'. jul 31 10:58:22 raspberryPi systemd[1]: Failed to start Fan Shim Service._

I have this version of Python installed:

2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0]

homerybart commented 2 years ago

before it worked fine any help will be appreciated

Regards

homerybart commented 2 years ago

and the versión of Python3 is:

3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]

homerybart commented 2 years ago

Pimoroni sells its products but then does not give a support, I will not buy anything else from them

helgibbons commented 2 years ago

Sorry about the slow response! Emailing support@pimoroni.com is usually the fastest way to contact us with support requests - our software team is small and very busy.

What OS are you using? Is the fan always on, or always off?

Does reinstalling the service help? https://learn.pimoroni.com/article/getting-started-with-fan-shim You could also try a fresh OS install in case something's got out of sync?

homerybart commented 2 years ago

Hi!

This is mi OS

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

the fan is always off from two years ago

helgibbons commented 2 years ago

OK - the fan should be on by default (even if the service isn't working) - you should see it spinning while the Pi is booting up before the service kicks in. Have you tried adjusting it on the GPIO in case it's been knocked out of place?

If that doesn't help, you might have a failed fan - drop an email to support@pimoroni.com with your order number / proof of purchase and a link to this issue and they may be able to sort you out with a replacement.