Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marco won't die (and causes high CPU load) after compiz --replace #91

Open
benpicco opened this issue Jan 17, 2012 · 12 comments
Open

marco won't die (and causes high CPU load) after compiz --replace #91

benpicco opened this issue Jan 17, 2012 · 12 comments

Comments

@benpicco
Copy link

  • start a normal mate session
  • compiz --replace
  • CPU usage goes up (about 67% on each core here), but htop can't assign it to any process

ps aux still shows a marco process

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
benpicco 2108 0.0 0.5 169044 7164 ? Sl 23:44 0:00 marco

  • killall -KILL marco -> everything back to normal, compiz runs smoothly

But this is only true for the first marco, if you then do a marco --replace and a compiz --replace, marco doesn't survive and there are no signs of unusual CPU load. It has been reported that the same is true for emerald.

@xpander69
Copy link

confirming
for me the fix is. https://wiki.archlinux.org/index.php/MATE
ln -s /usr/lib/libgnutls.so /usr/lib/libgnutls.so.26

and adding killall marco to startup

the issue doesnt dissapear entirely tho. at some random point it keeps coming back.

@stefano-k
Copy link
Contributor

@xpander69 in that wiki page, that fix is for caja, not for compiz/mate

@drakej
Copy link

drakej commented Feb 10, 2012

There's a fix for the CPU issue already but I had an issue with memory leaks in regards to unity-window-decorator. I was able to get around this by modifying:

/desktop/mate/session/required_components/windowmanager/

You can simply set this to nothing and then continue to run the "compiz --replace" as a startup application. That way you don't have to kill marco because it never actually runs. It seems to have resolved the memory leak that I was seeing as a result of running marco before compiz.

@benpicco
Copy link
Author

Or even better - replace marco with compiz in /desktop/mate/session/required_components/windowmanager/ so it will use compiz automatically.

@drakej
Copy link

drakej commented Feb 13, 2012

I tried that but for some reason mate doesn't properly load compiz when set and results in missing window manager errors. Would be great if it could, maybe next update.

@benpicco
Copy link
Author

This issue is still present.

@GM-Script-Writer-62850
Copy link

Work around multi desktop environment friendly shell script for startup applications:
#!/bin/sh if [ 0pidof mate-session -gt 0 ]; then killall marco compiz --replace & fi
Note: in precise (and maybe other distros) you may need to go into CCSM and configure it before using compiz for to to be usable
you may need to run gtk-window-decorator --replace & to get title bars
Anyone how how to do get the these comments to use a the html tag pre?

@szesch
Copy link
Contributor

szesch commented Apr 29, 2012

Open /usr/share/app-install/desktop/compiz.desktop and change any references from GNOME to MATE and any references of metacity to marco. Then copy /usr/share/applications/marco.desktop to /usr/share/app-install/desktop.

This should work.

@GM-Script-Writer-62850
Copy link

the naming system seems to be different than that on my install of xubuntu 12.04

ls /usr/share/app-install/desktop | grep compiz
compizconfig-settings-manager:ccsm.desktop
compiz-core:compiz.desktop

ls /usr/share/app-install/desktop | grep wine
q4wine:q4wine.desktop
wine1.4:wine.desktop
winefish:winefish.desktop
winetricks:wine-winetricks.desktop

why do i have wine desktop files in here anyway when wine is not installed???

anyway i will give that a try with this different naming system

edit: metacity does not appear in this file, aborted will do on a test system i can afford to break
also would i change "X-GnomeWMSettingsLibrary=compiz" to "X-MateWMSettingsLibrary=compiz"

@Frannoe
Copy link

Frannoe commented May 1, 2012

starting mateconf-editor and change:
/desktop/mate /session/required_components /windowmanager marco

to

/desktop/mate /session/required_components /windowmanager compiz

Finally create an application to start with the command:
compiz ccp

It works perfectly

@GM-Script-Writer-62850
Copy link

that works nicely Frannoe
now to get gtk-window-manager working right currently using this in a startup script
sleep 3; gtk-window-decorator --replace --metacity-theme "Ambiance"

@Frannoe
Copy link

Frannoe commented May 1, 2012

Thank you very much!

I saw it here:

#66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants