将android频率固定在最大值

将手机中的频率固定在单核某个频率xxx的方法:
 
    echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo 0 > /sys/devices/system/cpu/cpu1/online
    echo 0 > /proc/mtk_hotplug/enable
    echo xxx > /sys/power/cpufreq_limited_freq
 
 
将手机中的频率固定在双核某个频率xxx的方法:
 
    echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo 0 > /sys/devices/system/cpu/cpu1/online
    echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
    echo 0 > /proc/mtk_hotplug/enable
    echo xxx > /sys/power/cpufreq_limited_freq
 
 

以上方法可以保证不管是亮屏还是灭屏,都可以固定在您设定的频率下运行



在测试amlogic芯片时,只执行下面一条语句即可将频率设为最大值

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

回复自动调整

echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


你可能感兴趣的:(将android频率固定在最大值)