Bug 509994 - System Tray forces screen repaint every frame until Show Hidden Icons is expanded
Summary: System Tray forces screen repaint every frame until Show Hidden Icons is expa...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (other bugs)
Version First Reported In: 6.4.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-27 11:05 UTC by Bo Zhang
Modified: 2025-09-27 12:13 UTC (History)
2 users (show)

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


Attachments
powertop showing plasmashell waking up CPU 63 times per second, roughly matching 60Hz screen refresh rate. (307.82 KB, image/png)
2025-09-27 11:05 UTC, Bo Zhang
Details
After interacting with system tray "Show Hidden Icons", plasmashell is gone from event list. (347.09 KB, image/png)
2025-09-27 11:06 UTC, Bo Zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bo Zhang 2025-09-27 11:05:22 UTC
Created attachment 185315 [details]
powertop showing plasmashell waking up CPU 63 times per second, roughly matching 60Hz screen refresh rate.

SUMMARY
The plasmashell repaints screen at every monitor frame, even when nothing on screen is changing. Until I interact with the System Tray Show Hidden Icons button by expanding the panel and collapsing. Then it behaves normally. It causes abnormally high power consumption on laptops, affecting battery life significantly.

STEPS TO REPRODUCE
1. Log in to plasma desktop normally
2. Run powertop, observe plasmashell waking up CPU at the frequency of screen refresh rate (i.e. 60, 75, 120).
3. Click "Show Hidden Icons" in system tray, expanding the hidden icons panel, then close the panel.
4. Run powertop again, observe that no plasmashell waking CPU up anymore.

OBSERVED RESULT
Right after logging in without clicking the "Show Hidden Icons", plasmashell will generate repaint event every frame, regardless if there is any change on screen.

EXPECTED RESULT
plasmashell should not generate constant repaint event, if there is no change on screen.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora Linux 42 KDE Plasma Desktop Edition
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
Comment 2 Bo Zhang 2025-09-27 11:06:46 UTC
Created attachment 185316 [details]
After interacting with system tray "Show Hidden Icons", plasmashell is gone from event list.
Comment 3 Bo Zhang 2025-09-27 11:08:07 UTC
Reproduced on 3 systems, 1 desktop with 6.4.4, 2 laptops with 6.4.5.
Comment 4 Martin 2025-09-27 12:13:27 UTC
Most likely a dupe of https://bugs.kde.org/show_bug.cgi?id=477855