linrunner / TLP

TLP - Optimize Linux Laptop Battery Life
https://linrunner.de/tlp
GNU General Public License v2.0
2.51k stars 129 forks source link

TLP doesn't affect charging while off #725

Closed PenelopeFudd closed 4 months ago

PenelopeFudd commented 4 months ago

[x] I've read and accepted the Bug Reporting Howto [x] I've provided all required tlp-stat outputs via Gist (see below)

Describe the bug

It looks like the charging threshold are not observed while the laptop is plugged in but turned off. I'd set the stop_charge_thresh_bat0 to 70 but when I turned on the laptop in the morning it was at 100%.

Expected behavior

Expected it to be at 70%.

To Reproduce

Steps to reproduce the unexpected behavior:

  1. Does the problem occur on battery or AC or both? On AC
  2. Actions to reproduce the behaviour: Set start+stop charge threshold to anything
  3. Shell commands entered and their output: n/a
  4. Full output of tlp-stat via https://gist.github.com/ for all matching cases of 1 (not as file attachment, no screenshots) https://gist.github.com/PenelopeFudd/ef88911b58e6a18ee427a419c47275fe.js

Additional context

Add any other context about the problem here.

PenelopeFudd commented 4 months ago

Note, I've been fiddling with the charge thresholds, so they may not be consistent in the output of tlp-stat. Sorry about that.

linrunner commented 4 months ago

Your link leads to a page that I cannot decipher. Please correct it.

PenelopeFudd commented 4 months ago

Fixed: https://gist.githubusercontent.com/PenelopeFudd/ef88911b58e6a18ee427a419c47275fe/raw

linrunner commented 4 months ago

The output proves that TLP has set the thresholds:

/sys/class/power_supply/BAT0/charge_control_start_threshold =     50 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold   =     70 [%]

But in your case, the hardware is not enforcing them.This is definitely not a TLP problem.

Your ThinkPad should have an emergency reset hole on the underside, try that first. Otherwise, I would update the BIOS and EC firmware to the latest version. Good luck.

https://linrunner.de/tlp/faq/battery.html#various-thinkpad-battery-malfunctions

PenelopeFudd commented 4 months ago

What's the fastest method of testing this to see if the emergency reset fixed it?

linrunner commented 4 months ago

@PenelopeFudd You set start and stop thresholds a few percent above the current charge level, make sure that the Thinkpad is starting to charge and shut it down. Then wait long enough.