X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/b386543f6fb4f168c1c755b23d1be3458df7b25e..3b0edf1279c4f536eaaf8a22e7bd302bec8f869b:/blog/index.rss diff --git a/blog/index.rss b/blog/index.rss index 32d0e41c04..d9123b6243 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -6,6 +6,258 @@ http://people.skolelinux.org/pere/blog/ + + Snurpenot-overvåkning av sensitiv personinformasjon + http://people.skolelinux.org/pere/blog/Snurpenot_overv_kning_av_sensitiv_personinformasjon.html + http://people.skolelinux.org/pere/blog/Snurpenot_overv_kning_av_sensitiv_personinformasjon.html + Mon, 9 Nov 2015 22:30:00 +0100 + <p>Tenk om et norsk sykehus delte informasjon om hva som blir lest og +hvem som leser på sykehusets nettsted, med noen som samarbeider med et +fremmed lands etterretningsvesen, og at flere andre fremmede lands +etterretningstjenester kan snappe opp informasjonen.</p> + +<p>Tenk om flere sykehus, kommuner, helsestasjoner, universitet, +høyskoler, grunnskoler, Stortinget, det meste av offentlig +forvaltning, medier, adopsjonstjenester og krisesenter gjør det +samme?</p> + +<p>Tenk om de som lytter kan holde oversikt over norske borgeres +interesser, sykdommer, rusmisbruk, adopsjon, abort, barnehager, +politiske interesser og sympatier samt hvilke argumenter som har best +effekt på beslutningstagere og måter de kan påvirkes. Ville det gitt +grunn til bekymring?</p> + +<p>Høres det ut som noe tatt ut fra fantasien til George Orwell, +forfatteren av dystopien 1984? Det er virkeligheten i Norge i dag, +takket være bruken av statistikktjenester som Google Analytics.</p> + +<p><strong>Du kan beskytte deg</strong></p> + +<p>Men borgerne har et forsvar mot dette angrepet på privatsfæren. +Dagens nettlesere har utvidelser som støtter å blokkere slik +utlevering av informasjon. Personlig bruker jeg Privacy Badger, +Ghostery, NoScript og AdBlock, og anbefaler alle å gjøre noe +tilsvarende. Merk at noen av verktøyene lekker informasjon, i tillegg +til å gjøre en nyttig jobb, så det er lurt å bruke flere sammen. I +tillegg bør hver og en av oss sende inn protest til organisasjonene +bak nettsteder som bidrar til dette inngrepet i privatsfæren.</p> + +<p><strong>Hvem bidrar til overvåkningen?</strong></p> + +<p>Takket være Ghostery la jeg merke til at flere og flere norske +nettsteder begynte å la Google Analytics overvåke brukerne. Jeg ble +nysgjerrig på hvor mange det gjaldt, og gikk igjennom ca. 2700 norske +nettsteder, hovedsakelig offentlig forvaltning. Jeg laget et system +for å koble seg opp automatisk og sjekke hvor nettstedene spredte +informasjon om besøket. Jeg ble overrasket både over omfanget og hva +slags nettsteder som rapporterer besøksinformasjon ut av landet. +Omtrent 70 prosent av de 2700 sender informasjon til Google Analytics. +Noen tilfeldige eksempler er Akershus Universitetssykehus, Sykehuset +Østfold, Lommelegen, Oslo krisesenter, Stortinget, den norske +regjering, de fleste politiske partier på Stortinget, NAV, Altinn, +NRK, TV2, Helse Førde, Helse Stavanger, Oslo kommune, +Nasjonalbiblioteket, Pasientombudet, Kongehuset, Politiet, +Teknologirådet, Tollvesenet, Norsk romsenter, Forsvarsbygg og +Sivilforsvaret. Og det er mange flere.</p> + +<p>Hvordan kan det offentlige Norge omfavne en slik praksis? Det er +gode hensikter bak. Google har laget en god tjeneste for +nettstedseiere, der de uten å betale med noe annet enn en bit av de +besøkenes privatsfære får tilgang til nyttig og presis statistikk over +nettstedets bruk ved å besøke netttjenesten hos Google. De færreste +merker ulempene angrepet på privatsfæren som nettstedene og Google +utgjør.</p> + +<p><strong>Hvordan foregår det?</strong></p> + +<p>I nettsider kan nettsteder legge inn lenker til programkode som +skal kjøres av brukerens nettleser. De som tar i bruk Google +Analytics legger typisk inn lenke til et javascript-program hos Google +som ber nettleseren ta kontakt med Google og dele IP-adresse, side +besøkt, aktuelle cookies og endel informasjon om nettleseren med +Google Analytics. Programmet trenger ikke være det samme for alle som +henter det fra Google. Det finnes et Google Analytics-tilvalg kalt +«anonymisering» som nettstedeier kan ta i bruk. Dette instruerer det +omtalte programmet om å be Google slette deler av den oversendte +IP-adressen. Full IP-adresse sendes likevel over og er tilgjengelig +for alle som snapper opp informasjonen underveis.</p> + +<p>Takket være varsleren Edward Snowden, som bidro til uvurderlig +dokumentasjon på snurpenot-overvåkningen som nordmenn blir utsatt for, +vet vi at Google samarbeider med USAs etteretning som avlytter trafikk +sendt til Google Analytics.</p> + +<p>Men allerede før Snowden var det bekreftet at både britiske GCHQ og +USAs NSA avlytter og lagrer blant annet Internett-trafikk som er innom +et av landene, i tillegg til at FRA i Sverige avlytter og lagrer +trafikk som passerte grensa til Sverige.</p> + +<p>Og som +<a href="http://www.dn.no/tekno/2013/02/03/amerikanerne-kan-se-hvert-ord-du-skriver">Datatilsynet +sa til Dagens Næringsliv i 2013</a> kunne de vanskelig nekte bruk av +skytjenester som Google Analytics når Norge var bundet av EUs «Safe +Harbour»-avtale med USA. De måtte derfor se bort fra +f.eks. FISAAA-loven (som lar NSA avlytte Internett-trafikk) i sine +vurderinger. Når nå EUs «Safe Harbour»-avtale er underkjent, og det +foreslås å bruke individuell avtalerett mellom selskaper som juridisk +grunnlag for å sende personopplysninger til USA, er det greit å huske +på at FISAA-loven og andre som brukes av USA som grunnlag for +masseovervåkning overstyrer slike avtaler.</p> + +<p>For øvrig burde varsleren Edward Snowden få politisk asyl i +Norge.</p> + + + + + TISA - nok en problematisk og hemmelig handelsavtale + http://people.skolelinux.org/pere/blog/TISA___nok_en_problematisk_og_hemmelig_handelsavtale.html + http://people.skolelinux.org/pere/blog/TISA___nok_en_problematisk_og_hemmelig_handelsavtale.html + Thu, 5 Nov 2015 09:20:00 +0100 + <p>Norge er aktiv i Trade in Services Agreement-forhandlingene, og +regjeringen forteller at +«<a href="https://www.regjeringen.no/no/tema/utenrikssaker/handelspolitikk/tisa/id2403335/">TISA +vil sikre norske tjenesteeksportører forutsigbar og +ikke-diskriminerende adgang til utenlandske tjenestemarkeder</a>». +Det er mulig at det stemmer. Men den gjør mye mer enn det. Avtalen +forhandles i hemmelighet, og kun takket være +<a href="https://wikileaks.org/tisa/">Wikileaks</a> er +utkast og biter kjent i offentligheten. Det som er blitt kjent er +for eksempel at TISA kan +<a href="https://www.techdirt.com/articles/20150604/06324931218/tisa-agreement-might-outlaw-governments-mandating-open-source-software-many-situations.shtml">blokkere +myndigheter fra å kreve bruk av fri programvare i mange +situasjoner</a>, hvilket vil fjerne muligheten vår til å ha kontroll +over egne datasystemer i slike tilfeller. Den kan også +<a href="https://www.eff.org/deeplinks/2015/05/tisa-yet-another-leaked-treaty-youve-never-heard-makes-secret-rules-internet">blokkere +Norges mulighet til å holde kontroll med overføring av +personinformasjon ut av landet</a>, hvilket Snowden-bekreftelsene har +dokumentert er svært problematisk. + +<p>Jeg ble derfor veldig glad da jeg i dag ble tipset i dag om at det +allerede finnes en aktiv organisasjon, +<a href="http://www.folkeaksjonenmottisa.no/">Folkeaksjonen mot +TISA</a>, som jobber for å hindre at Norge signerer på TISA-avtalen. +Her må alle gode krefter jobbe sammen. Jeg skal sende dem litt +penger, og se om jeg har kapasitet til å bidra med mer.</p> + + + + + Is Pentagon deciding the Norwegian negotiating position on Internet governance? + http://people.skolelinux.org/pere/blog/Is_Pentagon_deciding_the_Norwegian_negotiating_position_on_Internet_governance_.html + http://people.skolelinux.org/pere/blog/Is_Pentagon_deciding_the_Norwegian_negotiating_position_on_Internet_governance_.html + Tue, 3 Nov 2015 13:40:00 +0100 + <p>In Norway, all government offices are required by law to keep a +list of every document or letter arriving and leaving their offices. +Internal notes should also be documented. The document list (called a mail +journal - "postjournal" in Norwegian) is public information and thanks +to the Norwegian Freedom of Information Act (Offentleglova) the mail +journal is available for everyone. Most offices even publish the mail +journal on their web pages, as PDFs or tables in web pages. The state-level offices even have a shared web based search service (called +<a href="https://www.oep.no/">Offentlig Elektronisk Postjournal - +OEP</a>) to make it possible to search the entries in the list. Not +all journal entries show up on OEP, and the search service is hard to +use, but OEP does make it easier to find at least some interesting +journal entries .</p> + +<p>In 2012 I came across a document in the mail journal for the +Norwegian Ministry of Transport and Communications on OEP that +piqued my interest. The title of the document was +"<a href="https://www.oep.no/search/resultSingle.html?journalPostId=4192362">Internet +Governance and how it affects national security</a>" (Norwegian: +"Internet Governance og påvirkning på nasjonal sikkerhet"). The +document date was 2012-05-22, and it was said to be sent from the +"Permanent Mission of Norway to the United Nations". I asked for a +copy, but my request was rejected with a reference to a legal clause said to authorize them to reject it +(<a href="http://lovdata.no/lov/2006-05-19-16/§20">offentleglova § 20, +letter c</a>) and an explanation that the document was exempt because +of foreign policy interests as it contained information related to the +Norwegian negotiating position, negotiating strategies or similar. I +was told the information in the document related to the ongoing +negotiation in the International Telecommunications Union (ITU). The +explanation made sense to me in early January 2013, as a ITU +conference in Dubay discussing Internet Governance +(<a href="https://en.wikipedia.org/wiki/International_Telecommunication_Union#World_Conference_on_International_Telecommunications_2012_.28WCIT-12.29">World +Conference on International Telecommunications - WCIT-12</a>) had just +ended, +<a href="http://www.digi.no/kommentarer/2012/12/18/tvil-om-usas-rolle-pa-teletoppmote">reportedly +in chaos</a> when USA walked out of the negotiations and 25 countries +including Norway refused to sign the new treaty. It seemed +reasonable to believe talks were still going on a few weeks later. +Norway was represented at the ITU meeting by two authorities, the +<a href="http://www.nkom.no/">Norwegian Communications Authority</a> +and the <a href="https://www.regjeringen.no/no/dep/sd/">Ministry of +Transport and Communications</a>. This might be the reason the letter +was sent to the ministry. As I was unable to find the document in the +mail journal of any Norwegian UN mission, I asked the ministry who had +sent the document to the ministry, and was told that it was the Deputy +Permanent Representative with the Permanent Mission of Norway in +Geneva.</p> + +<p>Three years later, I was still curious about the content of that +document, and again asked for a copy, believing the negotiation was +over now. This time +<a href="https://mimesbronn.no/request/kopi_av_dokumenter_i_sak_2012914">I +asked both the Ministry of Transport and Communications as the +receiver</a> and +<a href="https://mimesbronn.no/request/brev_om_internet_governance_og_p">asked +the Permanent Mission of Norway in Geneva as the sender</a> for a +copy, to see if they both agreed that it should be withheld from the +public. The ministry upheld its rejection quoting the same law +reference as before, while the permanent mission rejected it quoting a +different clause +(<a href="http://lovdata.no/lov/2006-05-19-16/§20">offentleglova § 20 +letter b</a>), claiming that they were required to keep the +content of the document from the public because it contained +information given to Norway with the expressed or implied expectation +that the information should not be made public. I asked the permanent +mission for an explanation, and was told that the document contained +an account from a meeting held in the Pentagon for a limited group of NATO +nations where the organiser of the meeting did not intend the content +of the meeting to be publicly known. They explained that giving me a +copy might cause Norway to not get access to similar information in +the future and thus hurt the future foreign interests of Norway. They +also explained that the Permanent Mission of Norway in Geneva was not +the author of the document, they only got a copy of it, and because of +this had not listed it in their mail journal.</p> + +<p>Armed with this +knowledge I asked the Ministry to reconsider and asked who was the +author of the document, now realising that it was not same as the +"sender" according to Ministry of Transport and Communications. The +ministry upheld its rejection but told me the name of the author of +the document. According to +<a href="https://www.regjeringen.no/no/aktuelt/unga69_rapport1/id2001204/">a +government report</a> the author was with the Permanent Mission of +Norway in New York a bit more than a year later (2014-09-22), so I +guessed that might be the office responsible for writing and sending +the report initially and +<a href="https://www.mimesbronn.no/request/mote_2012_i_pentagon_om_itu">asked +them for a copy</a> but I was obviously wrong as I was told that the +document was unknown to them and that the author did not work there +when the document was written. Next, I asked the Permanent Mission of +Norway in Geneva and the Foreign Ministry to reconsider and at least +tell me who sent the document to Deputy Permanent Representative with +the Permanent Mission of Norway in Geneva. The Foreign Ministry also +upheld its rejection, but told me that the person sending the document +to Permanent Mission of Norway in Geneva was the defence attaché with +the Norwegian Embassy in Washington. I do not know if this is the +same person as the author of the document.</p> + +<p>If I understand the situation correctly, someone capable of +inviting selected NATO nations to a meeting in Pentagon organised a +meeting where someone representing the Norwegian defence attaché in +Washington attended, and the account from this meeting is interpreted +by the Ministry of Transport and Communications to expose Norways +negotiating position, negotiating strategies and similar regarding the +ITU negotiations on Internet Governance. It is truly amazing what can +be derived from mere meta-data.</p> + +<p>I wonder which NATO countries besides Norway attended this meeting? +And what exactly was said and done at the meeting? Anyone know?</p> + + + New book, "Fri kultur" by @lessig, a Norwegian Bokmål translation of "Free Culture" from 2004 http://people.skolelinux.org/pere/blog/New_book___Fri_kultur__by__lessig__a_Norwegian_Bokm_l_translation_of__Free_Culture__from_2004.html @@ -13,13 +265,13 @@ Sat, 31 Oct 2015 09:00:00 +0100 <p>People keep asking me where to get the various forms of the book I published last week, the Norwegian Bokmål edition of Lawrence Lessigs -book Free Culture. It was published on paper via lulu.com, and is -also available in PDF, ePub and MOBI format. I currently sell the -paper edition for self cost from lulu.com, but might extend the -distribution to book stores like Amazon and Barnes & Noble later. -This will double the price and force me to make a profit from selling -the book. Anyway, here are links to get the book in different -formats:</p> +book <a href="http://www.free-culture.cc/">Free Culture</a>. It was +published on paper via lulu.com, and is also available in PDF, ePub +and MOBI format. I currently sell the paper edition for self cost +from lulu.com, but might extend the distribution to book stores like +Amazon and Barnes & Noble later. This will double the price and force +me to make a profit from selling the book. Anyway, here are links to +get the book in different formats:</p> <ul> @@ -346,234 +598,5 @@ my parents.</p> - - Alle Stortingets mobiltelefoner kontrolleres fra USA... - http://people.skolelinux.org/pere/blog/Alle_Stortingets_mobiltelefoner_kontrolleres_fra_USA___.html - http://people.skolelinux.org/pere/blog/Alle_Stortingets_mobiltelefoner_kontrolleres_fra_USA___.html - Wed, 7 Oct 2015 09:55:00 +0200 - <p>Jeg lot meg fascinere av -<a href="http://www.aftenposten.no/nyheter/iriks/politikk/Stortinget-har-tilgang-til-a-fjernstyre-600-mobiler-8192692.html">en -artikkel i Aftenposten</a> der det fortelles at «over 600 telefoner som -benyttes av stortingsrepresentanter, rådgivere og ansatte på -Stortinget, kan «fjernstyres» ved hjelp av -<a href="https://play.google.com/store/apps/details?id=com.airwatch.androidagent">programvaren -Airwatch</a>, et såkalte MDM-program (Mobile Device Managment)». Det -hele bagatelliseres av Stortingets IT-stab, men det er i hovedsak på -grunn av at journalisten ikke stiller de relevante spørsmålene. For -meg er det relevante spørsmålet hvem som har lovlig tilgang (i henhold -til lokal lovgiving, dvs. i hvert fall i Norge, Sverige, UK og USA) -til informasjon om og på telefonene, og hvor enkelt det er å skaffe -seg tilgang til hvor mobilene befinner seg og informasjon som befinner -seg på telefonene ved hjelp av utro tjenere, trusler, innbrudd og -andre ulovlige metoder.</p> - -<p>Bruken av AirWatch betyr i realiteten at USAs etteretning og -politimyndigheter har full tilgang til stortingets mobiltelefoner, -inkludert posisjon og innhold, takket være -<a href="https://en.wikipedia.org/wiki/Foreign_Intelligence_Surveillance_Act_of_1978_Amendments_Act_of_2008">FISAAA-loven</a> -og -"<a href="https://en.wikipedia.org/wiki/National_security_letter">National -Security Letters</a>" og det enkle faktum at selskapet -<a href="http://www.airwatch.com/">AirWatch</a> er kontrollert av et -selskap i USA. I tillegg er det kjent at flere lands -etterretningstjenester kan lytte på trafikken når den passerer -landegrensene.</p> - -<p>Jeg har bedt om mer informasjon -<a href="https://www.mimesbronn.no/request/saksnummer_for_saker_anganede_br">fra -Stortinget om bruken av AirWatch</a> via Mimes brønn så får vi se hva -de har å fortelle om saken. Fant ingenting om 'airwatch' i -postjournalen til Stortinget, så jeg trenger hjelp før jeg kan be om -innsyn i konkrete dokumenter.</p> - -<p>Oppdatering 2015-10-07: Jeg er blitt spurt hvorfor jeg antar at -AirWatch-agenten rapporterer til USA og ikke direkte til Stortingets -egen infrastruktur. Det stemmer at det er teknisk mulig å sette -opp mobiltelefonene til å rapportere til datamaskiner som eies av -Stortinget. Jeg antar det rapporteres til AirWatch sine sentrale -tjenester basert på det jeg leste fra beskrivelsen av -<a href="http://www.airwatch.com/solutions/mobile-device-management/">Mobile -Device Management</A> på AirWatch sine egne nettsider, koblet med at -det brukes en standard app som kan hentes fra "app-butikkene" for å få -tilgang. Enten må app-en settes opp individuelt hos Stortinget, eller -så får den beskjed fra AirWatch i USA om hvor den skal koble seg opp. -I det første tilfellet vil den ikke rapportere direkte til USA, men -til programvare utviklet av AirWatch som kjører på en maskin under -Stortingets kontroll. Det er litt bedre, men fortsatt vil det være -umulig for Stortinget å være sikker på hva programvaren som tar imot -forbindelser gjør. Jeg ser fra beskrivelsen av -<a href="http://www.airwatch.com/differentiators/enterprise-integration/">Enterprice -Integration</a> hos AirWatch at det er mulig å ha lokal installasjon, -og håper innsynsforespørsler mot Stortinget kan fortelle mer om -hvordan ting konkret fungerer der.</p> - - - - - French Docbook/PDF/EPUB/MOBI edition of the Free Culture book - http://people.skolelinux.org/pere/blog/French_Docbook_PDF_EPUB_MOBI_edition_of_the_Free_Culture_book.html - http://people.skolelinux.org/pere/blog/French_Docbook_PDF_EPUB_MOBI_edition_of_the_Free_Culture_book.html - Thu, 1 Oct 2015 13:20:00 +0200 - <p>As I wrap up the Norwegian version of -<a href="https://github.com/petterreinholdtsen/free-culture-lessig">Free -Culture</a> book by Lawrence Lessig (still waiting for my final proof -reading copy to arrive in the mail), my great -<a href="http://dblatex.sourceforge.net/">dblatex</a> helper and -developer of the dblatex docbook processor, Benoît Guillon, decided a -to try to create a French version of the book. He started with the -French translation available from the -<a href="http://www.wikilivres.ca/wiki/Culture_libre">Wikilivres wiki -pages</a>, and wrote a program to convert it into a PO file, allowing -the translation to be integrated into the po4a based framework I use -to create the Norwegian translation from the English edition. We meet -on the <a href="irc://irc.freenode.net/%23dblatex">#dblatex IRC -channel</a> to discuss the work. If you want to help create a French -edition, check out -<a href="https://github.com/marsgui/free-culture-lessig">his git -repository</a> and join us on IRC. If the French edition look good, -we might publish it as a paper book on lulu.com. A French version of -the drawings and the cover need to be provided for this to happen.</p> - - - - - The life and death of a laptop battery - http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html - http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html - Thu, 24 Sep 2015 16:00:00 +0200 - <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 -within a year, the life time is just a fraction of what it used to be, -and it slowly become painful to use the laptop without power connected -all the time. Because of this, when I got a new Thinkpad X230 laptop -about two years ago, I decided to monitor its battery state to have -more hard facts when the battery started to fail.</p> - -<img src="http://people.skolelinux.org/pere/blog/images/2015-09-24-laptop-battery-graph.png"/> - -<p>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 -<a href="https://tracker.debian.org/pkg/battery-stats">battery-stats</a>, -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 href="http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html">a -blog post about the battery development on a MacBook Air</a> I also -discovered -<a href="https://github.com/jradavenport/batlog.git">batlog</a>, not -available in Debian.</p> - -<p>I started my collector 2013-07-15, and it has been collecting -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 capacity. My -collector shell script is quite simple and look like this:</p> - -<pre> -#!/bin/sh -# Inspired by -# http://www.ifweassume.com/2013/08/the-de-evolution-of-my-laptop-battery.html -# See also -# http://blog.sleeplessbeastie.eu/2013/01/02/debian-how-to-monitor-battery-capacity/ -logfile=/var/log/hjemmenett-battery-status.log - -files="manufacturer model_name technology serial_number \ - energy_full energy_full_design energy_now cycle_count status" - -if [ ! -e "$logfile" ] ; then - ( - printf "timestamp," - for f in $files; do - printf "%s," $f - done - echo - ) > "$logfile" -fi - -log_battery() { - # Print complete message in one echo call, to avoid race condition - # when several log processes run in parallel. - msg=$(printf "%s," $(date +%s); \ - for f in $files; do \ - printf "%s," $(cat $f); \ - done) - echo "$msg" -} - -cd /sys/class/power_supply - -for bat in BAT*; do - (cd $bat && log_battery >> "$logfile") -done -</pre> - -<p>The script is called when the power management system detect a -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 code for the Debian package -<a href="https://github.com/petterreinholdtsen/battery-status">is now -available on github</a>.</p> - -<p>The collected log file look like this:</p> - -<pre> -timestamp,manufacturer,model_name,technology,serial_number,energy_full,energy_full_design,energy_now,cycle_count,status, -1376591133,LGC,45N1025,Li-ion,974,62800000,62160000,39050000,0,Discharging, -[...] -1443090528,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full, -1443090601,LGC,45N1025,Li-ion,974,4900000,62160000,4900000,0,Full, -</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 my laptop -battery.</p> - -<p>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 -<a href="http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries">Battery -University</a>, 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 -<a href="http://my.teslamotors.com/de_CH/forum/forums/battery-charge-limit">limit -the charge of their batteries to 80%</a>, with the option to charge to -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.</p> - -<p>Is there a good and generic way with Linux to tell the battery to -stop charging at 80%, unless requested to charge to 100% once in -preparation for a longer trip? I found -<a href="http://askubuntu.com/questions/34452/how-can-i-limit-battery-charging-to-80-capacity">one -recipe on askubuntu for Ubuntu to limit charging on Thinkpad to -80%</a>, but could not get it to work (kernel module refused to -load).</p> - -<p>I wonder why the battery capacity was reported to be more than 100% -at the start. I also wonder why the "full capacity" increases some -times, and if it is possible to repeat the process to get the battery -back to design capacity. And I wonder if the discharge and charge -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> - - -