MATE + compiz - high cpu usage

Questions about applications and software
Forum rules
Before you post please read this

MATE + compiz - high cpu usage

Postby dezo on Sat Apr 07, 2012 3:50 pm

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:
Image
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!
dezo
Level 2
Level 2
 
Posts: 51
Joined: Sat Apr 07, 2012 3:16 pm

Linux Mint is funded by ads and donations.
 

Re: MATE + compiz - high cpu usage

Postby zerozero on Sat Apr 07, 2012 6:13 pm

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
zerozero
Level 16
Level 16
 
Posts: 6467
Joined: Tue Jul 07, 2009 2:29 pm

Re: MATE + compiz - high cpu usage

Postby llmb0611 on Sun Apr 08, 2012 5:59 am

thanks zerozero, that does fix the 100% cpu usage. can you please explain what does ''killall -9 marco'' do?
Ubuntu 11.10 64-bit
Linux Mint Debian Gnome 3.0.2

AMD Athlon(tm) 64 Processor 3000+
2 GB RAM
NVIDIA XFX GeForce G210 HM, 512 MB
User avatar
llmb0611
Level 1
Level 1
 
Posts: 9
Joined: Fri Feb 10, 2012 3:55 pm

Re: MATE + compiz - high cpu usage

Postby äxl on Sun Apr 08, 2012 6:52 am

llmb0611 wrote:can you please explain what does ''killall -9 marco'' do?


Marco is a fork of Metacity. Metacity is like Compiz a Window Manager. Two WMs don't play together (well?).

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
My Linux history: Ubuntu 10.04 - 10.10 - LMDE 201109 - UP4 My sources.list/preferences

Computers is not science. And it's not magic - it's something in between.
User avatar
äxl
Level 5
Level 5
 
Posts: 524
Joined: Fri Apr 06, 2012 6:14 am
Location: Germany

Re: MATE + compiz - high cpu usage

Postby dezo on Mon Apr 09, 2012 3:34 am

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?
dezo
Level 2
Level 2
 
Posts: 51
Joined: Sat Apr 07, 2012 3:16 pm

Re: MATE + compiz - high cpu usage

Postby mbalazs81 on Mon Apr 09, 2012 5:29 am

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?


Yes, the decorator is Emerald.
Linux Mint KDE
mbalazs81
Level 2
Level 2
 
Posts: 56
Joined: Fri Mar 18, 2011 12:38 am

Re: MATE + compiz - high cpu usage

Postby madwoollything on Wed Apr 11, 2012 10:56 am

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?
madwoollything
Level 3
Level 3
 
Posts: 158
Joined: Sun Jul 20, 2008 8:46 am

Re: MATE + compiz - high cpu usage

Postby madwoollything on Thu Apr 12, 2012 6:22 am

äxl wrote:
llmb0611 wrote:can you please explain what does ''killall -9 marco'' do?


Marco is a fork of Metacity. Metacity is like Compiz a Window Manager. Two WMs don't play together (well?).

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


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.
madwoollything
Level 3
Level 3
 
Posts: 158
Joined: Sun Jul 20, 2008 8:46 am

Re: MATE + compiz - high cpu usage

Postby äxl on Thu Apr 12, 2012 7:00 am

You should be able to change it with:
Code: Select all
mateconf-editor

Go to /desktop/mate/session/required_components/windowmanager
And replace marco with compiz
My Linux history: Ubuntu 10.04 - 10.10 - LMDE 201109 - UP4 My sources.list/preferences

Computers is not science. And it's not magic - it's something in between.
User avatar
äxl
Level 5
Level 5
 
Posts: 524
Joined: Fri Apr 06, 2012 6:14 am
Location: Germany

Re: MATE + compiz - high cpu usage

Postby dezo on Sat Apr 14, 2012 4:31 am

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.
dezo
Level 2
Level 2
 
Posts: 51
Joined: Sat Apr 07, 2012 3:16 pm

Re: MATE + compiz - high cpu usage

