Bug 467588

Summary: Battery indicator displays connected and not charging but it is not really connected
Product: [Plasma] plasmashell Reporter: César Montoya <sprit152009>
Component: Power and Battery widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, me, nate, qydwhotmail
Priority: NOR    
Version First Reported In: 5.27.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video demostrating laptop unplugged but Plasma thinking is not
Image showing battery status, laptop is disconnected
upower -d output

Description César Montoya 2023-03-19 23:54:20 UTC
Created attachment 157430 [details]
Video demostrating laptop unplugged but Plasma thinking is not

SUMMARY
***
When starting up, battery status indicator on system tray will display connected but not charging, though it is not really connected, this is fixed by connecting and disconnecting the laptop
***


STEPS TO REPRODUCE
1. Login into Plasma with a laptop while on battery
2. Check battery status

OBSERVED RESULT
Battery indicator shows "plugged in but not charging"

EXPECTED RESULT
Battery indicator should show not connected (discharging)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 37 (Kernel 6.1.18-200.fc37.x86_64 (64-bit))
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Not happening on Gnome, not duplicate of https://bugs.kde.org/show_bug.cgi?id=423556, mine gets fixed by plugging and unplugging the laptop.
Comment 1 César Montoya 2023-03-20 00:16:39 UTC
Created attachment 157432 [details]
Image showing battery status, laptop is disconnected
Comment 2 Fushan Wen 2023-03-20 12:21:42 UTC
Need output of `upower -d` when the widget shows "plugged but not charging"
Comment 3 César Montoya 2023-03-20 14:42:39 UTC
Created attachment 157446 [details]
upower -d output

Added to attachments
Comment 4 Fushan Wen 2023-03-20 17:02:53 UTC
What's the output of this command?

gdbus call -e -d org.freedesktop.PowerManagement -o "/org/freedesktop/PowerManagement" -m org.freedesktop.PowerManagement.GetPowerSaveStatus
Comment 5 César Montoya 2023-03-20 20:13:20 UTC
What a long command to get such tiny output.

(true,)
Comment 6 Fushan Wen 2023-03-21 04:52:09 UTC
So upower/powerdevil correctly reports the battery status, but the widget shows wrong information, which is weird.
Comment 7 César Montoya 2023-03-21 20:30:36 UTC
(In reply to Fushan Wen from comment #6)
> So upower/powerdevil correctly reports the battery status, but the widget
> shows wrong information, which is weird.

That seems to be it, how do we proceed?
Comment 8 César Montoya 2023-06-01 13:33:41 UTC
Hello, suddenly this issue is no longer happening, I'll close the issue, I have no idea what I did to fix it, or if some package update fixed it.