Skip to content

TLP not able to determine status of batteries, problem?

I have been running Arch on my laptop for about a week now and I have slowly getting everything put together. One thing I noticed that needed loaded was some power management tools. I chose to use TLP for this. When I run TLP-stat I get all of the stats for the battery except for one which is the current status of the battery. That to me sounds like it should be pretty important.

The machine appears to work but I wasn't sure if this is really an issue or not. The machine is a Lenovo P52s with 2 batteries from 2 different manufactures Sanyo, and LG.

Here is the output its giving me. Any insight would be great, especially if someone knows a way to fix it!

--- TLP 1.2.2 --------------------------------------------
+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = active (data, thresholds)
tpacpi-bat = active (recalibrate)
tp-smapi   = inactive (ThinkPad not supported)

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer                   = SMP
/sys/class/power_supply/BAT0/model_name                     = 00UR891
/sys/class/power_supply/BAT0/cycle_count                    =     24
/sys/class/power_supply/BAT0/energy_full_design             =  32010 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  28710 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  24360 [mWh]
/sys/class/power_supply/BAT0/power_now                      =      0 [mW]
/sys/class/power_supply/BAT0/status                         = Unknown (threshold effective)                                                                                                                                              
/sys/class/power_supply/BAT0/charge_start_threshold         =     40 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold          =     80 [%]
tpacpi-bat.BAT0.forceDischarge                              =      0
Charge                                                      =   84.8 [%]
Capacity                                                    =   89.7 [%]

+++ ThinkPad Battery Status: BAT1 (Ultrabay / Slice / Replaceable)
/sys/class/power_supply/BAT1/manufacturer                   = LGC
/sys/class/power_supply/BAT1/model_name                     = 01AV427
/sys/class/power_supply/BAT1/cycle_count                    =      5
/sys/class/power_supply/BAT1/energy_full_design             =  71100 [mWh]
/sys/class/power_supply/BAT1/energy_full                    =  57970 [mWh]
/sys/class/power_supply/BAT1/energy_now                     =  46090 [mWh]
/sys/class/power_supply/BAT1/power_now                      =      0 [mW]
/sys/class/power_supply/BAT1/status                         = Unknown (threshold effective)                                                                                                                                                     
/sys/class/power_supply/BAT1/charge_start_threshold         =     40 [%]
/sys/class/power_supply/BAT1/charge_stop_threshold          =     80 [%]
tpacpi-bat.BAT1.forceDischarge                              =      0

Charge                                                      =   79.5 [%]
Capacity                                                    =   81.5 [%]

+++ Charge total                                            =   81.3 [%]
4 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 100% up
Kind
Text
ID
dxt41r

Author

132
posts
712
comments
31
media
View profile

8 comments

tpacpi-bat - Recalibrate

It looks like It finds both batteries, if its not displaying correct information it needs to be recalibrated.

Do this:

tlp recalibrate BATX

Where X is 1 or 0 depending on the misreporting battery.

man 8 tlp

Edit: Current status of the battery is discharging, charging, full not exactly critical but it missing can stuff up TPM policies that check that status

2 points

TLP re-calibration for BAT 1 just completed, that battery is a freaking beast! I am seeing the status as "Charging" now. So it looks like it might have worked, I will do it to BAT 0 and see once its done. Looks like that might be the fix.

Thanks!

1 points

Both batteries finished and everything looks to working beautifully. I now have status for all my batteries.

2 points

Judging from your output everything is fine and works as expected. You configured 40/80 thresholds for both batteries:

  • BAT0 has a SOC of 84.8% which is above the stop threshold 80, so there is no reason for the controller to charge the battery.
  • BAT1 has 79.5% (80 rounded) which produces the same result.

Obviously you overlooked the additional "(threshold effective)" after "Unknown". "Unknown" is the kernel's way to tell it's "disoriented", because a threshold prevents charging below a SOC of 100%.

I propose you re-read TLP's documentation on the subject of thresholds:

  1. https://linrunner.de/en/tlp/docs/tlp-configuration.html#chargethresholds
  2. https://linrunner.de/en/tlp/docs/tlp-faq.html#battery
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.