I have a Raspberry Pi 4 with Adafruit's Official Case fan, and am running Ubuntu 20.10. I have installed the pi-fancontrol snap, but I can't get it configured using the instructions at https://snapcraft.io/install/pi-fancontrol/ubuntu.

$ sudo snap install pi-fancontrol
pi-fancontrol 0.1 from Oliver Grawert (ogra) installed
$ sudo snap connect pi-fancontrol:gpio pi:bcm-gpio-14
error: snap "pi" has no slot named "bcm-gpio-14"

snap list doesn't show that the pi snap is installed, so maybe that's the problem. There are instructions for that at https://snapcraft.io/install/pi/ubuntu.

$ sudo snap install pi --beta
error: cannot perform the following tasks:
- Mount snap "pi" (11) (cannot install gadget snap on classic if not requested by the model)

Googling that error message does not turn up any useful results. Where do I go from here?

1 Answer 1


pi-fancontrol snap is currently broken for Ubuntu Desktop.

Manually overriding worked for me.

sudo nano ../../boot/firmware/config.txt

To set the threshold at 80 degrees Celsius, add the following line in it:


Save the file by pressing Ctrl + X, and press Y, and press Enter.

Reboot the system now, it is done.

  • For temp=80000, what threshold does it represent? My fan is running at <50°C, and I would like it to automatically shut off at that point, starting again around 60°.
    – dust
    Commented Jul 2, 2021 at 20:19
  • I'm also curious to know - If I'm using the default pins 04 and 06 (5v and ground) and want to continue using them, what would the GPIO value equal?
    – dust
    Commented Jul 4, 2021 at 19:48
  • temp=60000 is to turn the fan on at 60°C. And from what I understand it will turn off again at 50°C.
    – Peet
    Commented Oct 13, 2022 at 17:37
  • @mustafa-tufan Where's your other wire? This kind of works for me too but compared to when I connected my fan to 3.3V and ground, the fan lights are more dim and flickering. Doesn't feel right.
    – Las Ten
    Commented Sep 19, 2023 at 8:44
  • Works great. Thanks. This answer is helpful for testing: askubuntu.com/questions/948854/…
    – Brett
    Commented Jan 13 at 22:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .