linrunner / TLP

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

[ThinkPad T495s] Unable to get recalibrate to work #566

Closed pachadotdev closed 3 years ago

pachadotdev commented 3 years ago

[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

Currently discharging battery BAT0:
voltage            =  10523 [mV]
remaining capacity =    840 [mWh]
remaining percent  =      1 [%]
remaining time     =      2 [min]
power              =  22813 [mW]
state              = Discharging
force discharge    = 1
Press Ctrl+C to cancel.
Error: battery BAT0 was not discharged completely. Check your hardware.

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):

+++ 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                   = LGC
/sys/class/power_supply/BAT0/model_name                     = 5B10W139
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/energy_full_design             =  57000 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  57000 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  29800 [mWh]
/sys/class/power_supply/BAT0/power_now                      =  32543 [mW]
/sys/class/power_supply/BAT0/status                         = Charging

/sys/class/power_supply/BAT0/charge_start_threshold         =     96 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold          =    100 [%]
tpacpi-bat.BAT0.forceDischarge                              =      0

Charge                                                      =   52.3 [%]
Capacity                                                    =  100.0 [%]

00
comments

A clear and concise description of what the bug is.

Expected behavior

Discharge the battery completely

To Reproduce

Steps to reproduce the unexpected behavior:

  1. Does the problem occur on battery or AC or both? AC, the process requires AC
  2. Actions to reproduce the behaviour. Turn on the laptop and run sudo tlp recalibrate
  3. Shell commands entered and their output: sudo tlp recalibrate (the output is in the bug description) and then sudo tlp-stat -b
  4. Full output of tlp-stat via https://gist.github.com/ for all matching cases of 1. Ok, here is it from this morning
pacha@pacha-t495s:~$ sudo tlp-stat
[sudo] password for pacha: 
--- TLP 1.3.1 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0006: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0008: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0010: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0012: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0013: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0014: NMI_WATCHDOG="0"
defaults.conf L0015: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0016: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0017: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0018: DISK_IOSCHED="keep keep"
defaults.conf L0019: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0020: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0021: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0022: PCIE_ASPM_ON_AC="default"
defaults.conf L0023: PCIE_ASPM_ON_BAT="default"
defaults.conf L0024: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0025: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0026: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0027: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0028: WIFI_PWR_ON_AC="off"
defaults.conf L0029: WIFI_PWR_ON_BAT="on"
defaults.conf L0030: WOL_DISABLE="Y"
defaults.conf L0031: SOUND_POWER_SAVE_ON_AC="0"
defaults.conf L0032: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0033: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0034: BAY_POWEROFF_ON_AC="0"
defaults.conf L0035: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0036: BAY_DEVICE="sr0"
defaults.conf L0037: RUNTIME_PM_ON_AC="on"
defaults.conf L0038: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0039: RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
defaults.conf L0040: USB_AUTOSUSPEND="1"
defaults.conf L0041: USB_BLACKLIST_BTUSB="0"
defaults.conf L0042: USB_BLACKLIST_PHONE="0"
defaults.conf L0043: USB_BLACKLIST_PRINTER="1"
defaults.conf L0044: USB_BLACKLIST_WWAN="0"
defaults.conf L0045: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0046: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0047: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0048: NATACPI_ENABLE="1"
defaults.conf L0049: TPACPI_ENABLE="1"
defaults.conf L0050: TPSMAPI_ENABLE="1"

+++ System Info
System         = LENOVO ThinkPad T495s 20QJ001KUS
BIOS           = R13ET49P(1.23 )
Release        = Ubuntu 20.04.2 LTS
Kernel         = 5.10.0-1038-oem #40-Ubuntu SMP Fri Jul 16 15:08:30 UTC 2021 x86_64
/proc/cmdline  = BOOT_IMAGE=/vmlinuz-5.10.0-1038-oem root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
Init system    = systemd v245 (245.4-4ubuntu3.11)
Boot mode      = UEFI

+++ TLP Status
State          = enabled
RDW state      = enabled
Last run       = 10:30:53,    573 sec(s) ago
Mode           = AC
Power source   = AC

+++ Processor
CPU model      = AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu4/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu5/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu6/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver    = acpi-cpufreq
/sys/devices/system/cpu/cpu7/cpufreq/scaling_governor  = ondemand
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil 
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq  =  1400000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq  =  2300000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_frequencies = 2300000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpufreq/boost                  = 1

Intel EPB: unsupported CPU.

/sys/module/workqueue/parameters/power_efficient       = Y
/proc/sys/kernel/nmi_watchdog                          = 0

+++ Temperatures
/proc/acpi/ibm/thermal = 53 0 0 0 0 0 0 -128 [°C]
/proc/acpi/ibm/fan     =     0 [/min]

+++ File System
/proc/sys/vm/laptop_mode               =     0
/proc/sys/vm/dirty_writeback_centisecs =  1500
/proc/sys/vm/dirty_expire_centisecs    =  1500
/proc/sys/vm/dirty_ratio               =    20
/proc/sys/vm/dirty_background_ratio    =    10

