--- layout: post status: publish published: true title: Powerstat on Ubuntu 12.04 LTS author: display_name: manu login: manu email: manu@santoro.tk url: http://santoro.tk/blog author_login: manu author_email: manu@santoro.tk author_url: http://santoro.tk/blog excerpt: Today, after reading about power management tricks, I needed to run powerstat on my machine, and found out that powertop is not provided in the default Ubuntu 12.04 repositories. I added the Colin King’s ppa (Colin King is the creator

Continue reading

wordpress_id: 4109 wordpress_url: http://santoro.tk/blog/?p=140 date: '2013-03-01 10:57:22 +0000' date_gmt: '2013-03-01 08:57:22 +0000' categories: - PlanetPOuL tags: [] comments: [] ---

Today, after reading about power management tricks, I needed to run powerstat on my machine, and found out that powertop is not provided in the default Ubuntu 12.04 repositories.

I added the Colin King’s ppa (Colin King is the creator of powerstat) but I realized that the version provided in that ppa is too old to run on modern systems.

I wrote an e-mail to Mr. King to let him know about this issue, then I headed to the git repository.

I was surprised to see that powerstat is a simple C program (less than 1500 lines of code long, comments included) and that building it was as easy as typing `make` and pressing enter.

Some simple notes:

 

Bye