Powertop 不显示 Power est. 列

rea*_*sgt 7 ubuntu powertop

当我运行 powertop 时,它不显示“Power Est”。列显示每行的估计功耗(瓦特)。它应该看起来像这里的屏幕截图: MacBook Pro Retina:巨大的功耗

但它实际上是这样的:

          Usage     Device name
        100.0%        USB device: Biometric Coprocessor (STMicroelectronics)
        100.0%        Display backlight
        100.0%        Audio codec hwC0D0: Analog Devices
          7.2%        CPU use
        67067 pkts/s  Network interface: wlan0 (iwl4965)
          0.0 pkts/s  Network interface: eth0 (e1000e)
Run Code Online (Sandbox Code Playgroud)

“力量估计” 列丢失。然而,报告了从电池放电的总功率。从网上的传说中,我可以找到声称它只需要更多测量才能报告此数据的说法,但没有关于这一事实的官方声明或文件。我跑了powertop --calibrate了好几次了,现在用电池让它运行了几个小时。

我如何才能显示此列,或者在显示此列之前,powertop 需要多少“测量值”?

$ powertop --version
PowerTOP versionv2.1, compiled on Aug 23 2012
Run Code Online (Sandbox Code Playgroud)

我在 Lenovo Thinkpad T61p 上运行 Ubuntu 13.04(极少)。

$ uname -a
Linux compy 3.8.0-33-generic #48-Ubuntu SMP Wed Oct 23 09:16:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

我尝试从源代码安装 PowerTop 2.4,但它有同样的问题。

slm*_*slm 2

动力顶

听起来你必须给它几天的时间来收集执行这些计算所需的数据,至少根据标题为“ Missed power est. column in powertop?”的 AU 问答。

摘抄

如果您新安装了 PowerTop,请给它一些时间...需要几天时间才能获得正确的估计,然后开始显示。我在网上找到了这些信息,也是根据经验发言......

电源统计

如果你只想要功耗,你可以使用该包powerstat。这里有一个更全面的演示,标题为:powerstat:Ubuntu Linux 的功耗计算器

$ sudo powerstat -d 0
Run Code Online (Sandbox Code Playgroud)

它将显示功耗(以瓦为单位)

Running for 480 seconds (48 samples at 10 second intervals).
ACPI battery power measurements will start in 0 seconds time

Time    User  Nice   Sys  Idle    IO  Run Ctxt/s  IRQ/s Fork Exec Exit  Watts
 11:19:41   4.2   0.0   1.4  94.4   0.0    1   8731    518   20   20   20   9.44
 11:19:51   1.6   0.0   0.9  97.4   0.0    1   2165    301   20   20   20  10.78
 11:20:01   1.7   0.0   1.0  97.3   0.0    1   7788    400   20   20   20  12.27

Average   2.5   0.0   1.1  96.3   0.0  1.0 6228.0  406.3 20.0 20.0 20.0  10.83
StdDev   1.2   0.0   0.2   1.4   0.0  0.0 2898.3   89.0  0.0  0.0  0.0   1.16

 Minimum   1.6   0.0   0.9  94.4   0.0  1.0 2165.4  300.6 20.0 20.0 20.0   9.44
 Maximum   4.2   0.0   1.4  97.4   0.0  1.0 8730.7  518.3 20.0 20.0 20.0  12.27

 Summary:
 10.83 Watts on Average with Standard Deviation 1.16  
Run Code Online (Sandbox Code Playgroud)

  • powertop 中显示的是总电量,只是缺少每个设备消耗的电量。我知道它应该编译一段时间的数据,但没有迹象或估计它有多完整。我不知道我的系统是否有错误,或者我必须等待更长的时间。 (2认同)