Bug 491034 - CPU and GPU usage increase when panel is hidden
Summary: CPU and GPU usage increase when panel is hidden
Status: RESOLVED DUPLICATE of bug 487895
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-30 17:25 UTC by str.alf
Modified: 2024-09-18 12:33 UTC (History)
5 users (show)

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


Attachments
iGPU usage comparisson between panel visible and hidden (494.95 KB, image/jpeg)
2024-07-30 17:25 UTC, str.alf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description str.alf 2024-07-30 17:25:29 UTC
Created attachment 172128 [details]
iGPU usage comparisson between panel visible and hidden

SUMMARY
CPU and GPU usage increase when panel is hidden

STEPS TO REPRODUCE
1. Boot up/wake up system
2. Right click on panel, go to panel configuration
3. Set visibility to auto hide
4. See that the panel is hidden
5. Wait a minute on wayland, or a second if using X11

OBSERVED RESULT
plasmashell and kwin start using CPU (about 8% max) and GPU (0-3 to 250-350MHz). This stops when the panel is raised, then continues when hidden. 

EXPECTED RESULT
System should idle just like when the panel is always visible

SOFTWARE/OS VERSIONS

KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I've once managed to make the consumption stop by opening a bunch of windows and the application launcher and closing all of them afterwards, then the system idles just fine, but it resumes when rebooting or waking up from sleep. It also stops shortly when getting a notification, and resumes afterwards.
Comment 1 Nate Graham 2024-07-30 17:52:10 UTC
Cannot reproduce on my system (10th gen Intel HD620 iGPU). Feels like a driver bug, maybe? Moving to KWin for further investigation.
Comment 2 sinatosk 2024-09-09 21:38:17 UTC
This issue is something I've been experiencing since KDE Plasma 5.27 and again with 6.0 and 6.1 and I've gone from Arch Linux to Gentoo. Only recently on Gentoo did I find somewhat a fix but here's my experience

The KDE panel setting Visibility set to "Always visible", Opacity set to "Adaptive", changed to "Opaque" and then changed to "Translucent", the plasmashell usage issue is not there for me

When I change the Visibility to "Auto hide", regardless of the Opacity setting, the plasmashell issue is there for me. When my mouse cursor is over the KDE panel, the usage drops to 0-2%~

During this high usage with the CPU (10-30%~), I also see alot of GPU usage ( using amdgpu_top )

I'm using a Framework Laptop 16 with Ryzen 7 7840HS with Radeon 780M
Comment 3 sinatosk 2024-09-09 21:39:08 UTC
(In reply to sinatosk from comment #2)
> This issue is something I've been experiencing since KDE Plasma 5.27 and
> again with 6.0 and 6.1 and I've gone from Arch Linux to Gentoo. Only
> recently on Gentoo did I find somewhat a fix but here's my experience
> 
> The KDE panel setting Visibility set to "Always visible", Opacity set to
> "Adaptive", changed to "Opaque" and then changed to "Translucent", the
> plasmashell usage issue is not there for me
> 
> When I change the Visibility to "Auto hide", regardless of the Opacity
> setting, the plasmashell issue is there for me. When my mouse cursor is over
> the KDE panel, the usage drops to 0-2%~
> 
> During this high usage with the CPU (10-30%~), I also see alot of GPU usage
> ( using amdgpu_top )
> 
> I'm using a Framework Laptop 16 with Ryzen 7 7840HS with Radeon 780M

I forgot to mention I'm using KDE Plasma 6.1.4 with Wayland
Comment 4 Chirag Mittal 2024-09-10 05:01:06 UTC
I have the same issue on my system as well. Have been looking for a fix for quite long, and setting panel to always visible seems to work, atleast for now. 

Here's my system information for reference:
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.8-arch1-1 (64-bit)
Graphics Platform/Driver: Wayland/i915 (Intel Iris Graphics AdlerLake-P)
OS: EndeavourOS

Observed Result:
- On Panel AutoHide + Adaptive Opacity
While having any window open, GPU usage spikes upto 40-50%. When switching to overview view, it seems to decrease back to 1-2%.

- After Panel Always Visible + Full Opaque
All windows use 1-2% GPU on Idle
Comment 5 Nate Graham 2024-09-16 15:08:16 UTC
For those affected, is this reproducible on a new clean user account with no customizations (except for making the default panel auto-hide)?
Comment 6 sinatosk 2024-09-18 12:32:10 UTC
(In reply to Nate Graham from comment #5)
> For those affected, is this reproducible on a new clean user account with no
> customizations (except for making the default panel auto-hide)?

Yes

kinfo on Framework Laptop 16
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-gentoo-dist-gcc-znver4 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
Memory: 27.2 GiB of RAM
Graphics Processor: AMD Radeon 780M
Comment 7 Nate Graham 2024-09-18 12:33:17 UTC
Thanks. Then this is Bug 487895.

*** This bug has been marked as a duplicate of bug 487895 ***