Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

x121e Charging threshold on linux

Linux on ThinkPads
Post Reply
Message
Author
Shancial
Posts: 1
Joined: Sat Jan 28, 2012 11:28 am
Location: Oulu, Finland

x121e Charging threshold on linux

#1 Post by Shancial » Sat Jan 28, 2012 11:40 am

I bought the Lenovo x121e last fall and have been using windows 7 on it. Since I don't use this laptop for gaming, I would like to put linux on it, but the only problem is that the tp_smapi module doesn't support x121e (yet?) and I haven't found any solution for putting a charging threshold to the battery on Linux. I am thinking of installing Lubuntu or Linux Mint (rolling debian release)

I mostly use the laptop plugged in, but I don't want my battery to degrade. I have seen the damage that constant charging can do to a battery. Currently I am keeping my battery at 50% when on AC.

I am reasonably adept on computer stuff, but on linux specific things I should be considered as an experienced newbie.

Thank you in advance, I appreciate the help!

-Shan

tarverator
Posts: 6
Joined: Sun Jan 25, 2009 1:33 am
Location: Toronto, Canada

Re: x121e Charging threshold on linux

#2 Post by tarverator » Wed Mar 06, 2013 9:49 pm

*bump*

In my case, I have been using Linux Mint Maya on an X230 ThinkPad. I got the machine last fall and used it more or less normally for six months. The battery capacity dropped to 44% and Lenovo is replacing it under warranty. I need a way to control the charging threshold so I don't trash the replacement battery the same way.

Cigarguy
ThinkPadder
ThinkPadder
Posts: 1756
Joined: Thu Aug 09, 2012 3:08 pm
Location: Calgary, Alberta, Canada

Re: x121e Charging threshold on linux

#3 Post by Cigarguy » Wed Mar 06, 2013 11:10 pm

Unfortunately there's nothing as easy as Power Manager for Linux as there is for Windows.

I used to be a power Linux user when I was in University (Comp Sci Degree) but have since degress to being a dinosaur. I manage to find this tutorial which allowed me to change the charging threshold on a T400 running Linux Mint 14.

http://www.thinkwiki.org/wiki/Tp_smapi
Last edited by Cigarguy on Thu Mar 07, 2013 12:16 am, edited 1 time in total.

tarverator
Posts: 6
Joined: Sun Jan 25, 2009 1:33 am
Location: Toronto, Canada

Re: x121e Charging threshold on linux

#4 Post by tarverator » Wed Mar 06, 2013 11:51 pm

I don't think tp_smapi is supported in certain recent model ThinkPads, such as the OP's X121e and my X230. Hopefully I am mistaken. If not, is there any other way to set the charging threshold?

dr_st
Admin
Admin
Posts: 9691
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: x121e Charging threshold on linux

#5 Post by dr_st » Thu Mar 07, 2013 1:03 am

tarverator wrote:I need a way to control the charging threshold so I don't trash the replacement battery the same way.
Regardless if the actual topic, I think you will find there is very little correlation between charging thresholds and the longevity of your battery.
Thinkpad 25 (20K7), T490 (20N3), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad

tarverator
Posts: 6
Joined: Sun Jan 25, 2009 1:33 am
Location: Toronto, Canada

Re: x121e Charging threshold on linux

#6 Post by tarverator » Thu Mar 07, 2013 8:33 am

dr_st wrote:...I think you will find there is very little correlation between charging thresholds and the longevity of your battery.
I am curious about your statement.

I have read in many places, such as officially http://forums.lenovo.com/t5/Welcome-FAQ ... a-p/244800 and in commentary http://blogs.computerworld.com/20269/ma ... er_battery, that keeping a lithium ion battery fully charged shortens its service life. In my own experience, I used my ThinkPad X230 plugged in and/or plugged in overnight thinking that the firmware would prevent "overcharging" and within six months the capacity had fallen to 44% and Lenovo is replacing the battery under warranty. Something doesn't add up.

If I were using Windows, I would simply set the Power Manager (or whatever it's called) to prevent charging past 80% or 90% or so. Using Linux, it isn't clear where or how to set the same thing, as the API that was usually used for this doesn't seem to work on some recent hardware such as mine.

tarverator
Posts: 6
Joined: Sun Jan 25, 2009 1:33 am
Location: Toronto, Canada

Re: x121e Charging threshold on linux

#7 Post by tarverator » Thu Mar 07, 2013 8:38 am

This http://blog.thekondor.net/2012/09/make- ... holds.html looks good, but it's a bit technical even for me, and I can't figure out how to implement it.

dr_st
Admin
Admin
Posts: 9691
Joined: Sat Oct 29, 2005 6:20 am
Location: Israel

Re: x121e Charging threshold on linux

#8 Post by dr_st » Thu Mar 07, 2013 9:50 am

tarverator wrote:In my own experience, I used my ThinkPad X230 plugged in and/or plugged in overnight thinking that the firmware would prevent "overcharging" and within six months the capacity had fallen to 44% and Lenovo is replacing the battery under warranty. Something doesn't add up.
And I have my own experience with multiple batteries, which I always left plugged in charged to 96% or 100%. Some of them experienced noticeable capacity loss. Most didn't. Battery brand had a lot more to do with their longevity than any usage habits of mine.
Thinkpad 25 (20K7), T490 (20N3), Yoga 14 (20FY), T430s (IPS FHD + Classic Keyboard), X220 4291-4BG
X61 7673-V2V, T60 2007-QPG, T42 2373-F7G, X32 (IPS Screen), A31p w/ Ultrabay Numpad

tarverator
Posts: 6
Joined: Sun Jan 25, 2009 1:33 am
Location: Toronto, Canada

Re: x121e Charging threshold on linux

#9 Post by tarverator » Thu Mar 07, 2013 10:22 am

dr_st wrote:Some of them experienced noticeable capacity loss. Most didn't. Battery brand had a lot more to do with their longevity than any usage habits of mine.
Good to know, thanks. That I am using a Lenovo battery, and that they explicitly recommend not charging it fully to maximize longevity, and that failing to heed this suggestion (of which I was unaware) has led to unacceptable degradation -- with which they agree, and are replacing under warranty -- suggests to me that in this case I had better play along, except that it is not obvious how to do so under Linux. Maybe there is a huge longevity difference between even a 95% and a 100% typical charge, in some batteries? I wonder how much has to do with chemistry, and how much has to do with management as implemented in firmware? Oh well, I have yet to meet the complex piece of equipment that doesn't have quirks. On this laptop I have discovered that if I close the lid and then yank the power cable before the sleep sets in, it sometimes fails to sleep. So, I have learned to pull the power either before or some time after I close the lid. Manually managing battery charge is a bigger PITA, but not impossible. I would prefer to set what I want in software, obviously, but that isn't always possible.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 44 guests