RK3399 CPU锁频

1、关闭CPU温控,否则系统还是会自动降频

echo disabled > /sys/class/thermal/thermal_zone0/mode
echo 0 > /sys/class/thermal/thermal_zone0/cdev0/cur_state
echo 0 > /sys/class/thermal/thermal_zone0/cdev1/cur_state
echo 0 > /sys/class/thermal/thermal_zone0/cdev2/cur_state

2、设置固定频率

echo "userspace" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "1416000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed

做成个开机启动脚本即可

3、获取cpu主频和温度

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cat /sys/class/thermal/thermal_zone0/temp

你可能感兴趣的:(RK3399 CPU锁频)