---
title: Install pi-fancontrol on Linux | Snap Store
description: Get the latest version of pi-fancontrol for Linux - Control a raspberry
  pi fan attached to a GPIO
url: https://snapcraft.io/pi-fancontrol
---

# pi-fancontrol

[Oliver Grawert (ogra)](https://snapcraft.io/publisher/ogra "View all snaps from Oliver Grawert (ogra)")

* [Oliver Grawert (ogra)](https://snapcraft.io/publisher/ogra "View all snaps from Oliver Grawert (ogra)")

latest/stable 0.1

Install latest/stable of pi-fancontrol

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install pi-fancontrol
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* pi-fancontrol

---

### License

* GPL-3.0

---

### Last updated

* 9 March 2021 - latest/stable
* 18 March 2021 - latest/edge

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/pi-fancontrol#report-snap-modal)

---

* [Description](https://snapcraft.io/pi-fancontrol#tab-description)
* [Security](https://snapcraft.io/pi-fancontrol#tab-security)

#### Control a raspberry pi fan attached to a GPIO

Control a fan attached to a GPIO via NPN transistor
(defaults to GPIO 14 (pin 8))

For more info see
<https://ograblog.wordpress.com/2019/10/09/attaching-a-cpu-fan-to-a-rpi-running-ubuntu-core/>

Make sure to connect the snap interface for the correct GPIO
that your fan is attached to (see <https://pinout.xyz> for correct mapping)

```
 snap connect pi-fancontrol:gpio pi:bcm-gpio-14
```

The snap allows a few configurations to be set

Pick a different GPIO to swithc the fan on/off (do not forget to use the
above connect command to enable access to this changed GPIO)

```
 snap set pi-fancontrol gpio=23
```

Set the temperature threshold (in degrees celsius) at which the
fan turns on

```
 snap set pi-fancontrol threshold=40
```

Set the interval (in seconds) at which the temperature gets scanned

```
 snap set pi-fancontrol interval=60
```

Indeed you can set all these also from a gadget.yaml file in the ```defaults:``` section.

---

## Install pi-fancontrol on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/pi-fancontrol/arch)

[### CentOS](https://snapcraft.io/install/pi-fancontrol/centos)

[### Debian](https://snapcraft.io/install/pi-fancontrol/debian)

[### elementary OS](https://snapcraft.io/install/pi-fancontrol/elementary)

[### Fedora](https://snapcraft.io/install/pi-fancontrol/fedora)

[### KDE Neon](https://snapcraft.io/install/pi-fancontrol/kde-neon)

[### Kubuntu](https://snapcraft.io/install/pi-fancontrol/kubuntu)

[### Manjaro](https://snapcraft.io/install/pi-fancontrol/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/pi-fancontrol/pop)

[### openSUSE](https://snapcraft.io/install/pi-fancontrol/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/pi-fancontrol/rhel)

[### Ubuntu](https://snapcraft.io/install/pi-fancontrol/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/pi-fancontrol/raspbian)
