Monday, February 11, 2008

Compiz with Nvidia

For all those who are using compiz with nvidia and unable to start it using the Compiz Fusion icon and are getting the error 'No GLXFBConfig for default depth', here's what to do.

This is presently for compiz-0.7.0-5.1, fusion-icon-0.0.1_080201-2.1 and nvidia driver version 169.09. Use the latest nvidia driver if you are not using it. I presume you must have installed compiz, compiz fusion and the compiz fusion icon from the openSUSE repository. If you haven't already, then go here to find out how to install it.

Compiz with nvidia needs to first have the option 'composite' enabled in xorg.conf file. If you haven't done this, add this to your /etc/X11/xorg.conf file.
Section "Extensions"
Option "Composite" "Enable"
EndSection

Next compiz with nvidia also needs to be started with '--no-libgl-fallback' option. This is presently not taken care of in compiz fusion icon. Hence open up
/usr/lib/python2.5/site-packages/FusionIcon/data.py

with root permissions. Use 'sudo' or 'su', whichever you like and any text editor you prefer.

Find the line
compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', 'ccp']

Replace it with
compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', 'ccp', '--no-libgl-fallback']

Save the file.

Restart X to be safe and fire up compiz fusion icon and select compiz as the window manager. Compiz should start now. Hope this helps! Bye.

No comments: