Bug 501943 - Displayed power profile in system tray is not updated if state change happened while system was suspended
Summary: Displayed power profile in system tray is not updated if state change happene...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power and Battery widget (other bugs)
Version First Reported In: 6.3.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 512002 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-24 15:08 UTC by alt
Modified: 2025-11-16 14:20 UTC (History)
7 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 alt 2025-03-24 15:08:10 UTC
SUMMARY
The system tray's Power and Battery window displays the previous power profile (in accordance with the tray's battery icon) after resuming from suspension if the AC power is connected/disconnected while in suspension (corresponding to on AC power/on battery events).
When I edit a power management option from the settings, it is updated and shows the correct power profile.

STEPS TO REPRODUCE
1. Make sure that the "Switch to power profile" option in the Power Management settings is set to "balanced" for the On Battery tab and set to "performance" for the On AC Power tab.
2.  Suspend the system (sleep).
3. Change state by connecting/disconnecting from AC power during suspension.
4. Resume from suspension and check the Power and Battery window by clicking on the system tray's battery icon. It should still display the previous power profile.

OBSERVED RESULT
Power profile displayed incorrectly in system tray after suspension.

EXPECTED RESULT
Power profile should be displayed correctly immediately after suspension. 

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.19-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 1 TraceyC 2025-03-25 21:08:37 UTC
Confirmed this on my system
Put it to sleep on AC, power profile correctly showed "Performance"
After waking it on battery, the power profile was still set to Performance instead of switching to Balanced

Operating System: Solus 4.7
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.19-315.current (64-bit)
Graphics Platform: Wayland
Comment 2 Nate Graham 2025-03-26 17:53:14 UTC
Hmm, on git master I can't reproduce that. Unplugging while asleep leads to the profile being changed on wake-up as expected.
Comment 3 TraceyC 2025-11-13 20:52:20 UTC
*** Bug 512002 has been marked as a duplicate of this bug. ***
Comment 4 kde 2025-11-16 14:20:07 UTC
(In reply to alt from comment #0)

> SUMMARY
> The system tray's Power and Battery window displays the previous power
> profile (in accordance with the tray's battery icon) after resuming from
> suspension if the AC power is connected/disconnected while in suspension
> (corresponding to on AC power/on battery events).

...

> OBSERVED RESULT
> Power profile displayed incorrectly in system tray after suspension.
> 
> EXPECTED RESULT
> Power profile should be displayed correctly immediately after suspension. 

[I'm the reporter of #512002, which has been marked as a duplicate of this.]

To be clear, the problem, at least in my case, is not the incorrect *display* of the power profile in the system tray, but the fact that the incorrect profile is actually active, as can be seen by invoking the "powerprofilesctl" command.