Bug 482326

Summary: Battery remaining time stuck on "estimating"
Product: [Plasma] plasmashell Reporter: The10axe <the10axe>
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kde, kdedev, natalie_clarius, nate, sephiroth_pk
Priority: NOR    
Version First Reported In: 6.0.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0.1
Sentry Crash Report:
Attachments: upower cmd results about time remaining
The bug as it can be displayed, power level is right but no estimation

Description The10axe 2024-03-03 16:52:38 UTC
Created attachment 166365 [details]
upower cmd results about time remaining

SUMMARY
Battery remaining time is stuck on "estimating"
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Always
2. 
3. 

OBSERVED RESULT
Battery time is written to be currently "estimating"

EXPECTED RESULT
Show upower estimation, which right now for me gives my battery life of 2.9h

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: CachyOS x86_64
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Laptop is a Nitro AN515-54.
From what I looked up, it seems that the issue may be that my battery is recognised as "BAT1" and not "BAT0" (see screenshot)
Comment 1 The10axe 2024-03-03 16:53:16 UTC
Created attachment 166366 [details]
The bug as it can be displayed, power level is right but no estimation
Comment 2 Nate Graham 2024-03-05 17:41:33 UTC
I'd recommend upgrading to Plasma 6. A lot of code surrounding this was changed, making is quite possible that the issue has already been resolved.
Comment 3 The10axe 2024-03-13 22:10:19 UTC
(In reply to Nate Graham from comment #2)
> I'd recommend upgrading to Plasma 6. A lot of code surrounding this was
> changed, making is quite possible that the issue has already been resolved.

Upgraded! And it's still happening sadly, I have no idea what happens because the battery percentage displayed is accurate, though the estimation upower's give isn't displayed properly for some reason.
Comment 4 The10axe 2024-03-13 22:14:28 UTC
(In reply to The10axe from comment #3)
> (In reply to Nate Graham from comment #2)
> > I'd recommend upgrading to Plasma 6. A lot of code surrounding this was
> > changed, making is quite possible that the issue has already been resolved.
> 
> Upgraded! And it's still happening sadly, I have no idea what happens
> because the battery percentage displayed is accurate, though the estimation
> upower's give isn't displayed properly for some reason.

It seems the command `acpi -id` also gives accurate information, with an estimated remaining time, meanwhile, the tray's menu is giving me the usual "Estimating..."
Comment 5 TraceyC 2024-09-04 20:24:56 UTC
I am not currently able to reproduce this on
6.1.4 where the battery is BAT0
git-master where the battery is BAT1

On both systems, the battery widget shows the remaining time when discharging, time to full charge, or Fully Charged
Comment 6 Nate Graham 2025-04-08 19:26:35 UTC
Are you able to reproduce this issue in Plasma 6.3 or later, and also presumably with newer kernel and upower versions too?
Comment 7 Bug Janitor Service 2025-04-23 03:47:19 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2025-05-08 03:47:19 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 9 Riccardo Robecchi 2025-05-21 09:28:56 UTC
I can confirm this bug. The widget is stuck on "estimating..." until I restart Plasma.

Kernel version: 6.14.1
KDE Plasma version: 6.3.5
KDE Frameworks version: 6.14.0
Qt version: 6.9.0