9

I used powertop v.2.1 under Ubuntu 12.04 but it missed the power est. column.

It's the same situation as described here‎ and that bug is supposed to be fixed already.

I tried lm_sensors but it didn't give any voltage reading. Here's a log for sensors-detect and sesnors.

I am uncertain what caused the problem. I am running linux kernel 3.2.0-23-generic, Ubuntu 12.04 distro on Lenovo thinkpad machine.

Are there any other Linux utility to monitor power consumption for different devices?

Kevin Q
  • 123

3 Answers3

9

If you newly installed PowerTop, give it some time... It takes a few days to get the estimates correct and then starts displaying. I found this info on the net and also speak from experience...

charlie
  • 1,792
4

Powertop 2.3

You can also install Powertop 2.3 hope this bug is fixed

You need to download and compile it because no one have the latest version

Download powertop https://01.org/powertop/downloads/2013/powertop-v2.3

powertop-2.3.tar.gz < < < Click & Download Me

Before compiling you need to install dependencies

Installing Dependencies ( Just copy paste the following commands )

sudo apt-get install libtool autoconf libnl-dev ncurses-dev pciutils-dev build-essential -y

Installing Powertop

To build and install PowerTOP type the following commands,

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

You can also use -j2 for how many cores you want to use in ./make.Replace -j2 with whatever number of CPU cores you want to use for the compilation process. for example i have used ./make -j8

How do I make Powertop changes permanent?


Powerstat

is a command line tool that shows you your system power consumption in watts.

Install Powerstat

ssudo apt-get install powerstat -y

You can check your power consumption by

  sudo powerstat

OR

 sudo powerstat -d 0

It will shows power consumption in watts

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
  • 22,162
1

I try to compile powerstat on kubuntu 12.04 (3.5 kernel) with the guide posted by Qasim. But i always get Errors after ./configure. Error: Can't find libnl and lib-genl.