MATE + compiz - high cpu usage
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
MATE + compiz - high cpu usage
Hello,
I'm running LMDE update pack 4 with MATE desktop. I'd like to use compiz as well (which works fine over MATE), but there's a strange high CPU usage:
I can see that both cores are running at ~50% (and I can hear the laptop fans), but I don't see any process using this much CPU!
What does it mean and can I somehow fix this?
Thanks!
I'm running LMDE update pack 4 with MATE desktop. I'd like to use compiz as well (which works fine over MATE), but there's a strange high CPU usage:
I can see that both cores are running at ~50% (and I can hear the laptop fans), but I don't see any process using this much CPU!
What does it mean and can I somehow fix this?
Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: MATE + compiz - high cpu usage
yeahh it's a shame but mate+compiz atm are still not playing together very well, specially that issue you are reporting; anyway the fix is easy killall -9 marco after compiz starts and miracles happen
Re: MATE + compiz - high cpu usage
thanks zerozero, that does fix the 100% cpu usage. can you please explain what does ''killall -9 marco'' do?
Re: MATE + compiz - high cpu usage
Marco is a fork of Metacity. Metacity is like Compiz a Window Manager. Two WMs don't play together (well?).llmb0611 wrote:can you please explain what does ''killall -9 marco'' do?
A more complete command:
killall -9 marco; compiz --replace & disown
Or the other way around:
killall -9 compiz; marco --replace & disown
I like that page to make forks/renaming clear:
http://wiki.mate-desktop.org/migrating
Re: MATE + compiz - high cpu usage
Thanks for anwer zerozero, this works nice even if it's not ideal.
However, one more question: I thought that compiz was only a window manager and so it still needed a window decorator (displaying window header with close button & stuff) running (metacity). This is not true?
However, one more question: I thought that compiz was only a window manager and so it still needed a window decorator (displaying window header with close button & stuff) running (metacity). This is not true?
Re: MATE + compiz - high cpu usage
Yes, the decorator is Emerald.dezo wrote:Thanks for anwer zerozero, this works nice even if it's not ideal.
However, one more question: I thought that compiz was only a window manager and so it still needed a window decorator (displaying window header with close button & stuff) running (metacity). This is not true?
Re: MATE + compiz - high cpu usage
I too have noticed this and don't want to use MATE until this is sorted.
Is there likely to be an update to LMDE in the near future fixing this problem or will it take some time?
Is there likely to be an update to LMDE in the near future fixing this problem or will it take some time?
Re: MATE + compiz - high cpu usage
Is there a simple way of automating this at startup? I've been playing around with some scripts but have had no success so far.äxl wrote:Marco is a fork of Metacity. Metacity is like Compiz a Window Manager. Two WMs don't play together (well?).llmb0611 wrote:can you please explain what does ''killall -9 marco'' do?
A more complete command:
killall -9 marco; compiz --replace & disown
Or the other way around:
killall -9 compiz; marco --replace & disown
I like that page to make forks/renaming clear:
http://wiki.mate-desktop.org/migrating
Re: MATE + compiz - high cpu usage
You should be able to change it with:
Go to /desktop/mate/session/required_components/windowmanager
And replace marco with compiz
Code: Select all
mateconf-editor
And replace marco with compiz
Re: MATE + compiz - high cpu usage
I've renamed /usr/bin/marco to marco.1 so mate cannot run it and added compiz to Startup applications. Which is not a nice solution but it works
Which package does mateconf-editor come from? I don't have this tool in my binaries.
Which package does mateconf-editor come from? I don't have this tool in my binaries.
Re: MATE + compiz - high cpu usage
Thanks .... I now have one happy daughter who loves the compiz effects.dezo wrote:I've renamed /usr/bin/marco to marco.1 so mate cannot run it and added compiz to Startup applications. Which is not a nice solution but it works
Which package does mateconf-editor come from? I don't have this tool in my binaries.
I think the package you want is mate-conf-editor but mateconf-editor is the command used to launch the gui.
Re: MATE + compiz - high cpu usage
Yes, that's the right package, thanks.
But the method suggested by äxl doesn't work, the session is started without any window manager running.
But the method suggested by äxl doesn't work, the session is started without any window manager running.
Re: MATE + compiz - high cpu usage
Thanks ... I had failed to get compiz working until you suggested renaming marco to marco.1dezo wrote:Yes, that's the right package, thanks.
But the method suggested by äxl doesn't work, the session is started without any window manager running.
I've noticed that the login screen dialogue doesn't look so good but the trade off is worth it! What does marco actually do?
Re: MATE + compiz - high cpu usage
Sorry. You could try to add the following command as a Startup Applicationdezo wrote:But the method suggested by äxl doesn't work, the session is started without any window manager running.
Code: Select all
sh -c "killall -9 marco; compiz --replace"
Re: MATE + compiz - high cpu usage
No problem. I think it's better not to start marco at all because after killing something seems to keep restarting it.
Re: MATE + compiz - high cpu usage
Yeah, read something about it in MATE forums. You're solution is quite ugly. But if it works good for you!dezo wrote:No problem. I think it's better not to start marco at all because after killing something seems to keep restarting it.
Maybe you could report it: http://forums.linuxmint.com/viewforum.php?f=206
- Fornhamfred
- Level 6
- Posts: 1243
- Joined: Wed Oct 31, 2007 3:38 pm
- Location: Suffolk UK
Re: MATE + compiz - high cpu usage
Had the same problem. Followed the suggestion to change the settings in mate-conf-editor. This has reduced the cpu usage down to average 25% when running Firefox and Rythmbox, however this is still higher than on Gnome 2 or 3. Also I am unable to change to change the Windows settings. The error is "Cannot start the preferences application for your window manager. Window manager "compiz" has not registered a configuration tool."
Re: MATE + compiz - high cpu usage
LMDE UP4 with MATE here
sh -c "killall -9 marco; compiz --replace" in Startup Applications got my cpu usage down, but 2 of 4 threads still at 40-50% (even though no marco processes were running! bizarre)
Then I replaced marco with compiz in mate-conf-editor and cpu usage went down to 0-2%. Beautiful Thanks for the tip, axl.
sh -c "killall -9 marco; compiz --replace" in Startup Applications got my cpu usage down, but 2 of 4 threads still at 40-50% (even though no marco processes were running! bizarre)
Then I replaced marco with compiz in mate-conf-editor and cpu usage went down to 0-2%. Beautiful Thanks for the tip, axl.
Re: MATE + compiz - high cpu usage
what worked for me...
create a new file wherever you wan't. i created it in home folder, named it killall.sh inside this file write this
i had to use sleep because it waits for compiz to start and then kilall works...
then in startup applications first add new startup entry to start compiz. name-compiz command- compiz and then add name- killall command- path to the killall.sh script. you have to allow the script to execute...you can do that with writing this in terminal
and try restart, it should work...
create a new file wherever you wan't. i created it in home folder, named it killall.sh inside this file write this
Code: Select all
#!/bin/bash
sleep 30
killall -9 marco
then in startup applications first add new startup entry to start compiz. name-compiz command- compiz and then add name- killall command- path to the killall.sh script. you have to allow the script to execute...you can do that with writing this in terminal
Code: Select all
chmod +x killall.sh
Re: MATE + compiz - high cpu usage
Hey guys, Thanks for this thread. LMDE-UP4-RC Mate running fairly well with Compiz after arriving at bdantas' last setup. Didn't have to sleep anything. It starts up in EXPO zoomed out mode (no biggy).
This is nouveau driver on a 4 year old nVidia card that seems well supported around distros. I'd like to hear anyone's experience with nVidia drivers. It's jerkier than I expected but CPU seems fine (now).
I think I'm getting the window decorations from Cinnamon? Are most of you running Emerald? What source?
TIA
PS: I found a strange relationship with CPU usage and the theme setup in marco before it switches when I was starting compiz by CLI. Maybe I fooled myself.
This is nouveau driver on a 4 year old nVidia card that seems well supported around distros. I'd like to hear anyone's experience with nVidia drivers. It's jerkier than I expected but CPU seems fine (now).
I think I'm getting the window decorations from Cinnamon? Are most of you running Emerald? What source?
TIA
PS: I found a strange relationship with CPU usage and the theme setup in marco before it switches when I was starting compiz by CLI. Maybe I fooled myself.
--
Expert Opinions $5... Shut Up $20
Expert Opinions $5... Shut Up $20