+++ Storage Devices
Devices = nvme0n1 sda

/dev/nvme0n1:
  Type      = NVMe
  Model     = SKHynix_HFS512GD9TNI-L2B0B              
  Firmware  = 11720C10
  Scheduler = [none] mq-deadline (multi queue)

  Runtime PM: control = auto, autosuspend_delay_ms = (not available)

  SMART info:
    Critical Warning:                   0x00
    Temperature:                        34 Celsius
    Available Spare:                    100%
    Available Spare Threshold:          10%
    Percentage Used:                    0%
    Data Units Written:                 9.371.679 [4,79 TB]
    Power Cycles:                       192
    Power On Hours:                     1.468
    Unsafe Shutdowns:                   42
    Media and Data Integrity Errors:    0

/dev/sda: not present.

+++ AHCI Link Power Management (ALPM)
No AHCI-enabled host controller detected.

+++ Wireless
bluetooth = on
wifi      = on
wwan      = none (no device)

hci0(btusb)                   : bluetooth, not connected
wlp1s0(iwlwifi)               : wifi, connected, power management = off

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save            = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave (using BIOS preferences)

+++ Runtime Power Management
Device blacklist = (not configured)
Driver blacklist = amdgpu mei_me nouveau nvidia pcieport radeon

/sys/bus/pci/devices/0000:00:00.0/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:00.2/power/control = on   (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:01.2/power/control = on   (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.4/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.7/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.0/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = on   (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = on   (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = on   (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = on   (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:01:00.0/power/control = on   (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:02:00.0/power/control = on   (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:03:00.0/power/control = on   (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:03:00.1/power/control = on   (0x070002, Serial controller, serial)
/sys/bus/pci/devices/0000:03:00.2/power/control = on   (0x070002, Serial controller, serial)
/sys/bus/pci/devices/0000:03:00.3/power/control = on   (0x0c0701, IPMI Interface, no driver)
/sys/bus/pci/devices/0000:03:00.4/power/control = on   (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = on   (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:05:00.0/power/control = on   (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:05:00.1/power/control = on   (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:05:00.2/power/control = on   (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:05:00.3/power/control = on   (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.4/power/control = on   (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.5/power/control = on   (0x048000, Multimedia controller, no driver)
/sys/bus/pci/devices/0000:05:00.6/power/control = on   (0x040300, Audio device, snd_hda_intel)

+++ USB
Autosuspend         = enabled
Device whitelist    = (not configured)
Device blacklist    = (not configured)
Bluetooth blacklist = disabled
Phone blacklist     = disabled
WWAN blacklist      = disabled

Bus 005 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 004 Device 005 ID 06cb:00bd control = auto, autosuspend_delay_ms = 2000 -- Synaptics, Inc.  (no driver)
Bus 004 Device 004 ID 04f2:b681 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd  (uvcvideo)
Bus 004 Device 003 ID 05e3:0610 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. 4-port hub (hub)
Bus 004 Device 002 ID 8087:0025 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp.  (btusb)
Bus 004 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 003 ID 0bda:8153 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter (r8152)
Bus 003 Device 002 ID 0bda:0411 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. 4-Port USB 3.0 Hub (hub)
Bus 003 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 002 Device 005 ID 0d8c:0005 control = on,   autosuspend_delay_ms = 2000 -- C-Media Electronics, Inc. Blue Snowball (snd-usb-audio, usbhid)
Bus 002 Device 004 ID 0951:16d2 control = on,   autosuspend_delay_ms = 2000 -- Kingston Technology  (usbhid)
Bus 002 Device 003 ID 1532:0020 control = on,   autosuspend_delay_ms = 2000 -- Razer USA, Ltd  (usbhid)
Bus 002 Device 002 ID 0bda:5411 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. 4-Port USB 2.0 Hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

+++ 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                   = LGC
/sys/class/power_supply/BAT0/model_name                     = 5B10W139
/sys/class/power_supply/BAT0/cycle_count                    =      1
/sys/class/power_supply/BAT0/energy_full_design             =  57000 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  57000 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  42790 [mWh]
/sys/class/power_supply/BAT0/power_now                      =  26238 [mW]
/sys/class/power_supply/BAT0/status                         = Charging

/sys/class/power_supply/BAT0/charge_start_threshold         =     96 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold          =    100 [%]
tpacpi-bat.BAT0.forceDischarge                              =      0

Charge                                                      =   75.1 [%]
Capacity                                                    =  100.0 [%]

Additional 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.

linrunner commented 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.

linrunner commented 3 years ago

Note @self: add to FAQ

linrunner commented 3 years ago

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.

linrunner commented 3 years ago

@pachadotdev : did you test the fix?

erazemk commented 3 years ago

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.

pachadotdev commented 3 years ago

@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

pachadotdev commented 3 years ago

@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.
linrunner commented 3 years ago

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.

linrunner commented 3 years ago

Done: https://linrunner.de/tlp/faq/battery.html#tlp-recalibrate-terminates-with-an-error-message