]> pere.pagekite.me Git - homepage.git/blobdiff - blog/data/2015-09-24-laptop-battery.txt
Generated.
[homepage.git] / blog / data / 2015-09-24-laptop-battery.txt
index eb3b4473b4693d17a77b06561ccef326f5280261..5aa5026c8f93244eb2ea9f362cf1088ecbf08505 100644 (file)
@@ -1,6 +1,6 @@
 Title: The life and death of a laptop battery
 Tags: english, debian
-Date: 2015-09-24 20:00
+Date: 2015-09-24 16:00
 
 <p>When I get a new laptop, the battery life time at the start is OK.
 But this do not last.  The last few laptops gave me a feeling that
@@ -30,8 +30,8 @@ available in Debian.</p>
 battery stats ever since. Now my
 /var/log/hjemmenett-battery-status.log file contain around 115,000
 measurements, from the time the battery was working great until now,
-when it is unable to charge above 7% of original capasity.  My
-colletor shell script is quite simple and look like this:</p>
+when it is unable to charge above 7% of original capacity.  My
+collector shell script is quite simple and look like this:</p>
 
 <pre>
 #!/bin/sh
@@ -56,7 +56,7 @@ fi
 
 log_battery() {
     # Print complete message in one echo call, to avoid race condition
-    # when several log processes run in parallell.
+    # when several log processes run in parallel.
     msg=$(printf "%s," $(date +%s); \
        for f in $files; do \
            printf "%s," $(cat $f); \
@@ -91,7 +91,7 @@ timestamp,manufacturer,model_name,technology,serial_number,energy_full,energy_fu
 </pre>
 
 <p>I wrote a small script to create a graph of the charge development
-over time.  This graph depicted above show the slow death of mylaptop
+over time.  This graph depicted above show the slow death of my laptop
 battery.</p>
 
 <p>But why is this happening?  Why are my laptop batteries always
@@ -125,3 +125,11 @@ speed change over time, or if this stay the same.  I did not yet try
 to write a tool to calculate the derivative values of the battery
 level, but suspect some interesting insights might be learned from
 those.</p>
+
+<p>Update 2015-09-24: I got a tip to install the packages
+acpi-call-dkms and tlp (unfortunately missing in Debian stable)
+packages instead of the tp-smapi-dkms package I had tried to use
+initially, and use 'tlp setcharge 40 80' to change when charging start
+and stop.  I've done so now, but expect my existing battery is toast
+and need to be replaced.  The proposal is unfortunately Thinkpad
+specific.</p>