• Immutable Page
  • Info
  • Attachments

Setting up the X Server to run Xgl with Intel Graphics Media Accelerator Hardware

<!> Note : If you haven't already, check out the Distributions guide, as your distribution's walk-through may already contain instructions on how to set up Xgl or your distribution.

Installing Xgl

Unlike AiGLX, Xgl requires some extra packages before you can start using it because it is not included with the standard XServer. In your package manager, these packages are most likely to be named:

  • xgl

  • xserver-xgl

  • xorg-xgl

Make sure that you install them first.

Running Xgl for the first time

It is possible to create a 'session start-up script', that starts a normal X server for log-in, and then creates an Xgl and a non-Xgl session for you to log into in case Xgl does not work. This can be achieved by using one of the following scripts and GDM/KDM entry.

Creating a Start-up Script

First invoke a text editor with root permissions and create a file called startxgl.sh in /usr/local/bin. Copy and paste these lines into it:


     #!/bin/sh (-)
      Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
      dbus-launch --exit-with-session gnome-session
  • KDE

     #!/bin/sh (-)
       Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
       exec startkde

Now, make that script executable with

sudo chmod +x /usr/local/bin/startxgl.sh 

Adding Xgl to your list of sessions)

Now you need to add a custom session to GDM so that you can launch Xgl when you log in. To do this, create a new file called 'Xgl.desktop' in /usr/share/xsessions/ with root permissions and copy and paste the following:

[Desktop Entry]
Comment=Start an Xgl Session

Setup is done!

You should now be able to launch an Xgl server. If it doesn't launch for some reason or causes problems, try using AIGLX.

Launching Compiz Fusion

Launching Compiz is slightly easier with Xgl.

INTEL_BATCH=1 compiz --replace ccp&

Sources used : https://help.ubuntu.com/community/CompositeManager/Xgl#head-3061c16ffd1230560d9fd97fe97d0a1ce9e89988

Intel with Xgl (last edited 2008-05-14 20:49:30 by host-87-75-17-195)