RK平台关闭温度控制降频功能

策略切换到user_space:

开机后输入echo user_space > /sys/class/thermal/thermal_zone0/policy

或者把mode设置成disabled状态:

echo disabled > /sys/class/thermal/thermal_zone0/mode

解除频率限制:
/* 具体有多少个cdev,根据实际情况修改 */
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

 

获取CPU温度:

cat /sys/class/thermal/thermal_zone0/temp

获取GPU温度:

cat /sys/class/thermal/thermal_zone1/temp

获取CPU频率:

cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq
cat /sys/devices/system/cpu/cpufreq/policy4/scaling_cur_freq

一个policy 对应一个cluster,每个cluster 下对应哪些CPU 可以通过以下命令获取
cat /sys/devices/system/cpu/cpufreq/policy0/related_cpus
cat /sys/devices/system/cpu/cpufreq/policy4/related_cpus

获取CPU可以用的频率:

cat /sys/devices/system/cpu/cpu4/cpufreq/scaling_available_frequencies

修改频率

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

 

GPU定频查看频率:
echo "userspace" >/sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu/governor
echo "800000000" >/sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu/userspace/set_freq
cat /sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu/cur_freq

你可能感兴趣的:(瑞芯微,ARM,分区,android,Linux)