Bug 518802 - Represent accurate power profile without battery
Summary: Represent accurate power profile without battery
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (other bugs)
Version First Reported In: 6.6.80
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Nate Graham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-11 02:51 UTC by Andres Betts
Modified: 2026-04-24 21:52 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Betts 2026-04-11 02:51:33 UTC
SUMMARY

When my laptop is plugged in and at 100%. At that point, Plasma hides the battery icon because it's not necessary in the panel. When a task requires additional power and you set it to performance, the power icon comes back, but this time it's the battery icon plus an icon that indicates the performance level. However, at this point, the user is at 100% battery, so, should we have an additional state in our icons that is only the performance icon and the power save state. We already have these icons in the panel widget for power. Basically I am saying, at 100% we don't need to show a battery icon, just the power profile icon. However, it means we would have to route the panel to seek the right icons and add a condition that triggers those icons.

STEPS TO REPRODUCE
1. Charge laptop to 100%
2. Run a game or some application that turns on the performance profile, or set the performance profile in the power widget
3. Observe how the battery + power profile icon appears with the 100% charge.

ADDITIONAL INFORMATION
We discussed this topic in the vdg channel and determined it made sense to represent only the power profile when the battery is at 100%. When the icon is a combination of battery + power profile icon, it gives the impression that the laptop is actively discharging.
Comment 1 Nate Graham 2026-04-11 09:52:03 UTC
Yeah, seems reasonable.
Comment 2 Bug Janitor Service 2026-04-11 09:59:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6489
Comment 3 Nate Graham 2026-04-24 21:48:34 UTC
Git commit bfe326347ab445ec4cb2ceab30ea47a8d40f0d47 by Nate Graham.
Committed on 24/04/2026 at 21:18.
Pushed by ngraham into branch 'master'.

BatteryIcon: add special case for non-default power profile & plugged in

When your device is plugged in and full and it switches to another power
profile mode, we don't need to show the battery icon; you already know
it's plugged in and full. So instead, just show the power profile icon.

M  +7    -0    components/workspace/BatteryIcon.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/bfe326347ab445ec4cb2ceab30ea47a8d40f0d47
Comment 4 Nate Graham 2026-04-24 21:52:12 UTC
Git commit cc7e6c2e168094631fd60b121026efeb6f45f729 by Nate Graham.
Committed on 24/04/2026 at 21:24.
Pushed by ngraham into branch 'master'.

applets/batteryMonitor: set isSomehowFullyCharged when needed

Opt into the new behavior being added in
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6489.
FIXED-IN: 6.7.0

M  +1    -0    applets/batterymonitor/CompactRepresentation.qml

https://invent.kde.org/plasma/powerdevil/-/commit/cc7e6c2e168094631fd60b121026efeb6f45f729