如何调整 Powertop 以降低功耗?

Ven*_*nem 5 battery laptop 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)
Run Code Online (Sandbox Code Playgroud)

设备电源报告

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
Run Code Online (Sandbox Code Playgroud)

cot*_*eyr 6

首先,对于像你这样的新手,我建议忽略 powertop。它的方式复杂,以达到您可实现的目标。多听几首小步舞曲可能会很累,也许是一个小时。Powertop,虽然很好,但更多地是关于调整,而不是“用户级”电源管理。

此外,快速免责声明,Linux 往往比 Windows 使用更多的功能,因为它做“更多的事情”并且使用不同的硬件。您可能无法在 Linux 中获得与在 Windows 中相同的时间,或者您可能获得更多。

这些是按对我的重要性的顺序列出的。这是最容易做到的,首先获得最大收益。

CPU频率

对我的电池影响最大的是 CPU 频率。当我插入电源时,我想要全速,但是当我拔掉电源时,我想要尽可能多的电池。这些天这主要是自动的,但是为了给它一点帮助,让我看到它,我安装了jupiter。这辆汽车在使用电池和通电时都会做一些事情。它还让我可以直接控制某些电源管理功能。

显示亮度

只要尽可能地把它关掉。这对我产生了很大的影响。如果您想通过脚本执行此操作,则echo -n 100 > /proc/acpi/video/VGA/LCD/brightness应该稍作调整。根据构建/内核/硬件,路径可能会有所不同。

键盘背光

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

空闲时间和屏幕消隐

把它们调低。从统一的“电源”中,将不活动时暂停设置为 5 分钟,并在关闭盖子时暂停。窗口底部的提示中有一个链接。单击它并确保选中 Dim Screen to save power。2 分钟后关闭屏幕。

关闭蓝牙

又是一个简单的,不会节省很多的。从 Jupiter 指示器中,使用电池时禁用蓝牙。

时间

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

少做事

这个有点棘手,但可以为您节省大量资金。基本上 Linux 在后台做了很多事情。这是关于它的最好的事情之一。然而,它也可能导致更高的电力使用。这里最简单的方法是禁用电池上的 cron,但在通电时将其重新打开。如果您不知道自己在做什么,这可能很危险。基本上,如果您错过了一些 cron 作业,它不应该有任何伤害,但是一直不使用它会导致问题。

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

英伟达

我不知道这是否真的有任何作用,所以我把它放在最后。将 nvidia 的(如果有的话)省电设置为高。nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0应该做到这一点。侧面咆哮,compiz 使我的卡不会大幅低于最大值。他们需要解决这个问题。

关闭

这些应该可以帮助您从 ubuntu 笔记本电脑获得合理水平的电池性能。Powertop 非常好,但如果你是一个 Linux 新手,它大约有 100 种矫枉过正的风格。首先尝试这些步骤。