This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Battery indicator stuck on charging

Tags: None
(comma "," separated)
User avatar
codestation
Registered Member
Posts
4
Karma
0
OS

Battery indicator stuck on charging

Thu Nov 04, 2021 4:35 pm
EDIT: seems like a bug in upower and/or the kernel:

https://bugs.kde.org/show_bug.cgi?id=423556
https://gitlab.freedesktop.org/upower/upower/-/issues/126
https://bugzilla.kernel.org/show_bug.cgi?id=210425
-----------------

I have this problem on a brand new laptop with a freshly installed KDE Neon distro: if i boot the laptop on KDE Neon then the battery indicator is always stuck on charging when everything else says that the battery is discharging (tlp, acpi). This isn't only a visual bug because the power management settings doesn't trigger (no brightness change, no sound, nada).

If i try to boot with the charging cable disconnected then it shows the correct icon and when i connect the cable shows that is charging, but it gets stuck again. No matter how many times i reconnect the cable it always show that the battery is charging and power management doesn't trigger at all.

Note that it works perfectly on Windows 10/11 and the battery indicator works properly when i booted from a Ubuntu 21.10 live USB with Gnome. Didn't work from KDE Neon live USB.

Any ideas? This bug makes the KDE energy saving settings useless because they never trigger.

KInfoCenter
Code: Select all
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-38-generic (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics


The following info was shown then the charging cable was disconnected.

Code: Select all
$ sudo tlp-stat --system
--- TLP 1.3.1 --------------------------------------------

+++ System Info
System         = LENOVO ThinkPad E15 Gen 2 20TES2MF00
BIOS           = R1EET43W(1.43 )
Release        = KDE neon User - Plasma 25th Anniversary Edition
Kernel         = 5.11.0-38-generic #42~20.04.1-Ubuntu SMP Tue Sep 28 20:41:07 UTC 2021 x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-5.11.0-38-generic root=UUID=e1ece973-c9cc-4ead-8473-cd6107ed02a5 ro quiet splash vt.handoff=7
Init system    = systemd v245 (245.4-4ubuntu3.13)
Boot mode      = UEFI

+++ TLP Status
State          = enabled
RDW state      = enabled
Last run       = 11:14:14,    180 sec(s) ago
Mode           = AC
Power source   = battery


Code: Select all
$ sudo tlp-stat --battery
--- TLP 1.3.1 --------------------------------------------

+++ 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                   = SMP
/sys/class/power_supply/BAT0/model_name                     = 5B10X026
/sys/class/power_supply/BAT0/cycle_count                    =     17
/sys/class/power_supply/BAT0/energy_full_design             =  45730 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  46760 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  36590 [mWh]
/sys/class/power_supply/BAT0/power_now                      =   8054 [mW]
/sys/class/power_supply/BAT0/status                         = Discharging

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

Charge                                                      =   78.3 [%]
Capacity                                                    =  102.3 [%]



Code: Select all
$ acpi -i
Battery 0: Discharging, 77%, 03:58:45 remaining
Battery 0: design capacity 3882 mAh, last full capacity 3969 mAh = 100%


Code: Select all
$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               SMP
  model:                5B10X026
  serial:               4199
  power supply:         yes
  updated:              jue 04 nov 2021 11:22:16 (2 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               pending-charge
    warning-level:       none
    energy:              38,51 Wh
    energy-empty:        0 Wh
    energy-full:         46,76 Wh
    energy-full-design:  45,73 Wh
    energy-rate:         28,925 W
    voltage:             12,522 V
    percentage:          82%
    capacity:            100%
    technology:          lithium-polymer
    icon-name:          'battery-full-charging-symbolic'
  History (charge):
    1636042936  82,000  pending-charge
    1636042908  81,000  charging
  History (rate):
    1636042936  28,925  pending-charge
    1636042936  30,038  pending-charge
    1636042908  28,925  charging


Battery popup, says that is charging but there isn't enough power (cable is disconnected). The icon shows that is charging.
Image

Battery widget, says that the battery is discharging (cable is disconnected). The icon shows that is charging.
Image


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]