Summary: | Continous power usage and battery draining (plasmashell & kwin). | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Apostolos Dimi <apdim9> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | kde, nate |
Priority: | NOR | ||
Version First Reported In: | 6.2.3 | ||
Target Milestone: | 1.0 | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Debug log of plasmashell.
Screenshot when triggered. |
Created attachment 176757 [details]
Screenshot when triggered.
*** This bug has been marked as a duplicate of bug 487895 *** I am not using the pager and I already have the patch https://invent.kde.org/plasma/plasma-desktop/-/commit/8f2b64e329301b958413ac64bd64ed22d8110e3a applied So I think it is different. Unfortunately that only works around the issue for the pager. Other things can trigger it too, since it's an issue in Qt. |
Created attachment 176755 [details] Debug log of plasmashell. SUMMARY When plasmashell is set to auto-hide, it is common to enter an infinite loop and cause high CPU usage and power draining. There is a number of situations that will trigger the bug, like receiving a notification from network connection. This caused significant battery drain in both laptops tested. The issue persists in both the kde-neon-testing and kde-neon-user. I will attach a log with my finding later. The behaviour can be triggered easily in any KDE neon live cd or Kubuntu. It affects both X11 and Wayland. I have checked the C++ source and found that plasmashell is receiving an infinite number of UpdateRequests. Will attach a log soon. STEPS TO REPRODUCE 1. On neon live cd, boot and open a terminal with top. 2. Open panel settings and set visibility to Auto Hide 3. Close settings and keep mouse outside of panel. *OR* 1. Set plasmashell to auto-hide. Enter airplane mode with keyboard shortcut. Exit airplane mode with keyboard. 2. When notification about network connection is received and panel is hidden, plasmashell enters an infinite loop that consumes cpu together with kwin. The behaviour is back to normal when the panel is shown by moving the mouse at the bottom of the screen. OBSERVED RESULT Unnecessary CPU usage and battery drain. EXPECTED RESULT No/little CPU usage when user idle. SOFTWARE/OS VERSIONS (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: 6.2.3 (additionally affects all KDE Plasma versions tested so far >6). KDE Frameworks Version: 6.8.0 Qt Version: 6.8.0 ADDITIONAL INFORMATION Screenshot 1 Plasmashell debug log.