limatrix81
V2EX  ›  Android

android 手机 CPU 调频问题

  •  
  •   limatrix81 · Sep 21, 2024 · 7245 views
    This topic created in 637 days ago, the information mentioned may be changed or developed.

    最近因为科研需要要在手机上对 CPU 进行频率限制。

    设备:红米 K40S (高通 870 )

    个人想更改 8 个核心中 cpu7 的频率设置,让其永远跑在特定频率(定频,如 2553600 ),但是并未成功

    个人参考https://blog.51cto.com/u_16099177/8841374的步骤,进行了如下操作:

    • 解锁获取 root 权限
    • 尝试通过修改scaling_governor,从原本的 schedutil 变为 userspace ,来改变频率调度器,使得可以自定义频率
    • 调整scaling_max_freqscaling_min_freq的值为 2553600

    但是通过以上操作定频失败,对scaling_max_freqscaling_min_freq进行手动更改后马上就有不知道什么系统调度进程对这两个文件进行了修改,又自动调整回 2745600 了

    查阅资料看可能是高通芯片 mpdecision 进程的问题,要终止才能定频,但是经查找手机上并没有这一进程。

    上述操作在我的 pixel 5 上也进行了实验,依旧无法成功

    求问大家有什么解决方案吗

    4 replies    2024-09-23 16:15:38 +08:00
    junhua13
        1
    junhua13  
       Sep 22, 2024
    试试 scene
    frayesshi1
        2
    frayesshi1  
    PRO
       Sep 22, 2024
    @junhua13 +1 ,试试 scene ,曾经试过,内置的 app 无论多么顽固,都能删掉
    limatrix81
        3
    limatrix81  
    OP
       Sep 23, 2024
    @frayesshi1 也用 scene 试过,一样跳来跳去的,感觉像是芯片调度的问题,酷安大神说要改 etc/vendor/perf ,有人熟悉吗😭
    frayesshi1
        4
    frayesshi1  
    PRO
       Sep 23, 2024
    频率不稳感觉是芯片调度的大小核切换的问题,你可以让你的应用固定在一个核上跑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2787 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 117ms · UTC 03:22 · PVG 11:22 · LAX 20:22 · JFK 23:22
    ♥ Do have faith in what you're doing.