]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2016/03/03.rss
Generated.
[homepage.git] / blog / archive / 2016 / 03 / 03.rss
index fdc96bcf120a8ef2c1b29c276886417babb87d29..48f85fb7091902a2a3bb307f73434fa065e8fb6b 100644 (file)
@@ -6,6 +6,61 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
 
        
+       <item>
+               <title>Full battery stats collector is now available in Debian</title>
+               <link>http://people.skolelinux.org/pere/blog/Full_battery_stats_collector_is_now_available_in_Debian.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Full_battery_stats_collector_is_now_available_in_Debian.html</guid>
+                <pubDate>Wed, 23 Mar 2016 22:10:00 +0100</pubDate>
+               <description>&lt;p&gt;Since this morning, the battery-stats package in Debian include an
+extended collector that will collect the complete battery history for
+later processing and graphing.  The original collector store the
+battery level as percentage of last full level, while the new
+collector also record battery vendor, model, serial number, design
+full level, last full level and current battery level.  This make it
+possible to predict the lifetime of the battery as well as visualise
+the energy flow when the battery is charging or discharging.&lt;/p&gt;
+
+&lt;p&gt;The new tools are available in &lt;tt&gt;/usr/share/battery-stats/&lt;/tt&gt;
+in the version 0.5.1 package in unstable.  Get the new battery level graph
+and lifetime prediction by running:
+
+&lt;p&gt;&lt;pre&gt;
+/usr/share/battery-stats/battery-stats-graph /var/log/battery-stats.csv
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;Or select the &#39;Battery Level Graph&#39; from your application menu.&lt;/p&gt;
+
+&lt;p&gt;The flow in/out of the battery can be seen by running (no menu
+entry yet):&lt;/p&gt;
+
+&lt;p&gt;&lt;pre&gt;
+/usr/share/battery-stats/battery-stats-graph-flow
+&lt;/pre&gt;&lt;/p&gt;
+
+&lt;p&gt;I&#39;m not quite happy with the way the data is visualised, at least
+when there are few data points.  The graphs look a bit better with a
+few years of data.&lt;/p&gt;
+
+&lt;p&gt;A while back one important feature I use in the battery stats
+collector broke in Debian.  The scripts in
+&lt;tt&gt;/usr/lib/pm-utils/power.d/&lt;/tt&gt; were no longer executed.  I
+suspect it happened when Jessie started using systemd, but I do not
+know.  The issue is reported as bug #818649 against pm-utils.  I
+managed to work around it by adding an udev rule to call the collector
+script every time the power connector is connected and disconnected.
+With this fix in place it was finally time to make a new release of
+the package, and get it into Debian.&lt;/p&gt;
+
+&lt;p&gt;If you are interested in how your laptop battery is doing, please
+check out the
+&lt;a href=&quot;https://tracker.debian.org/pkg/battery-stats&quot;&gt;battery-stats&lt;/a&gt;
+in Debian unstable, or rebuild it on Jessie to get it working on
+Debian stable. :) The upstream source is available from
+&lt;a href=&quot;https://github.com/petterreinholdtsen/battery-stats&quot;&gt;github&lt;/a&gt;.
+As always, patches are very welcome.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>UsingQR - &quot;Electronic&quot; paper invoices using JSON and QR codes</title>
                <link>http://people.skolelinux.org/pere/blog/UsingQR____Electronic__paper_invoices_using_JSON_and_QR_codes.html</link>