]> pere.pagekite.me Git - homepage.git/blob - blog/archive/2016/03/03.rss
464ab5e3c7a32fab4c5c85e4407621877b86fecc
[homepage.git] / blog / archive / 2016 / 03 / 03.rss
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
3 <channel>
4 <title>Petter Reinholdtsen - Entries from March 2016</title>
5 <description>Entries from March 2016</description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7
8
9 <item>
10 <title>Making battery measurements a little easier in Debian</title>
11 <link>http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html</link>
12 <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Making_battery_measurements_a_little_easier_in_Debian.html</guid>
13 <pubDate>Tue, 15 Mar 2016 15:00:00 +0100</pubDate>
14 <description>&lt;p&gt;Back in September, I blogged about
15 &lt;a href=&quot;http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html&quot;&gt;the
16 system I wrote to collect statistics about my laptop battery&lt;/a&gt;, and
17 how it showed the decay and death of this battery (now replaced). I
18 created a simple deb package to handle the collection and graphing,
19 but did not want to upload it to Debian as there were already
20 &lt;a href=&quot;https://tracker.debian.org/pkg/battery-stats&quot;&gt;a battery-stats
21 package in Debian&lt;/a&gt; that should do the same thing, and I did not see
22 a point of uploading a competing package when battery-stats could be
23 fixed instead. I reported a few bugs about its non-function, and
24 hoped someone would step in and fix it. But no-one did.&lt;/p&gt;
25
26 &lt;p&gt;I got tired of waiting a few days ago, and took matters in my own
27 hands. The end result is that I am now the new upstream developer of
28 battery stats (&lt;a href=&quot;https://github.com/petterreinholdtsen/battery-stats&quot;&gt;available from github&lt;/a&gt;) and part of the team maintaining
29 battery-stats in Debian, and the package in Debian unstable is finally
30 able to collect battery status using the &lt;tt&gt;/sys/class/power_supply/&lt;/tt&gt;
31 information provided by the Linux kernel. If you install the
32 battery-stats package from unstable now, you will be able to get a
33 graph of the current battery fill level, to get some idea about the
34 status of the battery. The source package build and work just fine in
35 Debian testing and stable (and probably oldstable too, but I have not
36 tested). The default graph you get for that system look like this:&lt;/p&gt;
37
38 &lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;http://people.skolelinux.org/pere/blog/images/2016-03-15-battery-stats-graph-example.png&quot; width=&quot;70%&quot; align=&quot;center&quot;&gt;&lt;/p&gt;
39
40 &lt;p&gt;My plans for the future is to merge my old scripts into the
41 battery-stats package, as my old scripts collected a lot more details
42 about the battery. The scripts are merged into the upstream
43 battery-stats git repository already, but I am not convinced they work
44 yet, as I changed a lot of paths along the way. Will have to test a
45 bit more before I make a new release.&lt;/p&gt;
46
47 &lt;p&gt;I will also consider changing the file format slightly, as I
48 suspect the way I combine several values into one field might make it
49 impossible to know the type of the value when using it for processing
50 and graphing.&lt;/p&gt;
51
52 &lt;p&gt;If you would like I would like to keep an close eye on your laptop
53 battery, check out the battery-stats package in
54 &lt;a href=&quot;https://tracker.debian.org/pkg/battery-stats&quot;&gt;Debian&lt;/a&gt; and
55 on
56 &lt;a href=&quot;https://github.com/petterreinholdtsen/battery-stats&quot;&gt;github&lt;/a&gt;.
57 I would love some help to improve the system further.&lt;/p&gt;
58 </description>
59 </item>
60
61 </channel>
62 </rss>