# Problem with FAN Shim/Fan shim Software

**URL:** <https://forums.pimoroni.com/t/problem-with-fan-shim-fan-shim-software/13386>\
**Category:** Support\
**Created:** [March 24, 2020, 2:20pm UTC](https://forums.pimoroni.com/t/problem-with-fan-shim-fan-shim-software/13386 "2020-03-24T14:20:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejonte-wq](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@tejonte-wq](https://forums.pimoroni.com/u/tejonte-wq)\
**Post date:** [March 24, 2020, 2:20pm UTC](https://forums.pimoroni.com/t/problem-with-fan-shim-fan-shim-software/13386/1 "2020-03-24T14:20:13Z")

</div>

I have a weird problem with my fan shim, it workes normally, but i can,t understand how the fan shim software works.  
I entered this commmands in piecewise:’

```auto
git clone https://github.com/pimoroni/fanshim-python

cd fanshim-python

sudo ./install.sh

```

and it installed the library itself as it says  
and i entered all other commands as it is but when it starts the service , i can,t start up the fan shim with the button on the fan shim.  
I have to disable the service to make the fan start up again.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [March 24, 2020, 6:14pm UTC](https://forums.pimoroni.com/t/problem-with-fan-shim-fan-shim-software/13386/2 "2020-03-24T18:14:59Z")

</div>

I think you’ve already done this but the full install is as follows.

```auto
git clone https://github.com/pimoroni/fanshim-python
cd fanshim-python
sudo ./install.sh

cd examples
sudo ./install-service.sh --on-threshold 65 --off-threshold 40 --delay 2

```

Once that is done the fan will be off until the on threshold temp is reached.  
And stay on until it goes below the off threshold.

I couldn’t get the manual override to work. I think its one long press of the button to switch to manual. Then a short press for on, short press for off.  
Another long press puts it back to automatic. For me the fan would switch to manual mode, but pressing the button just made it spin for a second or two and stop?  
There is a thread on here somwhere.

> [@Fan shim random speed?](https://forums.pimoroni.com/t/fan-shim-random-speed/13099):
>
> Hi! I have been using the Fan Shim for my RPi 4 (Raspbian Buster 4.19) for over a month now and it really is a game changer for my CPU-intensive tasks. I am using the automatic script to toggle the fan on and off, and it seems so be working fine (except for the button which wouldn’t on/off in automatic mode, but whatever). I noticed that the fan speed is different between the different fan toggles. Sometimes it would spin at full speed which is quite noisy and sometimes it would spin “normally…

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [March 24, 2020, 6:24pm UTC](https://forums.pimoroni.com/t/problem-with-fan-shim-fan-shim-software/13386/3 "2020-03-24T18:24:35Z")

</div>

Forgot to mention, the default condition with the service off, or no service /software installed is on. If you just plug it in without installing any of the Pimoroni stuff the fan will just run continuously. Thats why it turns on when you disable the service.  
With a little bit of python coding you could do up your own python file to turn it on off with the button. The commands are listed here. There would be no auto mode though.

> **[pimoroni/fanshim-python](https://github.com/pimoroni/fanshim-python)**
>
> Python library for the Fan SHIM for Raspberry Pi. Contribute to pimoroni/fanshim-python development by creating an account on GitHub.
