作者:黑洞
起因:
自从有了AIGLX及XGL后,很想试试。不想试完启动不了X了。
注意:适用于2.6内核
1、从nvidia下载驱动并安装
1.1 如果你的是GeForce MX 100/200请下载
NVIDIA-Linux-x86-1.0-9631-pkg1.run
1.2安装驱动
#chmod 755 NVIDIA-Linux-x86-1.0-9631-pkg1.run
#./NVIDIA-Linux-x86-1.0-9631-pkg1.run
1.2.如果安装时说你的gcc版本不对,你要先装上对应版本的gcc后,设定环境变量
CC
举例:export CC=/usr/bin/gcc-4.1
2、修改/etc/init.d/nvidia-glx
2.1 原因:Debain将nvidia-glx固定在877上,我们要取消这个绑定
2.2 最重要的事:备份
#cp /etc/init.d/nvidia-glx /etc/init.d/nvidia-glx.0
2.3 修改文件
#nano /etc/init.d/nvidia-glx
找到这一句
echo -n "Creating NVIDIA TLS links..."
注销掉以下的行
# remove the symlinks
#rm -f /usr/lib/tls/libGL.so
#rm -f /usr/lib/tls/libGL.so.*
#rm -f /usr/lib/tls/libnvidia-tls.so
#rm -f /usr/lib/tls/libnvidia-tls.so.*
#rm -f /usr/lib/tls/libGL.la
#remove old ones
#rm -f /usr/lib/tls/libGLcore.so.1
#rm -f /usr/lib/tls/libGLcore.so.*
# create the symlinks
#ln -s /usr/lib/nvidia/libnvidia-tls.so.1.0.8776 /usr/lib/tls/libnvidia-tls.so.1.0.8776
# reconfigure dynamic linker run-time bindings
3、完成
AIGLX+compiz
/etc/X11/xorg.conf:
# Dedicated "Extensions" section (may not be present already)
Section "Extensions"
Option "Composite" "enable"
EndSection
# Section "Device" of you graphic card
Section "Device"
# Already contains
# ...
# Identifier "..."
# Driver "..."
# ...
# Add this option :
Option "XAANoOffscreenPixmaps" "true"
EndSection
Nvidia user may also need:
Section "Device"
Option "AllowGLXWithComposite" "true"
EndSection
Section "Screen"
Option "AddARGBGLXVisuals" "True"
EndSection
Section "Module"
#Load "dri"
#Load "GLcore"
EndSection
Restart your X.org server and login into GNOME. Open a terminal and issue the following command:
compiz --replace --fast-filter
附:以下GPU将不在由统一的Unix 驱动来支持 而由 legacy Driver来更新
NVIDIA chip name Device PCI ID
RIVA TNT 0x0020
RIVA TNT2/TNT2 Pro 0x0028
RIVA TNT2 Ultra 0x0029
Vanta/Vanta LT 0x002C
RIVA TNT2 Model 64/Model 64 Pro 0x002D
Aladdin TNT2 0x00A0
GeForce 256 0x0100
GeForce DDR 0x0101
Quadro 0x0103
GeForce2 GTS/GeForce2 Pro 0x0150
GeForce2 Ti 0x0151
GeForce2 Ultra 0x0152
Quadro2 Pro 0x0153
beryl
http://wiki.beryl-project.org/wiki/Install_Beryl_on_Debian
附:如果你发现不能用GLX的功能(一进就重启X server)
可能是原有的libglx.so与新的不一样(如用到96.43.01驱动)
你需要进入到
#cd /usr/lib/xorg/modules/extensions
将原有的libglx.so改名,保存
#cp libglx.so libglx.so_0
再将 libglx.so.96.43.01 复制成libglx.so
#su
#cp libglx.so.96.43.01 libglx.so
完成后,重启X server再试一下。