个人工具

UbuntuHelp:CompositeManager/AIGLXOnDapper

来自Ubuntu中文

跳转至: 导航, 搜索

Introduction

This page explains how to install the AIGLX X Server, a modified version of Xorg that supports indirect 3d rendering, on your Ubuntu Dapper system. For more information, including a list of supported hardware, please see the CompositeManager/AIGLX page.

Installation Instructions

Please note that this guide assumes that you have some understanding of how to use the linux command line. If you do not, please read through the excellent tutorials on http://linuxcommand.org/ before continuing with this guide. WARNING: This guide explains how to install HIGHLY EXPERIMENTAL, UNSUPPORTED software. The Ubuntu community is NOT responsible for anything that may go wrong. If you do not feel confident knowing this, please wait for a future release of Ubuntu that has official support for all this built-in to the release. Getting Ready The first thing we should do is make a backup of every file we are going to touch in this walkthrough, just in case something goes wrong. If X does not restart for whatever reason after this walkthrough your should restore your backups. The files you need to make backups of are: /etc/X11/xorg.conf /etc/gdm/gdm.conf-custom (if present) /etc/kde3/kdm/kdmrc (if present) /etc/apt/sources.list 1) Add additional repositories Add the following to the bottom of /etc/apt/sources.list:

deb http://www.beerorkid.com/compiz dapper main aiglx
deb http://ubuntu.compiz.net/ dapper main aiglx

NOTE: You have to be root to edit this file, for example:

gksudo gedit /etc/apt/sources.list

You should add the GPG keys for these repositories so you don't get nasty errors:

wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
wget http://ubuntu.compiz.net/quinn.key.asc -O - | sudo apt-key add -

Re-load the apt database. If you haven't figured this out already, you need to run this command any time you modify sources.list.

sudo apt-get update

2) Install new Software First off, make sure you have all the latest software:

sudo apt-get dist-upgrade

Now we need to install some new packages:

sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r` xserver-xorg-air-core

...register the new kernel modules:

sudo /sbin/ldm-manager
sudo depmod -a

(!) Note that depmod -a should not be needed, but some users have reported it has fixed issues, and it cant hurt to run. ...and finally, link all the xorg modules into the directory where AIGLX expects them to be: (!) Please check to make sure these directories do not already exist

sudo ln -s /usr/lib/xorg/modules/drivers /usr/lib/xorg-air/modules/drivers
sudo ln -s /usr/lib/xorg/modules/input /usr/lib/xorg-air/modules/input

3) Configure the X server Open up /etc/X11/xorg.conf in a text editor. Under Section "Module", make sure that the following lines are included:

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

Next, find the Section "Device" for your graphics card, and add the following:

Option	"XAANoOffscreenPixmaps"

Next, find the Section "ServerLayout" for your graphics card, and add the following:

Option         "AIGLX" "true"

And finally, add the following to the bottom of the file, unless it already exists elsewhere:

Section "DRI"
	Mode 0666
EndSection
	
Section "Extensions"
	Option "Composite" "Enable"
EndSection

4a) Configure GDM (Ubuntu users) As root, edit the file /etc/gdm/gdm.conf-custom and add the following to the end, one line of overlap is provided for reference:

[servers]
0=aiglx

[server-aiglx]
name=aiglx server
command=/usr/bin/Xorg-air :0
flexible=true

This will cause GDM to use AIGLX instead of the standard Xorg. 4b) Configure KDM (Kubuntu Users) As root, edit the file /etc/kde3/kdm/kdmrc and edit the following line:

ServerCmd=/usr/bin/X -br

Make it read:

ServerCmd=/usr/bin/Xorg-air :0

This will cause KDM to use AIGLX instead of the standard Xorg. 5) Restart your X server To restart GDM to load the new X server, note that this will terminate all running applications:

sudo /etc/init.d/gdm restart

Or: To restart KDM to load the new X server, note that this will terminate all running applications:

sudo /etc/init.d/kdm restart

Log back in, and you should be using the new X server. If something went wrong, or you ever want to undo this, simply restore your backup gdm.conf-custom or kdmrc file you created earlier to its original name. 6) Next Steps Note that without a composing manager, you won't see any snazzy effects. For the next step, continue on to CompositeManager/InstallingCompiz.