Bug 448032

Summary: Volume monitoring feature causes excessive and constant CPU usage when applet is placed on the desktop
Product: [Plasma] plasma-pa Reporter: Nate Graham <nate>
Component: appletAssignee: David Rosca <nowrep>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, nicolas.fella, plasma-bugs
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nate Graham 2022-01-06 18:00:48 UTC
STEPS TO REPRODUCE
1. Put a plasma-pa applet on the desktop
2. Start playing some music


OBSERVED RESULT
Plasmashell idles at 100% CPU usage, even when the applet is not visible because it is covered up by other windows


EXPECTED RESULT
the applet should not consume 100% CPU usage when on the desktop. At the minimum, we shouldn't do pointless work to monitor the volume while the applet isn't even visible because it's covered up by windows.
 

ADDITIONAL INFORMATION
The CPU usage is not as high for me when the applet lives in the System Tray and its popup is open; when doing this, plasmashell idles at about 40% CPU usage, rather than 100% when the applet is on the desktop. And when the popup is closed, CPU usage goes down to practically 0% as expected.
Comment 1 Nicolas Fella 2022-01-06 18:58:10 UTC
dup of https://bugs.kde.org/show_bug.cgi?id=441555 ?
Comment 2 Nate Graham 2022-01-06 19:00:37 UTC
Yep, looks like the same thing since the conclusion there is that it happens when the applet is visible.

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