如何设置android平台cpu最大工作频率,及解除超温降频?

Hi:
如题,请给出相关指导或参考资料。

尝试使用Kernel aduitor应用程序,它将仅在启用root的情况下运行,使用已经为您扎根的Khadas android builds …

https://apkpure.com/kernel-adiutor-root/com.grarak.kerneladiutor

Hi Electr1:
感谢您的回复,当前这个链接我访问不了,还有没有其它方法?

@Sword 您可以尝试使用App Store,或者只是在线搜索该应用程序,就可以免费获得它。

如何设置android平台cpu最大工作频率

查看/sys/devices/system/cpu/cpufreq/policy0/scaling_governor当前是什么模式,如果想一直以最大频率运行,可以设置为performance

$ echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

及解除超温降频?

可以修改mesong12b.dtsi里面节点thermal-zones的温度值,但是要注意好降温措施,避免芯片损坏。

Hi numbqq:
感谢您的指导,解除超温降频只能通过重新编译设备树文件吗?不能通过文件系统,像修改cpu频率一样?
另外,poilcy0是针对小核心cortex-A53的,我应该还要再修改poilcy2吧。我能不能让可执行文件在指定cpu核心执行,比如在cpu2,cpu3等。我记得rockchip平台是可以的,不知道amlogic可不可以?

你可以试着设置下这里面的节点来改变:/sys/class/thermal/thermal_zone0

可以用taskset命令来指定应用在那个cpu上运行。

Hi numbqq:
ls /sys/class/thermal/thermal_zone0/
available_policies cdev3 policy trip_point_1_temp
cdev0 cdev3_trip_point power trip_point_1_type
cdev0_trip_point cdev3_weight slope trip_point_2_hyst
cdev0_weight integral_cutoff subsystem trip_point_2_temp
cdev1 k_d sustainable_power trip_point_2_type
cdev1_trip_point k_i temp trip_point_3_hyst
cdev1_weight k_po trip_point_0_hyst trip_point_3_temp
cdev2 k_pu trip_point_0_temp trip_point_3_type
cdev2_trip_point mode trip_point_0_type type
cdev2_weight offset trip_point_1_hyst uevent

这是个目录,具体修改哪个文件呢?我现在使用的是200624最新版固件。

# ll trip_point_*_temp
-rw-r--r--    1 root     root          4096 Jan  1 00:01 trip_point_0_temp
-rw-r--r--    1 root     root          4096 Jan  1 04:13 trip_point_1_temp
-rw-r--r--    1 root     root          4096 Jan  1 00:01 trip_point_2_temp
-rw-r--r--    1 root     root          4096 Jan  1 00:01 trip_point_3_temp