Closed pachadotdev closed 3 years ago
First of all: this is not a TLP bug. The issue tracker is not a support forum and not intended for advice on (battery) hardware problems. Please consult a hardware oriented forum of your choice for further questions.
Background: TLP displays the message "Error: battery BAT0 was not discharged completely. Check your hardware." if the Lenovo firmware (which has control here) terminates the discharge process before reaching 0%. Which means that the recalibration of the charge gauge in the battery pack didn't complete.
In your case it terminated at 1% which may well be a rounding error in the firmware. If the battery otherwise performs well, you may decide to ignore it.
Note @self: add to FAQ
I stand corrected: it could be that I was wrong in my initial assessment of your problem. See my commit.
You can find packages on the download page. Please test and report.
@pachadotdev : did you test the fix?
This might be partially related to my issue (#571), where tlp can't recalibrate a Thinkpad T540p. What do you think would be the best way for me to test your fix? I'm on Fedora, so the packages aren't available yet, but I can build it from source if needed.
Edit: Cloned the repo, ran sudo make install
in the main branch, enabled tlp's systemd service and masked systemd's rfkill service, then ran sudo tlp start
and sudo tlp recalibrate
, but the recalibration still didn't work. Bash also reported the same stuff as with #571.
Edit 2: My problem was different (an outdated package), solved by enabling the testing repo.
@linrunner hi, i shall test this week, the laptop ended with a replaced mainboard and battery, because it failed both on windows and ubuntu so warranty applied
@linrunner hi, same problem, but this unit has a factory problem or something that it reboots at random
Currently discharging battery BAT0:
voltage = 10614 [mV]
remaining capacity = 890 [mWh]
remaining percent = 1 [%]
remaining time = 3 [min]
power = 15050 [mW]
state = Discharging
force discharge = 1
Press Ctrl+C to cancel.
Error: battery BAT0 was not discharged completely i.e. terminated by the firmware -- check your hardware (battery, charger).
Battery recalibration aborted.
I see. The possibilities to change TLP's code are exhausted, if your hardware stops discharging at 1% instead of 0% then so be it.
[todo] I will however add an explanation of the message to the FAQ.
[x] I've read and accepted the Bug Reporting Howto [x] I've attached all required
tlp-stat
outputs via Gist (see below)Hi
Yesterday I installed a new battery for the T495s as I got one under guarantee conditions.
After installing it, the technician told me to charge the laptop to 100%, and then recalibrate the battery.
I did that but I get
The charger was connected during the process and all the BIOS checks at the service center were ok after installing the battery.
Is this wrong? can I just uninstall tlp? this is one of the certified models for Linux, and I'm not really a techie user, just a statistician trying to work without problems.
This is the output of tlp-stat now after not discharging completely (I took it ~15 minutes later):
A clear and concise description of what the bug is.
Expected behavior
Discharge the battery completely
To Reproduce
Steps to reproduce the unexpected behavior:
sudo tlp recalibrate
sudo tlp recalibrate
(the output is in the bug description) and thensudo tlp-stat -b
tlp-stat
via https://gist.github.com/ for all matching cases of 1. Ok, here is it from this morningAdditional context
Add any other context about the problem here.
The batter ywas replaced because it took more than 12 hours to charge, and sometimes never charged completed. After this problem emerged, the laptop hanged at random and I had to force the power off. With the new battery is working very stable.