如何调整 Powertop 来降低功耗?

如何调整 Powertop 来降低功耗?

我是 Linux/Ubuntu 的新手。我查看了有关电池问题和 PowerTOP 的提示,但除了 Toggle Tunable 之外,没有找到有关如何调整 PowerTOP 的明确提示。

有人能查看日志并建议我该怎么做才能降低功耗吗?我的笔记本电脑已经用了 1 年了!我还发现 PowerTOP 会定期关闭我的鼠标,尽管我从未在 Toggle Tunable 中允许它这样做。

功耗摘要

363,4 wakeups/second, 2,4 GPU ops/second, 0,0 VFS ops/sec, 10,0 GFX wakes/sec and 11,8% CPU use

Power est.  Usage   Events/s    Category    Description
4.00 W  100,0%      Device  Audio codec hwC0D3: Intel
1.75 W   4,1%   110,3   Process powertop
1.00 W   51,8 pkts/s        Device  Network interface: eth0 (tg3) 871 mW     2,4%    54,5   Process /opt/google/chrome/chrome --type=ppapi
--channel=2277.31.1727086613 --lang=en-US 752 mW     2,7%    46,4   Process /opt/google/chrome/chrome --type=renderer --lang=en-US
--force-fieldtrials=AsyncDns/disabled/ConnCountImpact/conn_count_6/Connn 643 mW  0,3%    41,7   Timer   hrtimer_wakeup 238 mW    0,4%    15,5   Process compiz 234 mW    0,1%    15,2   Interrupt   [43] i915 183 mW     0,1%    11,6   Process syndaemon -i 2.0 -K -R -t 173 mW     0,1%    11,3   Interrupt   [7] sched(softirq)

设备电量报告

The battery reports a discharge rate of 18.1 W

System baseline power is estimated at 1.00 W

Power est.  Usage   Device name
5.74 W   11,8%  CPU use
4.00 W  100,0%  Audio codec hwC0D3: Intel
1.00 W   51,8 pkts/s    Network interface: eth0 (tg3)
24.0 mW  2,4 ops/s  GPU 0 mW    100,0%  Display backlight 0 mW  100,0%  Display backlight 0 mW  100,0%  USB device: usb-device-8087-0024 0 mW   100,0%  USB device: EHCI Host Controller 0 mW   100,0%  USB device: Logitech USB Optical Mouse (Logitech) 0 mW   0,0%   USB device: usb-device-8087-0024 0 mW    0,0%   USB device: EHCI Host Controller 0 mW    0,0%   USB device: 1.3M HD WebCam (SuYin) 0 mW  0,0%   Audio codec hwC0D0: Realtek 100,0%  PCI Device: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 100,0%    PCI Device: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 100,0%    PCI Device: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 100,0%    PCI Device: Atheros Communications Inc. AR9287 Wireless Network Adapter (PCI-Express) 100,0%    PCI Device: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller 100,0%    PCI Device: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe 100,0%  PCI Device: Broadcom Corporation NetXtreme BCM57765 Memory Card Reader 100,0%   PCI Device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller 100,0%   PCI Device: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 100,0%    PCI Device: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 100,0%  PCI Device: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller 100,0%    PCI Device: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port 0,0 pkts/s    Network interface: wlan0 (ath9k) 0,0%   Radio device: ath9k 0,0%    Radio device: acer-wmi

答案1

首先,对于像你这样的新手,我建议你忽略 powertop。它太复杂了,很难达到你的目标。你可能很累,只能多花几分钟,甚至一个小时。Powertop 虽然不错,但它更注重调优,而不是“用户级”电源管理。

另外,简短的免责声明,Linux 比 Windows 更耗电,因为它可以做“更多的事情”并且使用不同的硬件。您可能无法在 Linux 中获得与在 Windows 中相同的时间,或者您可能会获得更多。

这些是按照对我而言重要性的顺序列出的。这是最容易做到的,也是最有收获的。

CPU 频率

对电池影响最大的是 CPU 频率。当我插上电源时,我希望全速运行,但当我拔下电源时,我希望尽可能多地使用电池。现在这基本上是自动的,但为了给它一点帮助,让我看到它,我安装了木星。当使用电池或电源时,该自动装置会执行一些操作。它还让我能够直接控制一些电源管理功能。

显示屏亮度

尽可能地调低它。这对我来说有很大的不同。如果您想通过脚本执行此操作,则echo -n 100 > /proc/acpi/video/VGA/LCD/brightness应该进行一些调整。路径可能会根据构建/内核/硬件而有所不同。

键盘背光

在我的 Mac Book Pro 上,这只有一点点好处,但关闭键盘背光非常容易。

空闲时间和屏幕消隐

把它们调低。在 Unity 的“电源”中,将不活动时挂起设置为 5 分钟,将盖子合上时挂起设置为 5 分钟。窗口底部的提示中有一个链接。单击它并确保已选中“调暗屏幕以节省电量”。2 分钟后关闭屏幕。

关闭蓝牙

这也是一个简单的方法,但节省不了多少。从 Jupiter 指示器,使用电池时禁用蓝牙。

诺亚泰

编辑 /etc/fstab 并将 noatime 添加到所有本地分区和挂载点。这“应该”可以防止驱动器频繁旋转。首先阅读。这并没有带来以前的好处,但它可以防止我的驱动器假脱机。

少做点事情

这个有点棘手,但可以为您节省大量成本。基本上,Linux 在后台执行大量操作。这是它的优点之一。但是,这也可能导致耗电量高于所需。这里最简单的方法是禁用电池供电时的 cron,但在通电时将其重新打开。如果您不知道自己在做什么,这可能会很危险。基本上,如果您错过几个 cron 作业,这不会造成任何损害,但一直关闭它会造成问题。

还要查看/关注 htop。重新考虑使用大量 CPU 的应用程序。

英伟达

我不知道这是否真的有用,所以我把它放在最后。将 nvidia 的节能功能(如果有的话)调到最高。nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0应该可以实现。顺便说一句,compiz 使我的显卡不会低于最大值。他们需要解决这个问题。

结束语

这些应该可以帮助您从 ubuntu 笔记本电脑中获得合理的电池性能。Powertop 非常好,但如果您是 Linux 新手,那么它就有点太过了。请先尝试以下步骤。

相关内容