T420s Linux force discharge on battery (two battery use)

T400/410/420 and T500/510/520 series specific matters only
Post Reply
Message
Author
bluesceada
Freshman Member
Posts: 82
Joined: Thu Mar 05, 2009 7:20 am
Location: Karlsruhe, Germany
Contact:

T420s Linux force discharge on battery (two battery use)

#1 Post by bluesceada » Tue Aug 05, 2014 11:58 am

Hi,

I am trying to get battery wear leveling (or also called battery balancing) working on a T420s. I know that tp-smapi doesn't support the function force_discharge anymore, so I am trying to use tpacpi-bat [1] together with an adapted balancing script found at [2]. However, the basic problem already starts earlier. Funny enough I can control which battery to forcefully discharge when on AC power, but on battery this seems to get ignored.

Trying to discharge the 1st battery and not the ultrabay battery:

Code: Select all

# /usr/lib/tlp-pm/tpacpi-bat -s FD 1 1
# /usr/lib/tlp-pm/tpacpi-bat -g FD 1
no
# cat /sys/devices/platform/smapi/BAT0/power_now
0
# cat /sys/devices/platform/smapi/BAT0/remaining_running_time_now
not_discharging
# cat /sys/devices/platform/smapi/BAT1/power_now
-9422
# cat /sys/devices/platform/smapi/BAT1/remaining_running_time_now
75
I also tried the other way around and with other numbers, in case the ultrabay battery would be battery 1 from the view of tpaci-bat, but that didn't help... (tpacpi-bat uses battery 1 and 2 and not 0 and 1 like smapi)

Somebody had this problem as well, or should this normally work for the T420s? Any known solutions?

Is Lenovo specifically disabling this on battery, so ultrabay batteries will be aged faster and people have to buy new ones earlier?

Thanks for any information!

[1] https://github.com/teleshoes/tpacpi-bat
[2] http://www.thinkwiki.org/wiki/Tp_smapi# ... l_features

larso
Posts: 13
Joined: Tue Aug 13, 2013 4:40 pm
Location: Bergen, Norway

Re: T420s Linux force discharge on battery (two battery use)

#2 Post by larso » Wed Aug 20, 2014 11:07 am

You can't choose what battery to discharge or discharge thresholds on t420s or newer versions, only on t410s and older (with linux scripts). You're probably right about lenovo wanting to sell more batteries. :evil:
But fortunately the lithium-polymer battery will last longer compared to a lithium-ion battery abused similarly.
T420s: i7 2640m, NVS 4200M, 8GB RAM, 500GB ssd, 1600x900
T60p/T61 frankenpad: UXGA, T9300, X3100, 8GB RAM, 120GB SSD + 320GB HDD
Desktop: FX6350, 8GB RAM, GTX 670, 120GB SSD + 3TB HDD

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad T400/410/420 and T500/510/520 Series”

Who is online

Users browsing this forum: No registered users and 4 guests