Plasma battery info does not show time remaining

Fedora 38 KDE Plasma edition.

The battery widget does not show time remaining (it is stuck on “Esimating…”) Any ideas?

$ acpi
Battery 0: Discharging, 86%, 03:49:33 remaining

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               Newer Tech
  model:                A1331
  power supply:         yes
  updated:              Mon 18 Sep 2023 09:08:18 PM CDT (9 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    warning-level:       none
    energy:              65.5452 Wh
    energy-empty:        0 Wh
    energy-full:         75.7944 Wh
    energy-full-design:  73.44 Wh
    energy-rate:         15.5628 W
    voltage:             11.619 V
    charge-cycles:       11
    time to empty:       4.2 hours
    percentage:          86.4776%
    temperature:         28.8 degrees C
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-full-symbolic'
  History (charge):
    1695089298  86.478  discharging
    1695089268  86.677  discharging
    1695089238  86.877  discharging
    1695089208  87.147  discharging
  History (rate):
    1695089298  15.563  discharging
    1695089268  14.602  discharging
    1695089238  17.064  discharging
    1695089208  18.911  discharging


Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.14-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Core™2 Duo CPU P8600 @ 2.40GHz
Memory: 8.5 GiB of RAM
Graphics Processor: NVAF
Manufacturer: Apple Inc.
Product Name: MacBook7,1
System Version: 1.0

Could you please tell me whether

journalctl -g "remaining time changes" -b 0

gives you any output?

And the output of

qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.smoothedBatteryRemainingTime 

Thanks for looking into this.

[oldmacbook@oldmacbook ~]$ journalctl -g "remaining time changes" -b 0
-- No entries --
[oldmacbook@oldmacbook ~]$ qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.smoothedBatteryRemainingTime 
15045294
[oldmacbook@oldmacbook ~]$ qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.smoothedBatteryRemainingTime 
15045294
[oldmacbook@oldmacbook ~]$ journalctl -g "remaining time changes" -b 0-- No entries --
[oldmacbook@oldmacbook ~]$ qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.smoothedBatteryRemainingTime 
15584825
[oldmacbook@oldmacbook ~]$ qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.smoothedBatteryRemainingTime 
15584825
[oldmacbook@oldmacbook ~]$ qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.smoothedBatteryRemainingTime 
16259136
[oldmacbook@oldmacbook ~]$ journalctl -g "remaining time changes" -b 0-- No entries --

Hm, that looks fine, I’m afraid I can’t tell why it’s going wrong in the applet.

Is it like this permanently or only sometimes?

It is inaccurate all of the time. Sometimes the time remaining will actually show a value, but then it never updates even though the battery percentage does.

Ok, thanks for the info. I’ll see if I can come up with a solution.

Ok. I am also creating a similar help post on the Fedora forums: Plasma battery info does not show time remaining - Fedora Discussion

Has this issue been addressed?
Running KDE plasma 5.27.2 on Debian.
acpi -bi show remaining battery of 6:xx hours but the widget tooltip only ever shows 1:35.

If I plug in the power supply and run the same command, it shows 1:35 until fully charged irrespective of the battery percentage.

The battery percentage shown in the tooltip is correct (at least in line with the acpi output)