|
|

楼主 |
发表于 2008-1-8 23:17:35
|
显示全部楼层
compiz.org 官方文档:nvidia
Modifying your xorg.conf file
Now you have to add a few lines you your xorg.conf file. This is necessary for Compiz to run properly. Failure to do this will result in no eye candy for you. There are two ways of doing this:
The easy way is to enter the following commands into a terminal:
sudo nvidia-xconfig --composite --render-accel --add-argb-glx-visuals
Now press Ctrl+Alt+Backspace to restart your X-server or reboot.
Note: These commands might not make the correct changes to your Xorg.conf file. So to make sure it has open the Xorg.conf file as detailed below and check for the correct settings. If it has not changed the file as described below do so. but do not take away any thing already in there, unless it says to below.
The hard way is editing your xorg.conf file manually, but it isn't that hard. First type this into a terminal:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-backup
sudo gedit /etc/X11/xorg.conf
Find this section:
Section "Module"
Load "i2c"
Load "bitmap"
...
Load "type1"
Load "vbe"
EndSection
Comment out dri and GLcore (if present), like this:
# Load "dri"
# Load "GLcore"
Make sure the glx module is loaded, like this:
Load "glx"
Make sure the X11 extmod will load:
Load "extmod"
Find this section (your values may vary) :
Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV40 [GeForce 6800]"
Monitor "SyncMaster"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1440x900"
EndSubSection
EndSection
Make sure DefaultDepth is set to 24, if it isn't already, then add the following lines below "EndSubSection" or above the 1000 first "SubSection" 1000
Option "AddARGBGLXVisuals" "true"
Option "DisableGLXRootClipping" "true"
Add this to the very end:
Section "Extensions"
Option "Composite" "Enable"
EndSection
Save the file and exit the text editor. Now restart the X-server by pressing Ctrl+Alt+Backspace or reboot. After this you're ready to install Compiz! |
|