Bug 504085 - Brightness & Batteries widget erroneously says "No Batteries Available"
Summary: Brightness & Batteries widget erroneously says "No Batteries Available"
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (other bugs)
Version First Reported In: 5.27.12
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-12 05:09 UTC by Jonathan Gilbert
Modified: 2025-05-13 16:15 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Gilbert 2025-05-12 05:09:16 UTC
SUMMARY
The Brightness & Batteries widget can get into a state where it doesn't show any battery-related information, despite the system being a laptop which definitely has a battery. In this state, other parts of the system still respond normally; for instance, when switching to/from battery, the corresponding system notifications are generated.

STEPS TO REPRODUCE
1. I don't know what caused it to start doing this.

OBSERVED RESULT
Hovering over the Brightness & Batteries system tray icon displays a pop up which states, "No Batteries Available".

EXPECTED RESULT
The popup should show the laptop's battery and its current state.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 24.04.2 LTS
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
`upower -e` lists the battery, and `upower -d` lists detailed information about the battery.

`dbus_monitor` shows events being raised when the battery switches to/from a charging state.

Info Center lists the battery details and its current state.

Only the system tray icon seems to be affected.

This is not corrected by rebooting the system.
Comment 1 Jonathan Gilbert 2025-05-12 05:18:22 UTC
Correction: This is not _always_ corrected by rebooting the system. The last two reboots did not correct it. Just now, a reboot did correct it. But, I don't know if or when it will recur, because I don't know what precipitated it in the first place.
Comment 2 TraceyC 2025-05-13 16:15:15 UTC
Thanks for the bug report.Unfortunately, Plasma 5.27 is very old and out of support from KDE at this point.

I would suggest you report this to Ubuntu, they're the ones who bear the responsibility of maintaining the older software they ship with their LTS releases. Unfortunately KDE itself cannot provide support for very old Plasma versions anymore.

You can report the bug through https://help.ubuntu.com/community/ReportingBugs

Thanks for your understanding.