我在Ubuntu 12.04下使用了powertop v.2.1,但是错过了power est。专栏。
这与此处描述的情况相同,该错误应该已经得到修复。
我尝试过,lm_sensors
但是没有给出任何电压读数。这是传感器检测和检测的日志。
我不确定是什么引起了问题。我正在Lenovo Thinkpad机器上运行linux内核3.2.0-23-通用,Ubuntu 12.04发行版。
还有其他Linux实用程序来监视不同设备的功耗吗?
我在Ubuntu 12.04下使用了powertop v.2.1,但是错过了power est。专栏。
这与此处描述的情况相同,该错误应该已经得到修复。
我尝试过,lm_sensors
但是没有给出任何电压读数。这是传感器检测和检测的日志。
我不确定是什么引起了问题。我正在Lenovo Thinkpad机器上运行linux内核3.2.0-23-通用,Ubuntu 12.04发行版。
还有其他Linux实用程序来监视不同设备的功耗吗?
Answers:
您也可以安装Powertop 2.3,希望此错误已修复
您需要下载并编译它,因为没有人拥有最新版本
下载powertop https://01.org/powertop/downloads/2013/powertop-v2.3
powertop-2.3.tar.gz <<<单击并下载我
编译之前,您需要安装依赖项
安装依赖项(只需复制粘贴以下命令)
sudo apt-get install libtool autoconf libnl-dev ncurses-dev pciutils-dev build-essential -y
安装Powertop
要构建和安装PowerTOP,请键入以下命令,
cd Downloads/powertop* # assuming that you have downloaded in Downloads folder in you home directory
sudo configure
sudo make # use -j option if you want to see details below
sudo make install
您也可以使用-j2来表示要在./make .Replace -j2中使用多少个内核,以及要用于编译过程的CPU内核数量是多少。例如我用过 ./make -j8
是一个命令行工具,向您显示系统功耗(瓦)。
安装Powerstat
ssudo apt-get install powerstat -y
您可以通过以下方式检查功耗
sudo powerstat
要么
sudo powerstat -d 0
它将显示功耗(瓦)
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
我尝试使用Qasim发布的指南在kubuntu 12.04(3.5内核)上编译powerstat。但是我总是在./configure之后出现错误。错误:找不到libnl和lib-genl。
code checking for pkg-config... no checking for PCIUTILS... no checking for library containing pci_get_dev... -lpci checking for LIBNL... no checking for LIBNL... no checking for LIBNL... no configure: error: libnl and libnl-genl are required but were not found
libnl-dev is already the newest version. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libnl-genl-3-dev : Depends: libnl-3-dev (= 3.2.3-2ubuntu2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.