jetson nx fan auto pwm
参考:Jetson Nano-PWM自动调速_Ay_yzx的博客-CSDN博客
代码:
#!/usr/bin/env python
import os
# import commands
# from the path of this pattern
# path = '/sys/kernel/debug/soctherm/{dev}/temp'
path = '/sys/kernel/debug/bpmp/debug/soctherm/group_{dev}/temp'
# get the temperature from following sensors
# dev = ['cpu', 'gpu', 'mem', 'pll']
dev = ['CPU', 'GPU', 'AUX', 'PLLX']
# the fan PWM factor is 0 ~ 255, make 10 as the min, 255 as the max
# the fan speed will be sliding from 10% ~ 100% ac
共有 0 条评论