jetson nano初探2——风扇

jetson nano初探2——风扇

1、PWM风扇

先建立rc.local文件

cd /etc
sudo touch rc.local
sudo chmod u+x rc.local
sudo vi rc.local

然后填入下面内容:

#!/bin/bash
sleep 10
sudo /usr/bin/jetson_clocks
sleep 10
sudo sh -c 'echo 100 > /sys/devices/pwm-fan/target_pwm'

重启

sudo reboot

查看风扇状态用

sudo jetson_clocks --show

或者

cat /sys/devices/pwm-fan/target_pwm

2、大神的PWM风扇

https://github.com/Pyrestone/jetson-fan-ctl
安装

./install.sh

修改

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

内容如下:

{
"FAN_OFF_TEMP":30,
"FAN_MAX_TEMP":60,
"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.
重启:

sudo service automagic-fan restart
to apply changes immediately.

状态检查:

sudo service automagic-fan status

你可能感兴趣的:(jetson,nano)