You are not logged in.

#1 2025-08-22 20:46:29

SamuelAdams1777
Member
Registered: 2025-08-22
Posts: 1

Battery threshold discrepancy between upower and BAT0

Greetings,

I have some odd issues with my laptop battery (ThinkPad P14 AMD) and found that setting charge thresholds via /sys/class/power_supply/BAT0/charge_control_end_threshold and /sys/class/power_supply/BAT0/charge_start_end_threshold doesn't affect the settings reported back by upower -i /org/freedesktop/UPower/devices/battery_BAT0.

I have currently set charge_control_start_threshold and charge_control_end_threshold to 0% and 100% to recalibrate the battery. However, upower -i /org/freedesktop/UPower/devices/battery_BAT0
always shows threshold of 70% and 85%:

```
native-path:          BAT0
  vendor:               Sunwoda
  model:                5B11H56418
  serial:               4454
  power supply:         yes
  updated:              Fri 22 Aug 2025 03:42:11 PM CDT (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              47.2 Wh
    energy-empty:        0 Wh
    energy-full:         52.45 Wh
    energy-full-design:  52.5 Wh
    energy-rate:         5.454 W
    voltage:             17.154 V
    charge-cycles:       5
    time to empty:       8.7 hours
    percentage:          89%
    capacity:            99.9048%
    technology:          lithium-polymer
    charge-start-threshold:        75%
    charge-end-threshold:          80%
    charge-threshold-supported:    yes
    icon-name:          'battery-full-symbolic'
```

The laptop uses the thinkpad-acpi, without any other power management software.

Any idea what causes the discrepancy and which value is  the real one?

Thanks

Offline

#2 2025-08-25 07:58:41

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: Battery threshold discrepancy between upower and BAT0

Your limits should be what syfs says 0-100%, UPower shows the value of udev rule so what would be applied when you enable battery preservation via gnome settings. I can see how this can be a bit confusing smile

Offline

Board footer

Powered by FluxBB