加入收藏 | 设为首页 | 会员中心 | 我要投稿 晋中站长网 (https://www.0354zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

PowerTOP:在Linux上监视电量使用和改善笔记本电池寿命

发布时间:2019-02-26 06:54:00 所属栏目:Windows 来源:Vinoth Kumar
导读:我们都知道,现在几乎都从 PC 机换到了笔记本电脑了。但是使用笔记本有个问题,我们希望电池耐用,我们可以使用到每一点电量。所以,我们需要知道电量都去哪里了,是不是浪费了。 你可以使用 PowerTOP 工具来查看没有接入电源线时电量都用在了何处。你需要

运行如下命令生成 PowerTop 的 HTML 报告。

  1. $ sudo powertop --html=powertop.html
  2. modprobe cpufreq_stats failedLoaded 100 prior measurements
  3. Cannot load from file /var/cache/powertop/saved_parameters.powertop
  4. File will be loaded after taking minimum number of measurement(s) with battery only
  5. RAPL device for cpu 0
  6. RAPL Using PowerCap Sysfs : Domain Mask f
  7. RAPL device for cpu 0
  8. RAPL Using PowerCap Sysfs : Domain Mask f
  9. Devfreq not enabled
  10. glob returned GLOB_ABORTED
  11. Cannot load from file /var/cache/powertop/saved_parameters.powertop
  12. File will be loaded after taking minimum number of measurement(s) with battery only
  13. Preparing to take measurements
  14. To show power estimates do 182 measurement(s) connected to battery only
  15. Taking 1 measurement(s) for a duration of 20 second(s) each.
  16. PowerTOP outputing using base filename powertop.html

打开 file:///home/daygeek/powertop.html 文件以访问生成的 PowerTOP 的 HTML 报告。

PowerTOP:在Linux上监视电量使用和改善笔记本电池寿命

自动调整模式

这个功能可以将所有可调整选项从 BAD 设置为 GOOD,这可以提升 Linux 中的笔记本电池寿命。

  1. $ sudo powertop --auto-tune
  2. modprobe cpufreq_stats failedLoaded 210 prior measurements
  3. Cannot load from file /var/cache/powertop/saved_parameters.powertop
  4. File will be loaded after taking minimum number of measurement(s) with battery only
  5. RAPL device for cpu 0
  6. RAPL Using PowerCap Sysfs : Domain Mask f
  7. RAPL device for cpu 0
  8. RAPL Using PowerCap Sysfs : Domain Mask f
  9. Devfreq not enabled
  10. glob returned GLOB_ABORTED
  11. Cannot load from file /var/cache/powertop/saved_parameters.powertop
  12. File will be loaded after taking minimum number of measurement(s) with battery only
  13. To show power estimates do 72 measurement(s) connected to battery only
  14. Leaving PowerTOP

(编辑:晋中站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读