Pages

How To Edit Compiz Settings in Ubuntu 11.04 Natty Narwhal Easily?

OK, first of all, I think everyone is aware of the fact that Ubuntu Linux (especially the Unity desktop) heavily depends on Compiz (one of the best window-manager that uses your GPU - ATI/Nvidia and Intel, etc.. 3D hardware accelerations or 3D Graphics rendering in general). So configuring Compiz in Ubuntu Linux can be pretty handy, only if you know what you're doing, no disrespect intended.

Although you can easily do this by installing a well known front-end but still, even without having to install anything at all, you can change a lot of Compiz related settings in Ubuntu 11.04 using the Gnome configuration manager called "Gconfig-editor".

And I think it's always best to start with the somewhat the "hard-way", which always helps me, when it comes to quickly learning GNU/Linux and its other aspects. Don't you think? :). Okay, let's get started. 

1. Open your Terminal and issue the below command.
gconf-editor

2. This should bring you the Gnome Configuration editor as shown below. From the left side choose:"apps" -> "compiz-1".


Now under "compiz-1", go to "plugins". There you'll see a hell lot of options :P that can be used to configure compiz pretty easily. But as I said before, even the most smallest change can have a significant effect on Ubuntu 11.04 because Unity desktop is actually a plug-in that runs on top of Compiz 3D rendering engine!.

Oh you can change a lot... but be careful!...

So, if you successfully messed up Compiz then you can actually reset all those value to the default ones by issuing the below commands in your Terminal.
gconftool-2 --recursive-unset /apps/compiz-1
unity --reset 
It's advisable to log out of your desktop and to log in or do a reboot. Still this is not a guarantee that this command will fix everything..., so change Compiz at your own risk or try to remember the changes (which is not that easy anyway).

Don't try to change settings like the "refresh rate" values in those options, for instance, if you don't know what you're doing, because it can easily "burn" your GNU/Linux Laptop or PC's monitor!.

And if you change Compiz settings related to Unity only via: "apps" -> "compizconfig-1" -> "profiles" -> "unity",

Then use the below command in your Linux Terminal to reset all the values to default ones.
unity --reset
And remember although there can be small risks involved, yet when it comes learning to use GNU/Linux, we all have to do a little bit of testing :D. Good luck.

