Need help with jetson-fan-ctl?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Pyrestone
324 Stars 77 Forks MIT License 32 Commits 0 Opened issues

Description

Automagic fan control for the Nvidia Jetson Nano

Services available

!
?

Need anything else?

Contributors list

# 257,222
Jupyter...
Shell
MATLAB
C
25 commits
# 479,678
Shell
React
JavaScr...
nomad
1 commit

jetson-fan-ctl

Automagic fan control for the Nvidia Jetson Nano

Requirements:

Hardware

You will need a 5V PWM fan for this to make any sense.
I used the Noctua nf-a4x20 5V PWM fan.

Additionally, I recommend you use the barrel jack with a 4A power supply.

Software

I will assume you use the standard image on your jetson nano.

Python 3 should be pre-installed on the jetson nano.
You can check this using python3 --version
(3.5 or higher should be fine.)
otherwise, you can install it with

sudo apt install python3-dev

How to install:

run

sudo ./install.sh

The script will automatically run at boot time.

It's a set-it-and-forget-it type thing, unless you want to mess with the fan speeds.

How to customize:

open /etc/automagic-fan/config.json with your favorite editor (I'm using nano):

sudo nano /etc/automagic-fan/config.json

you will find the following lines:

{
"FAN_OFF_TEMP":20,
"FAN_MAX_TEMP":50,
"UPDATE_INTERVAL":2,
"MAX_PERF":1
}

FANOFFTEMP is the temperature (°C) below which the fan is turned off.
FANMAXTEMP is the temperature (°C) above which the fan is at 100% speed.
The script interpolates linearly between these two points.

UPDATEINTERVAL tells the script how often to update the fan speed (in seconds).
MAXPERF values greater than 0 maximize system performance by setting the CPU and GPU clock speeds to the maximum.

You can use either integers (like 20) or floating point numbers (like 20.125) in each of these fields.
The temperature precision of the thermal sensors is 0.5 (°C), so don't expect this to be too precise.

Any changes in the script will be will be applied after the next reboot.
You can run

sudo service automagic-fan restart

to apply changes immediately.

If you suspect something went wrong, please check:

sudo service automagic-fan status

How to contribute:

Feel Free to open Issues or Pull requests on this Repository.

If you find this tool useful, you can buy me a coffe:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.