Skip to content

Automagic fan control for the Nvidia Jetson Nano

License

Notifications You must be signed in to change notification settings

tmddn833/jetson-fan-ctl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

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

UPDATE_INTERVAL tells the script how often to update the fan speed (in seconds).
MAX_PERF 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:

About

Automagic fan control for the Nvidia Jetson Nano

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 55.9%
  • Python 44.1%