博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android系统 proc—cpufreq 目录,查看 CPU 电压,检查省电体质
阅读量:4147 次
发布时间:2019-05-25

本文共 2837 字,大约阅读时间需要 9 分钟。

一、目录结构

核心内容是 cpufreq_oppidx 可用查看不同频率对应的电压,电压越低越省电。

注意电压要设置在芯片规格范围内

Z91:/proc/cpufreq # ls -allls -alltotal 0dr-xr-xr-x   3 root   root   0 2018-01-12 17:08 .dr-xr-xr-x 432 root   root   0 1970-01-01 08:00 ..dr-xr-xr-x   2 root   root   0 2018-01-12 17:08 MT_CPU_DVFS_LL-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_debug-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_dvfs_time_profile-rw-rw----   1 system system 0 2018-01-12 17:08 cpufreq_power_mode-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_sched_disable-rw-rw-r--   1 root   root   0 2018-01-12 17:08 cpufreq_stress_test

1.MT_CPU_DVFS_LL

目录结构

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # ls -alls -altotal 0dr-xr-xr-x 2 root root 0 2018-01-12 17:09 .dr-xr-xr-x 3 root root 0 2018-01-12 17:08 ..-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_freq-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_oppidx-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_turbo_mode-rw-rw-r-- 1 root root 0 2018-01-12 17:09 cpufreq_volt

1.1 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_freq

当前频率

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_freqcat cpufreq_freq299000 KHzZ91:/proc/cpufreq/MT_CPU_DVFS_LL #

1.2 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_oppidx

不同频率对于的电压

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_oppidxcat cpufreq_oppidx[MT_CPU_DVFS_LL/0]cpufreq_oppidx = 0        0  (1274000, 118750)        1  (1235000, 118125)        2  (1196000, 116875)        3  (1170000, 116875)        4  (1105000, 115000)        5  (1053000, 113750)        6  (1001000, 112500)        7  (962000, 111875)        8  (910000, 110000)        9  (845000, 108750)        10 (702000, 105000)        11 (624000, 103125)        12 (546000, 101250)        13 (416000, 98125)        14 (338000, 96250)        15 (299000, 95000)===========================================Z91:/proc/gpufreq # cat gpufreq_opp_dumpcat gpufreq_opp_dump[0] freq = 450000, volt = 115000, idx = 0[1] freq = 400000, volt = 111875, idx = 1[2] freq = 350000, volt = 108750, idx = 2[3] freq = 290000, volt = 105000, idx = 3

1.3 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_turbo_mode

无数据

1.4 /proc/cpufreq/MT_CPU_DVFS_LL/cpufreq_volt

Z91:/proc/cpufreq/MT_CPU_DVFS_LL # cat cpufreq_voltcat cpufreq_voltVproc: 950000 uVVsram: 1150000 uV

2.cpufreq_debug

Z91:/proc/cpufreq # cat cpufreq_debugcat cpufreq_debugcpufreq debug (log level) = 0

3.cpufreq_dvfs_time_profile

Z91:/proc/cpufreq # cat cpufreq_dvfs_time_profilecat cpufreq_dvfs_time_profilemax[0] = 30970 usmax[1] = 18437 usmax[2] = 0 usmax[3] = 0 usmax[4] = 0 usmax[5] = 0 us

4.cpufreq_power_mode

Z91:/proc/cpufreq # cat cpufreq_power_modecat cpufreq_power_modeDefault(Normal) mode

5.cpufreq_sched_disable

Z91:/proc/cpufreq # cat cpufreq_sched_disablecat cpufreq_sched_disablecpufreq_sched_disable = 1

6.cpufreq_stress_test

Z91:/proc/cpufreq # cat cpufreq_stress_testcat cpufreq_stress_test0

转载地址:http://socti.baihongyu.com/

你可能感兴趣的文章
git命令速查表
查看>>
linux进程监控和自动重启的简单实现
查看>>
OpenFeign学习(三):OpenFeign配置生成代理对象
查看>>
OpenFeign学习(四):OpenFeign的方法同步请求执行
查看>>
OpenFeign学习(六):OpenFign进行表单提交参数或传输文件
查看>>
Ribbon 学习(二):Spring Cloud Ribbon 加载配置原理
查看>>
Ribbon 学习(三):RestTemplate 请求负载流程解析
查看>>
深入理解HashMap
查看>>
XML生成(一):DOM生成XML
查看>>
XML生成(三):JDOM生成
查看>>
Ubuntu Could not open lock file /var/lib/dpkg/lock - open (13:Permission denied)
查看>>
collect2: ld returned 1 exit status
查看>>
C#入门
查看>>
C#中ColorDialog需点两次确定才会退出的问题
查看>>
数据库
查看>>
nginx反代 499 502 bad gateway 和timeout
查看>>
linux虚拟机安装tar.gz版jdk步骤详解
查看>>
python实现100以内自然数之和,偶数之和
查看>>
python数字逆序输出及多个print输出在同一行
查看>>
苏宁产品经理面经
查看>>