36 comments:

  1. Since it wasn't mentioned, I believe the "well-known front end" for compiz is CompizConfig Settings Manager. Should one want to install this instead, in the terminal type (or copy+paste):
    sudo apt-get install compizconfig-settings-manager

    And then you can find it in System Settings -> Personal -> CompizConfig Settisn Manager
    -or-
    Alt+F2: ccsm

    ReplyDelete
  2. your reset command just saved me from hours of frustration. thanks!!

    ReplyDelete
  3. @Bill,

    The pleasure is all mine :)

    ReplyDelete
  4. This is excellent thanks guys. So that it gets found by the search engines:
    Ubuntu menu lost
    Ubuntu 11.04 menu restore
    Ubuntu desktop missing
    Fix compiz in a terminal
    and anything else that us poor souls can think of :)

    ReplyDelete
  5. really... I feel like a superstar already :P... (kidding...). Thanks for the appreciation :).

    ReplyDelete
  6. awesome! pretty helpful, thanks

    ReplyDelete
  7. thanks a lot.. :-)

    ReplyDelete
  8. how long does this process run??

    ReplyDelete
  9. @ Anonymous,

    What did you mean? :/...

    ReplyDelete
  10. carefull with CCSM though, it can cause errors where you lose functions, and you have to reset unity, so d3vkit, yes you can on some computers, but not on others without certain drivers

    ReplyDelete
  11. Great writeup, Gayan. Thanks.
    If only I found this earlier.. messed up my compiz settings and have finally given up on ubuntu (natty). Moved back to Debian Squeeze since then :-)

    ReplyDelete
  12. @Anonymous,

    Sorry to hear that ... oh wait!, I actaully feel more safer around Debian than when I'm "with" Unity (ubuntu is not my main distro either)... so___ good for you :)

    ReplyDelete
  13. compiz effects ubuntu 11.04. 3rd hit on Google!

    Pattayi machan :-)

    ReplyDelete
  14. YOU R THE MAN!!!! LOVE YOU BRO, YOU SAVE MY DAY!

    ReplyDelete
  15. @Alex,

    So... Ubuntu was that bad to you ha ;-)...

    ReplyDelete
  16. Hi.. i am expiriencing the same problem by compiz but unfortunately i cant even run terminal too.even i press alt-f2 too.. whats the reason how to restore my window side bars and ubuntu panel ?

    ReplyDelete
  17. @Anonymous,

    Hi and sorry to hear that...

    I assume that you had a working Unity 3D desktop previously. If you did then try pressing

    "Alt" + "Ctrl" + "F2" on your keyboard which should open a new command-line window and log-in to Ubuntu using the command-line (use your user account that has those above mentioned issues).

    Then try issueing the above commands ("unity --reset" or "gconftool-2 --recursive-unset /apps/compiz-1
    unity --reset" or them both for instance) and when done reboot the pc by using the below command.

    sudo reboot

    Now try logging into the Unity 3D. Although I'm not sure if it'll work... but it's worth trying. Good luck.

    ReplyDelete
  18. This was very helpful. Thank you very much.

    ReplyDelete
  19. The problem is that the CCSM will break the window manager. The configuration utility needs to be rewritten to prevent conflicts from being set. Here is a page that briefly explains it.
    http://linux.softpedia.com/get/System/Operating-Systems/Linux-Distributions/AriOS-60520.shtml

    ReplyDelete
  20. thanks a lot
    i tried to use the wobbly window
    and then i messed up

    ReplyDelete
  21. Grr !! WTF Problem LOL !!
    Thanks for the solutions... herre is how it worked for me ...

    1. Hard Reboot
    2. Ctrl + alt + F2 at login..
    3. sudo gconftool-2 --recursive-unset /apps/compiz-1
    4. sudo unity --reset
    5. sudo reboot

    ReplyDelete
  22. @Deep,

    Okay, I took your comment as a compliment :) lol!.

    ReplyDelete
  23. @richesrahul,

    You are welcome! ;-)

    ReplyDelete
  24. thanks...helped me a lot

    ReplyDelete
  25. @ Anonymous,

    Glad it helped you! :D...

    ReplyDelete
  26. None of these commands are working for me. I think I have to reinstall Ubuntu 11.10.

    ReplyDelete
  27. After upgrading to 11.10, Unity worked fine. Using CCSM I even managed to reduce the size of the icons. I also got my wobbling windows working. It went hopelesly wrong when I wanted to get my 3D cube back and the launcher disappeared from the screen. I used the commands described above but I never got to the reboot part because the unity --reset action hangs somewhere in the process:
    unity --reset
    unity-panel-service: no process found
    Checking if settings need to be migrated ...no
    Checking if internal files need to be migrated ...no
    Backend : gconf
    Integration : true
    Profile : default
    Adding plugins
    Skipping upgrade com.canonical.unity.unity.01.upgrade
    Skipping upgrade com.canonical.unity.unity.02.upgrade
    Initializing core options...done
    Initializing bailer options...done
    Initializing detection options...done
    Initializing composite options...done
    Initializing opengl options...done
    Initializing decor options...done
    Initializing mousepoll options...done
    Initializing vpswitch options...done
    Initializing animation options...done
    Initializing snap options...done
    compiz (expo) - Warn: failed to bind image to texture
    Initializing expo options...done
    Initializing move options...done
    Initializing place options...done
    Initializing grid options...done
    Initializing gnomecompat options...done
    Initializing wall options...done
    Initializing ezoom options...done
    Initializing workarounds options...done
    Initializing staticswitcher options...done
    Initializing resize options...done
    Initializing fade options...done
    Initializing scale options...done
    Initializing session options...done

    and then it hangs.
    Suggestions how to continue are very much appreciated!!!

    ReplyDelete
  28. @Herman,

    First of all, sorry about the late response, went to a funeral of a friend (you know the dude got married today :P).

    Anyhow, although I can't give you a certain reason but, I don't think this unity-reset command will work since as you said, it happened after you played with the Cube settings.

    So the best thing to do is to first disable the cube related setting that you made (if you don't remember it at all then you'll have to reset all the manual Compiz settings using the other command it the post) and then use the unity-reset command.

    And if you haven't you should install a proper GPU driver (which you'd probably know of course) and lastly.... although some like CCSM I don't like it at all because it causes these types of messes usually.

    In that case I humbly advice to edit compiz setting in 11.10 using
    this post that I wrote few weeks ago.

    I'm pretty sure this is not the answer that you wanted... but it's the best I can do. Sorry about that.

    ReplyDelete
  29. @Gayan,

    Sorry to hear from your friend! Though I do have sympathy for him, being married myself for 38 years.

    I followed your advice, but did not know what the safe settings are. So what I did was to take a 2nd laptop (with active unity), run gconf-editor on both of them and compare the options settings site by site.
    Bingo!! Success at the first screen.
    The options under "general" had several missing keys, the most important one beiing "active_plugins". I have manually re-entered the entire list, and when I entered "unityshell", the screen went blank and came back a few seconds later WITH the unity launcher!

    Thanks man, my marriage is safe again. This was my wife's laptop........:-)
    This was a very helpfull post.

    ReplyDelete
  30. @Herman,

    The pleasure is all mine dude ;-).

    ReplyDelete
  31. You are the best man in a fourum that I have ever met thank u man

    ReplyDelete
  32. @Anonymous,

    Oh why thank you :D!.

    ReplyDelete