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 [%]
About this post
- Posted
- Archived
- Score
- 4 · 100% up
- Kind
- Text
- ID
- dxt41r
8 comments
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
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!
Both batteries finished and everything looks to working beautifully. I now have status for all my batteries.
Did you try to recalibrate as per TLP wiki?
I did not try that yet. I didn't think it was needed.
Ok, have you tried querying acpi directly to see what it says about it?
Judging from your output everything is fine and works as expected. You configured 40/80 thresholds for both batteries:
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: