AIGLX & NVIDIA

From openSUSE


AIGLX & NVIDIA

Image:Merge-arrows.gif This article or section should be merged with AIGLX .

You are welcome to edit this article, but please follow discussion about the way to complete the merge as soon as possible.

To get Compiz Fusion working on openSUSE 10.3 using AIGLX and an NVIDIA based video adapter (assuming you have properly installed/configured the nvidia drivers), please follow these steps:


Step 1

NVIDIA users should NOT use XGL so please open a root console and run the following command (even if you use KDE):

su -c 'gnome-xgl-switch --disable-xgl'

Keep the root console open until all steps are completed.


Step 2

Open YaST Software -> Community Repositories and enable the X11/XGL repository. This should be second from the bottom of the list. Close YaST when finished.


Step 3

Notice: The package compiz-manager (shown in the commands below) will cause Compiz Fusion to automatically load with KDE or Gnome. If you do not want Compiz Fusion to load automatically with KDE/Gnome, remove compiz-manager (no quotes) from the commands (below).

Open a console and run the following command:

KDE Users:

su -c 'zypper in compiz-fusion-kde compiz-emerald compiz-emerald-themes compiz-manager'

Gnome Users:

su -c 'zypper in compiz-fusion-gnome compiz-emerald compiz-emerald-themes compiz-manager'

After installation, if you decide that you want to prevent Compiz Fusion from automatically starting, please run this command:

su -c 'rm /opt/kde3/share/autostart/Compiz.desktop'

Step 4

In the same root console, run the following command:

nvidia-xconfig --composite --render-accel --add-argb-glx-visuals

Step 5

In the same root console, edit your xorg.conf:

kate /etc/X11/xorg.conf

or

kwrite /etc/X11/xorg.conf

Add this line INSIDE the "ServerLayout" section:

Option "aiglx" "true"

Sample xorg.conf section:

Section "ServerLayout"
   #blah, blah blah
   Option "aiglx" "true"
EndSection

Close the root console.


Step 6

Restart X by logging out and back in. Once X is started you can switch to Compiz Fusion by opening a terminal (or ALT+F2 for KDE users) and running the following command:

compiz-manager &

Notes

If you use SaX2 after doing this, it will undo steps 3 and 4 and you will need to repeat them.

Also, if you installed the NVIDIA drivers manually and then later apply an updated kernel during an openSUSE Update, you will need to recompile the NVIDIA kernel module manually.

Example:

su
sh NVIDIA-Linux-x86_64-100.14.23-pkg2.run -K

These topics are out of scope for this HOWTO, so if you get Compiz Fusion working and then it stops working after a reboot, this is likely what happened.