Saving power is one of the major concerns of the modern world. You see cities observing Earth Hours, studies showing how computers consume excess power when kept running and so on. Even if you would view it from your personal perspective, saving power can make your laptop batteries last longer and provide longer battery backup.
If you use Linux, there is an excellent tool that gives you loads of information about your computer’s power consumption as well as the software that is causing your battery to drain. Its called PowerTop.
PowerTop was originally developed by Intel and it lets you measure and explain your computer’s power consumption.
As always, check your distribution’s package manager for a package named ‘powertop’. If you cannot find it listed there, head over to theand download the tar ball which you can compile and run.
Be sure to run PowerTop with root privileges. It takes about 5 seconds to collect data and it then presents its findings for your consideration. The output can be overwhelming for the uninitiated so lets go through it briefly:
The first part represents the C-States. C-States are the operating modes of the CPU and are usually represented in the form of “Cx” where x is a number. The higher this number, the less power will be used by the CPU in that state. So in this first part you will see the amount of time the CPU has been in each of these states.
P-states shows the frequency the processor is currently running on. In its idle state it will be running at the lowest supported frequency.
The next part represents “Wakeups per second” and means how many times the CPU has been woken from an idle state. Of course, the smaller the value of this number, the better your computer is performing in terms of power consumption.
The next part shows the battery information if you are using a laptop or no information if you are on a desktop.
Then it lists the top reasons for wakeups. This is the most interesting part as it shows which of the software is causing the CPU to wake from an idle state and thus consume power. The PowerTop website also offers patches for many software which are reported to be reasons for unnecessary power consumption.
Lastly the program lists some suggestions you can follow to decrease the power consumption of your computer.
So once you have the output and you’ve read it, what should you then do about it? Well a couple of straight forward steps that you can follow:
- Look for the top causes for wakeups and see if you can disable some of them. It may be bluetooth or wi-fi when you don’t need them or something else. If you don’t need them then disable them.
- Check out the .
- Look for software patches on the PowerTop website and apply them (make sure to check versions, as some of them may be outdated). They tend to take care of bugs (or provide workarounds) to code that causes the CPU to wake up constantly.
- Follow the suggestions PowerTop has to offer. You might want to Google the message it gives you if it seems to be a bit too geeky for you. Chances are you will find a step by step guide to achieve the same.
- Read Saikat’s article on conserving battery power. Although not directly related to the analysis method which we just followed, he provides some pretty nifty tips in general that you must check out.
PowerTop not only monitors the power consumption but also provides you with detailed information on how you can minimize the consumption. An indispensable tool for laptop users especially. After tweaking for some days I really got the battery power back up and I am still not convinced I have the perfect setup (working on it).
How do you minimize your laptop’s power consumption? Turning off Wi-Fi or turning down the screen brightness or something else? We would really like to hear about them in the comments.