From: Petter Reinholdtsen Date: Thu, 24 Sep 2015 11:12:01 +0000 (+0200) Subject: Improve text and formatting a bit. X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/d3c0bb7998cdbb9d4da99bd53d43836a424b8cf5?ds=sidebyside Improve text and formatting a bit. --- diff --git a/blog/data/2015-09-24-laptop-battery.txt b/blog/data/2015-09-24-laptop-battery.txt index 9630b186e4..638b0350b3 100644 --- a/blog/data/2015-09-24-laptop-battery.txt +++ b/blog/data/2015-09-24-laptop-battery.txt @@ -1,5 +1,5 @@ -Title: The Life and death of a laptop battery -Tags: english +Title: The life and death of a laptop battery +Tags: english, debian Date: 2015-09-24 20:00

When I get a new laptop, the battery life time of the lap top at @@ -10,18 +10,20 @@ Because of this, when I got a new Thinkpad X230 laptop almost two years ago, I decided to monitor its state to have more hard facts when the battery started to fail.

+ +

First I tried to find a sensible Debian package to record the battery status, assuming that this must be a problem already handled by someone else. I found -battery-stats, +battery-stats, which collects statistics from the battery, but it was completely broken. I sent a few suggestions to the maintainer, but decided to write my own collector as a shell script while I waited for feedback from him. Via -a +a blog post about the battery development on a MacBook Air I also discovered -batlog, not +batlog, not available in Debian.

I started my collector 2013-07-15, and it has been collecting @@ -73,8 +75,12 @@ done change in the power status (power plug in or out), and when going into and out of hibernation and suspend. In addition, it collect a value every 10 minutes. This make it possible for me know when the battery -is discharging, charging and how the maximum charge change over -time. The log file look like this:

+is discharging, charging and how the maximum charge change over time. +The code for the Debian package +is now +available on github.

+ +

The collected log file look like this:

 timestamp,manufacturer,model_name,technology,serial_number,energy_full,energy_full_design,energy_now,cycle_count,status,
@@ -84,24 +90,24 @@ timestamp,manufacturer,model_name,technology,serial_number,energy_full,energy_fu
 1443090601,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full,
 
-

I even wrote a small script to create a graph of the charge -development over time. This show the slow death of my Lenovo Thinkpad -X230 laptop battery:

- - +

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 +battery.

-

But why is this happening? Why are my laptop batteries dying, -while the batteries of space probes and satellites keep working year -after year. If we are to believe -Battery -University, the fix is to not charge the Lithium-ion batteries to -100% all the time, but to stay below 90% of full charge most of the -time. I've been told that the Tesla electric cars -limit +

But why is this happening? Why are my laptop batteries always +dying in a year or two, while the batteries of space probes and +satellites keep working year after year. If we are to believe +Battery +University, the cause is me charging the battery whenever I have a +chance, and the fix is to not charge the Lithium-ion batteries to 100% +all the time, but to stay below 90% of full charge most of the time. +I've been told that the Tesla electric cars +limit the charge of their batteries to 80%, with the option to charge to -100% when preparing for a longer trip (not that I would want a Tesla, -but that is another story), which I guess is the option we should have -for laptops on Linux too.

+100% when preparing for a longer trip (not that I would want a car +like Tesla where rights to privacy is abandoned, but that is another +story), which I guess is the option we should have for laptops on +Linux too.

Is there a way with Linux to tell the battery to stop charging at 80%, unless requested to charge to 100% once in preparation for a