AIGLX

From openSUSE

(Redirected from AIGLX & NVIDIA)
Geeko Accelerated Indirect GLX ("AIGLX") is an open source project founded by Red Hat and the Fedora Linux community to allow accelerated indirect GLX rendering capabilities to X.Org and DRI drivers. This allows remote X clients to get fully hardware accelerated rendering over the GLX protocol; coincidentally, this development was required for OpenGL compositing window managers (such as Compiz or Beryl) to function with hardware acceleration.


Contents

Extra Information on AIGLX & NVIDIA  !


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.

Above is the merged content from AIGLX & NVIDIA


openSUSE 11.0 and newer

AIGLX is enabled by default, so nothing needs to be done to enable it. Just install the necessary drivers in case you have an ATI or NVIDIA card. For other graphics cards, just make sure that you have 3D Acceleration enabled in YaST -> Hardware -> Monitor.

openSUSE 10.3

Install the Necessary Graphics Card Drivers

  • If you have an NVIDIA card, see NVIDIA
  • If you have an ATI card, see ATI
  • For modern Intel cards, just make sure that you have 3D Acceleration enabled in YaST -> Hardware -> Monitor.

Ensure that Xgl is disabled

You cannot properly run AIGLX and Xgl at the same time, so to ensure that you do not have it enabled, please:

gnome-xgl-switch --disable-xgl

Enabling Render Acceleration and Composite

For NVIDIA cards

Execute the following commands (as root):

nvidia-xconfig --composite

nvidia-xconfig --render-accel

nvidia-xconfig --add-argb-glx-visuals -d 24


Enabling AIGLX

Edit /etc/X11/xorg.conf and add, to the ServerLayout section, the following line:

Option   "aiglx"    "true"  

Also add the following line to the Module section:

Load     "glx"
Load     "dri"
Load     "dbe"

Also add the following line to the Device section:

Option   "XAANoOfscreenPixmaps"    "true"  

Also add the following line to the Extensions section:

Option   "Composite"  "Enable"

Now save the file.

Restart X

Now restart X (the display server), by simply logging out, then logging back in.

See Also

Passed QA check: Fsundermeyer 11:45, 12 June 2009 (UTC)