linrunner / TLP

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

Wrong battery charge_full_design when charge limit set in bios [tlp 1.5] #621

Closed pflanzenandi closed 2 years ago

pflanzenandi commented 2 years ago

Wrong battery charge_full_design, charge_full and charge_now values, when battery charge limit is set via bios. Charge limit is set to 60% - 75%. tlp-stat

+++ Battery Care
Plugin: generic
Supported features: none available

+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer                   = SMP
/sys/class/power_supply/BAT0/model_name                     = DELL 70N2F95
/sys/class/power_supply/BAT0/cycle_count                    =      0 (or not supported)
/sys/class/power_supply/BAT0/charge_full_design             =   7394 [mAh]
/sys/class/power_supply/BAT0/charge_full                    =   7394 [mAh]
/sys/class/power_supply/BAT0/charge_now                     =   5355 [mAh]
/sys/class/power_supply/BAT0/current_now                    =      1 [mA]
/sys/class/power_supply/BAT0/status                         = Idle

/sys/class/power_supply/BAT0/charge_control_start_threshold = (not available) 
/sys/class/power_supply/BAT0/charge_control_end_threshold   = (not available) 

Charge                                                      =   72.4 [%]
Capacity                                                    =  100.0 [%]

Correct charge_full_design values

upower -i /org/freedesktop/UPower/devices/battery_BAT0

native-path:          BAT0
  vendor:               SMP
  model:                DELL 70N2F95
  serial:               3357
  power supply:         yes
  updated:              Sa 26 Feb 2022 14:21:49 CET (33 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              61,047 Wh
    energy-empty:        0 Wh
    energy-full:         84,2916 Wh
    energy-full-design:  84,2916 Wh
    energy-rate:         0,0114 W
    voltage:             12,157 V
    percentage:          72%
    capacity:            100%
    technology:          lithium-polymer
    icon-name:          'battery-full-charging-symbolic
pflanzenandi commented 2 years ago

mAh & Wh ...