This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compiz Fusion autostart in KDE 4.2 - The Easy Way

Tags: None
(comma "," separated)
User avatar
furiouslogic
Registered Member
Posts
4
Karma
0
OS
(* That was tested in KDE 4.2 on SuSE 11.0 *)

There are some ways to autostart Compiz Fusion...

- a script in ~/.kde4/Autostart with a link in there and then (...)
- Applications / Configure Desktop / Advanced / Autostart and so link a fusion-icon ...
- ALT+F2, compiz --replace... (...)
- ...

and maybe so much more but if you trace the loading sequence in KDE 4.2 you'll see a kwin loaded first too like Window Manager and then will change to Compiz Fusion and then will change to Emerald like Window Decorator... Many work there, not too fast, thats fine but what do you think about this:

- Applications / Configure Desktop (or Personal Settings. It's the same thing)
- General tab / Default Applications / Window Manager
- Select: Use a different window manager
- Select Compiz ( Don't push Configure button )
- Push Apply button and close window.
- To configure Compiz Fusion has 3 programs:

Applications / Utilities / Desktop / Simple CompizConfig Settings Manager
Applications / Utilities / Desktop / CompizConfig Settings Manager
Applications / Utilities / Desktop / Emeral Theme Manager too

It was so easy or what?
(* That was tested in KDE 4.2 on SuSE 11.0 *)

:-)

Furious Logic [aRC]
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS
furiouslogic wrote:(* That was tested in KDE 4.2 on SuSE 11.0 *)

There are some ways to autostart Compiz Fusion...

- a script in ~/.kde4/Autostart with a link in there and then (...)
- Applications / Configure Desktop / Advanced / Autostart and so link a fusion-icon ...
- ALT+F2, compiz --replace... (...)
- ...

and maybe so much more but if you trace the loading sequence in KDE 4.2 you'll see a kwin loaded first too like Window Manager and then will change to Compiz Fusion and then will change to Emerald like Window Decorator... Many work there, not too fast, thats fine but what do you think about this:

- Applications / Configure Desktop (or Personal Settings. It's the same thing)
- General tab / Default Applications / Window Manager
- Select: Use a different window manager
- Select Compiz ( Don't push Configure button )
- Push Apply button and close window.


It was so easy or what?


An excellent tip: thanks.

And indirectly, this provides an answer to a question I posed a while ago; how to script-up a way to disable 3D effects when running programs like Google Earth or glxgears. It may be of use to others, so here it is.

1. Make sure KDE desktop effects are disabled (systemsettings -> Desktop -> Desktop Effects -> General)
2. Save the following script as "3dwrapper":
Code: Select all
#!/bin/bash

# Check there's a command to run
if [ $# -eq 0 ]
then
        echo "Syntax: 3dwrapper command [args]"
        exit
fi     

# Replace compiz with kwin
kwin --replace &

# Give kwin time to initialise
sleep 10

# Run the command
$*

# Re-start Compiz
compiz --replace &

Make the script executable:
Code: Select all
chmod +x /path/to/3dwrapper


And to run Google Earth:
Code: Select all
3dwrapper googleearth


The script checks you've actually given it a command to run, replaces Compiz with Kwin, waits 10 seconds to allow kwin to initialise (you may need to increase this if you've got slow hardware), runs the command (passing any arguments you included) then when the command exits, replaces Kwin with Compiz again.

Of course it would be better if it were possible to mix desktop effects with 3d programs, but at least this helps a bit.


User avatar
Tomaz
Registered Member
Posts
86
Karma
0
since I don`t have a powerfull neougth pc to run composite desktop effects, please don`t take this personal, but...
why there`s a need for compiz/fusion while we have kwin with native composition?


Rocs developer. (and no, i'm not proud of it) ;D
User avatar
beermad
Registered Member
Posts
104
Karma
0
OS
Tomaz wrote:since I don`t have a powerfull neougth pc to run composite desktop effects, please don`t take this personal, but...
why there`s a need for compiz/fusion while we have kwin with native composition?


Well obviously I can only speak for myself, but from my point of view, Compiz is simply better than Kwin's effects. It looks better and it works better.

And as is so often the case with KDE4, Kwin's effects just don't have the configurability that Compiz's have.


User avatar
furiouslogic
Registered Member
Posts
4
Karma
0
OS
I don't use kwin+Desktop Effects because doesn't works.

I have a nvidia card with drivers installed with composite and 3D activated. It works perfectly and very fast using all effects from Compiz Fusion but doesn't works with kwin+effects. I don't understand why. Composite activated in xorg.conf

When I am using kwin and try to activate Desktop Effects (Composite type: OpenGL) the systems says:

"Failed to activate desktop effects using the given configuration options. Setting will be reverted to their previous values. Check your X configuration. You may also consider changing advanced options, especially changing the compositing type"

Then I select Composite type: XRender and effects works like a Windows Vista in Pentium III. All systems is realllly slow.

Compiz Fusion works and kwin+effects don't?

:-S
Aristoteles
Registered Member
Posts
8
Karma
0
Hello,
I have got such problem like u are solving in first topic. I wanted to make a little change and install COmpiz with emerald. TO be honest i more wanted Emerald then compiz cause KWin effects are quite enough in most of time. But decoration is depressing :P. I did all like u wrote in first topic but what i got in return:
1. Yes Compiz is taking control of the ship:) But i can't change anything. In ccsm i do changes but they are not applied.
2. Emerald is not starting with Compiz. If i use --replace then Emerald is starting and working so it is compatible.
Any ideas?

Last edited by Aristoteles on Mon May 25, 2009 6:36 am, edited 1 time in total.


Aristoteles, proud to be a member of KDE forums since 2008-Dec.
User avatar
Madman
Registered Member
Posts
593
Karma
1
OS
Aristoteles wrote:Hello,
I have got such problem like u are solving in first topic. I wanted to make a little change and install COmpiz with emerald. TO be honest i more wanted Emerald then compiz cause KWin effects are quite enough in most of time. But decoration is depressing :P. I did all like u wrote in first topic but what i got in return:
1. Yes Compiz is taking control of the ship:) But i can't change anything. In ccsm i do changes but they are not applied.
2. Emerald is not starting with Compiz. If i use --replace then Emerald is starting and working so it is compatible.
Any ideas?



Problem 2: Go to ccsm, then go to, "Window decorator" and replace the, "command" line with, "emerald --replace".
Of course, this won't work if you still suffer from problem 1.
RobertoMS
Registered Member
Posts
4
Karma
0
OS
I can't say this tip worths a million, but it's really useful! Exactly what I'm looking for! It seems to fix the pager problem, which was getting pages of viewports displayed reset every time the desktop starts. Also now, Compiz is starting much earlier than before, before every other autostarted application to start, thus avoiding a few glitches from occuring. Thank God! Thanks for your sharing furioslogic! :D
hellknight
Registered Member
Posts
1
Karma
0
OS
Thanx.. it is running neatly in OpenSUSE 11.2 RC..


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]