From: Petter Reinholdtsen Date: Tue, 15 Mar 2016 14:08:28 +0000 (+0100) Subject: Generated. X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/358356cb3b7e8202c3284503f772fbab7ed66323?ds=sidebyside Generated. --- diff --git a/blog/archive/2016/03/03.rss b/blog/archive/2016/03/03.rss new file mode 100644 index 0000000000..464ab5e3c7 --- /dev/null +++ b/blog/archive/2016/03/03.rss @@ -0,0 +1,62 @@ + + + + Petter Reinholdtsen - Entries from March 2016 + Entries from March 2016 + http://people.skolelinux.org/pere/blog/ + + + + Making battery measurements a little easier in Debian + http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html + http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html + Tue, 15 Mar 2016 15:00:00 +0100 + <p>Back in September, I blogged about +<a href="http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html">the +system I wrote to collect statistics about my laptop battery</a>, and +how it showed the decay and death of this battery (now replaced). I +created a simple deb package to handle the collection and graphing, +but did not want to upload it to Debian as there were already +<a href="https://tracker.debian.org/pkg/battery-stats">a battery-stats +package in Debian</a> that should do the same thing, and I did not see +a point of uploading a competing package when battery-stats could be +fixed instead. I reported a few bugs about its non-function, and +hoped someone would step in and fix it. But no-one did.</p> + +<p>I got tired of waiting a few days ago, and took matters in my own +hands. The end result is that I am now the new upstream developer of +battery stats (<a href="https://github.com/petterreinholdtsen/battery-stats">available from github</a>) and part of the team maintaining +battery-stats in Debian, and the package in Debian unstable is finally +able to collect battery status using the <tt>/sys/class/power_supply/</tt> +information provided by the Linux kernel. If you install the +battery-stats package from unstable now, you will be able to get a +graph of the current battery fill level, to get some idea about the +status of the battery. The source package build and work just fine in +Debian testing and stable (and probably oldstable too, but I have not +tested). The default graph you get for that system look like this:</p> + +<p align="center"><img src="http://people.skolelinux.org/pere/blog/images/2016-03-15-battery-stats-graph-example.png" width="70%" align="center"></p> + +<p>My plans for the future is to merge my old scripts into the +battery-stats package, as my old scripts collected a lot more details +about the battery. The scripts are merged into the upstream +battery-stats git repository already, but I am not convinced they work +yet, as I changed a lot of paths along the way. Will have to test a +bit more before I make a new release.</p> + +<p>I will also consider changing the file format slightly, as I +suspect the way I combine several values into one field might make it +impossible to know the type of the value when using it for processing +and graphing.</p> + +<p>If you would like I would like to keep an close eye on your laptop +battery, check out the battery-stats package in +<a href="https://tracker.debian.org/pkg/battery-stats">Debian</a> and +on +<a href="https://github.com/petterreinholdtsen/battery-stats">github</a>. +I would love some help to improve the system further.</p> + + + + + diff --git a/blog/archive/2016/03/index.html b/blog/archive/2016/03/index.html new file mode 100644 index 0000000000..75d9441722 --- /dev/null +++ b/blog/archive/2016/03/index.html @@ -0,0 +1,451 @@ + + + + + Petter Reinholdtsen: entries from March 2016 + + + + + + +
+

+ Petter Reinholdtsen + +

+ +
+ + +

Entries from March 2016.

+ +
+ +
+ 15th March 2016 +
+
+

Back in September, I blogged about +the +system I wrote to collect statistics about my laptop battery, and +how it showed the decay and death of this battery (now replaced). I +created a simple deb package to handle the collection and graphing, +but did not want to upload it to Debian as there were already +a battery-stats +package in Debian that should do the same thing, and I did not see +a point of uploading a competing package when battery-stats could be +fixed instead. I reported a few bugs about its non-function, and +hoped someone would step in and fix it. But no-one did.

+ +

I got tired of waiting a few days ago, and took matters in my own +hands. The end result is that I am now the new upstream developer of +battery stats (available from github) and part of the team maintaining +battery-stats in Debian, and the package in Debian unstable is finally +able to collect battery status using the /sys/class/power_supply/ +information provided by the Linux kernel. If you install the +battery-stats package from unstable now, you will be able to get a +graph of the current battery fill level, to get some idea about the +status of the battery. The source package build and work just fine in +Debian testing and stable (and probably oldstable too, but I have not +tested). The default graph you get for that system look like this:

+ +

+ +

My plans for the future is to merge my old scripts into the +battery-stats package, as my old scripts collected a lot more details +about the battery. The scripts are merged into the upstream +battery-stats git repository already, but I am not convinced they work +yet, as I changed a lot of paths along the way. Will have to test a +bit more before I make a new release.

+ +

I will also consider changing the file format slightly, as I +suspect the way I combine several values into one field might make it +impossible to know the type of the value when using it for processing +and graphing.

+ +

If you would like I would like to keep an close eye on your laptop +battery, check out the battery-stats package in +Debian and +on +github. +I would love some help to improve the system further.

+ +
+
+ + + Tags: debian, english. + + +
+
+
+ +

RSS Feed

+ +

+ Created by Chronicle v4.6 +

+ + +