Postby madwoollything on Sat Apr 14, 2012 5:53 am

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.


Thanks .... I now have one happy daughter who loves the compiz effects.

I think the package you want is mate-conf-editor but mateconf-editor is the command used to launch the gui.
madwoollything
Level 3
Level 3
 
Posts: 158
Joined: Sun Jul 20, 2008 8:46 am

Re: MATE + compiz - high cpu usage

Postby dezo on Sat Apr 14, 2012 7:27 am

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.
dezo
Level 2
Level 2
 
Posts: 51
Joined: Sat Apr 07, 2012 3:16 pm

Re: MATE + compiz - high cpu usage

Postby madwoollything on Sat Apr 14, 2012 7:40 am

dezo 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.


Thanks ... I had failed to get compiz working until you suggested renaming marco to marco.1
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?
madwoollything
Level 3
Level 3
 
Posts: 158
Joined: Sun Jul 20, 2008 8:46 am

Re: MATE + compiz - high cpu usage

Postby äxl on Sat Apr 14, 2012 8:33 am

dezo wrote:But the method suggested by äxl doesn't work, the session is started without any window manager running.

Sorry. You could try to add the following command as a Startup Application
Code: Select all
sh -c "killall -9 marco; compiz --replace"
My Linux history: Ubuntu 10.04 - 10.10 - LMDE 201109 - UP4 My sources.list/preferences

Computers is not science. And it's not magic - it's something in between.
User avatar
äxl
Level 5
Level 5
 
Posts: 524
Joined: Fri Apr 06, 2012 6:14 am
Location: Germany

Re: MATE + compiz - high cpu usage

Postby dezo on Sat Apr 14, 2012 8:54 am

No problem. I think it's better not to start marco at all because after killing something seems to keep restarting it.
dezo
Level 2
Level 2
 
Posts: 51
Joined: Sat Apr 07, 2012 3:16 pm

Re: MATE + compiz - high cpu usage

Postby äxl on Sat Apr 14, 2012 11:36 am

dezo wrote:No problem. I think it's better not to start marco at all because after killing something seems to keep restarting it.

Yeah, read something about it in MATE forums. You're solution is quite ugly. ;) But if it works good for you!
Maybe you could report it: viewforum.php?f=206
My Linux history: Ubuntu 10.04 - 10.10 - LMDE 201109 - UP4 My sources.list/preferences

Computers is not science. And it's not magic - it's something in between.
User avatar
äxl
Level 5
Level 5
 
Posts: 524
Joined: Fri Apr 06, 2012 6:14 am
Location: Germany

Re: MATE + compiz - high cpu usage

Postby Fornhamfred on Tue Apr 17, 2012 1:45 pm

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."
Fornhamfred
Level 6
Level 6
 
Posts: 1131
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: MATE + compiz - high cpu usage

Postby bdantas on Wed Apr 18, 2012 9:42 pm

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 :D Thanks for the tip, axl.
bdantas
Level 2
Level 2
 
Posts: 56
Joined: Tue Jan 03, 2012 8:42 pm

Re: MATE + compiz - high cpu usage

Postby llmb0611 on Thu Apr 19, 2012 6:20 pm

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
Code: Select all
#!/bin/bash
sleep 30
killall -9 marco

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
Code: Select all
chmod +x killall.sh

and try restart, it should work...
Ubuntu 11.10 64-bit
Linux Mint Debian Gnome 3.0.2

AMD Athlon(tm) 64 Processor 3000+
2 GB RAM
NVIDIA XFX GeForce G210 HM, 512 MB
User avatar
llmb0611
Level 1
Level 1
 
Posts: 9
Joined: Fri Feb 10, 2012 3:55 pm

Re: MATE + compiz - high cpu usage

Postby Bill_MI on Wed Apr 25, 2012 7:05 am

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). :D

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
User avatar
Bill_MI
Level 1
Level 1
 
Posts: 8
Joined: Thu Nov 10, 2011 7:25 am

Linux Mint is funded by ads and donations.
 
Next

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 5 guests