Bug 467588 - Battery indicator displays connected and not charging but it is not really connected
Summary: Battery indicator displays connected and not charging but it is not really co...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (other bugs)
Version First Reported In: 5.27.3
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-19 23:54 UTC by César Montoya
Modified: 2023-06-01 13:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Video demostrating laptop unplugged but Plasma thinking is not (632.07 KB, video/mp4)
2023-03-19 23:54 UTC, César Montoya
Details
Image showing battery status, laptop is disconnected (34.58 KB, image/png)
2023-03-20 00:16 UTC, César Montoya
Details
upower -d output (2.02 KB, text/plain)
2023-03-20 14:42 UTC, César Montoya
Details

Note You need to log in before you can comment on or make changes to this bug.
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.