6 30th, 07
需安装驱动+XGL+compiz fusio
一,安装ATI显卡驱动
1.下载安装所需组件
sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r)
sudo apt-get install xorg-driver-fglrx fglrx-control
sudo depmod -a
sudo apt-get install linux-restricted-modules-$(uname -r)
sudo apt-get install xorg-driver-fglrx fglrx-control
sudo depmod -a
2.修改配置文件
sudo gedit /etc/X11/xorg.conf
使用替换功能 将
"ati"
(或者 “radeon”,”vesa”详见Device段)修改成
"fglrx"
在Device段添加两行:
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "OpenGLOverlay" "off"
在最后添加两端
ection "Extensions"
Option "Composite" "0"
EndSection
Section "ServerFlags"
Option "AIGLX" "off"
EndSection
Option "Composite" "0"
EndSection
Section "ServerFlags"
Option "AIGLX" "off"
EndSection
重启后检查
fglrxinfo
二,安装XGL
1,下载安装相关组件
sudo apt-get install xserver-xgl
2,配置XGL
gksudo gedit /usr/local/bin/startxgl.sh
输入如下内容
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session
sudo chmod a+x /usr/local/bin/startxgl.sh
gksudo gedit /usr/share/xsessions/xgl.desktop
输入如下内容
Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application
三,安装 compiz fusio
1、得到密匙
sudo wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -
2、添加源:
deb http://download.tuxfamily.org/3v1deb feisty eyecandy
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy
3、更新:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get dist-upgrade
4、安装Compiz及Compiz fusion
sudo apt-get install compiz compiz-gnome
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-fusion-*
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-fusion-*
四,使用
一定记得重启后选择会话成XGL
ALT+F2
compiz --replace
本文地址 : http://www.hebine.com/blog/archives/217.html
如果你对本文感兴趣,欢迎订阅我的博客
2007年07月29日 7:35 下午
在配置 XGL 的时候切勿 Ctrl+C, Ctrl+V 以上代码, 一些符号有问题…
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie=”$(xauth -i nextract - :0 | cut -d ‘ ‘ -f 9)”
xauth -i add :1 . “$cookie”
exec dbus-launch –exit-with-session gnome-session
[Reply to this Comment]
2007年07月29日 7:37 下午
… 以上测试, 应该是 Blog 转换了字符, 部分代码可以参
http://space.foodmate.net/html/36/27436_itemid_9916.html
[Reply to this Comment]
2007年07月29日 9:19 下午
谢谢你的提出~
[Reply to this Comment]
2007年07月29日 9:21 下午
[...] 但 “何必呢” 的这篇文章基本就可以将问题解决了. ubuntu7.04下A卡用户安装compiz fusion 但有些地方要注意, 文章中一些标点有问题, 部分代码可以参考 [...]
2007年08月31日 8:23 上午
你好,我用了你提供的这个方法来安装ATI+CF。但是最后在进入XGL后发生了花屏现象,请问是什么原因呢?我是严格按照你的说的步骤进行安装的。
我的A卡是ATI x1550 显示器是宽屏22
[Reply to this Comment]
2007年08月31日 5:06 下午
有没有记录日志呢?~
[Reply to this Comment]
2007年09月01日 9:06 下午
好像是有,是不是由于我装的是闭源的驱动,所以不支持CF呢?我已经加你的gtalk了,有时间的话,请教一下!
[Reply to this Comment]