将android频率固定在最大值

来源:互联网 发布:windows nt是什么 编辑:程序博客网 时间:2024/06/03 21:29
将手机中的频率固定在单核某个频率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


原创粉丝点击