EliverLara / Juno

GTK themes inspired by epic vscode themes
GNU General Public License v3.0
462 stars 23 forks source link

High CPU usage on xfce4-panel in XFCE v4.18 #61

Closed melroy89 closed 1 year ago

melroy89 commented 1 year ago

Since I upgraded to XFCE 4.18 I noticed high CPU usage of the xfce4-panel process.

The root-cause was in Panel->Panel Preferences -> Appearance tab-> Background style-> "None (use system style)".

The moment I changed this to "Solid color" instead, the high CPU usage issue went away..

I think you need to look into the default panel style, especially the background..

Thanks in advance...

Related: https://unix.stackexchange.com/questions/500771/xfce4-panel-and-xorg-using-100-cpu-when-the-panel-background-set-to-none-use (but not the same theme, but related issue)

EliverLara commented 1 year ago

Hi, I'm so sorry for the very late response, Could you please tell me how can I see such behaviour? I've testing my themes and I've never faced that issue, I would be amazing if you could help me.

melroy89 commented 1 year ago

So I use Juno-v40 with Linux Mint 20 (XFCE).

Then I go to the Panel Preferences and select "none" as background style:

image

And this is causing the xfce4-panel use about 20% CPU (constant usage!):

image

EliverLara commented 1 year ago

Thank you so much for your help, Could you please make me a big favor and check if replacing the file Juno/gtk-3.0/gtk.css with this one(extracted) fixes the issue, please?

melroy89 commented 1 year ago

I need to switch between another theme and your GTK theme(at Appearance in XFCE) to be sure the new gtk.css file gets loaded. But yes, it seems to be fixed! 🥳

It's now around 0.7% CPU load, sometimes 0.0%.

When switching back to the old version (and switching themes to another theme and back to Juno v40) it seems to be returning. Meaning that I can reproduce the problem on the old version and your new css file the issue seems to be fully resolved.

One side note: I did copied to: Juno-v40/gtk-3.0/ (so not Juno), because I'm using v40. But I copied your file to the v40 version. I hope that doesn't matter too much. Ideally you may want to patch all your versions 👍🏽 .

EliverLara commented 1 year ago

Thank you so much for all your help @melroy89 I'm so grateful with you, and yes I'll be patching all my themes and versions, thank you so much!

melroy89 commented 1 year ago

Thank you as well for coming back and solving the problem!

CamsShaft commented 9 months ago

HAHAHA I can't believe this worked. So stupid. Thank you!

melroy89 commented 8 months ago

HAHAHA I can't believe this worked. So stupid. Thank you!

It should be patched already right? Or do you still need the workaround?

CamsShaft commented 8 months ago

HAHAHA I can't believe this worked. So stupid. Thank you!

It should be patched already right? Or do you still need the workaround?

Actually no it's all good. As soon as I switched to stock background my laptop calmed down. I just installed xfce and was busy configuring and noticed the cpu graph on the panel I JUST put there earlier was going haywire. I'm sure I wouldn't have noticed it for a while. There's a ton of processes in the task manager but only like 4 were running