存档

文章标签 ‘Driver’

在 Ubuntu 7.10 上安装 ATI Driver 8.03 和 compiz 0.6.99 (update 2008/3/6)

2007年11月22日

(更新于 08-3-6)
下载:ATI Driver 8.03,并假设放到 “/home/我的用户名/” 下

我的硬件环境:

  • CPU:AMD DualCore Athlon 64 X2, 2000 MHz (10 x 200) 3800+
  • 主板:Biostar(映泰) TForce 570 U
  • 显卡:ATI Radeon X1600 Pro (RV530)
  • 硬盘:西数 WD1600JB-00REA0
  • 网卡:主板自带
  • 声卡:主板自带

删除旧有驱动
如果您的是新装的系统,可以忽略该步,否则输入

sudo lrm-manager
sudo apt-get autoremove –purge fglrx*

安装必须的编译环境

sudo apt-get update
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r)

屏蔽fglrx核心模块

sudo gedit /etc/default/linux-restricted-modules-common

将里面的

DISABLED_MODULES=”"

改为

DISABLED_MODULES=”fglrx”

创建deb包并安装

bash *.run –buildpkg Ubuntu/gutsy
sudo dpkg -i *.deb
sudo apt-get -f install

配置驱动

sudo aticonfig –initial -f
sudo aticonfig –ovt=Xv

编辑 xorg.conf

sudo gedit /etc/X11/xorg.conf

在文件尾端添加

Section “Module”
load “dri”
load “dbe”
load “glx”
EndSection

Section “DRI”
Mode 0666
EndSection

Section “Extensions”
Option “RENDER” “true”
Option “DAMAGE” “true”
Option “Composite” “true”
Option “XVideo” “true”
EndSection

Section “ServerFlags”
Option “AIGLX” “Enable”
EndSection

找到 Section “Device” 并添加

Option “XAANoOffscreenPixmaps” “on”
Option “TexturedVideo” “on”
Option “Textured2D” “on”
Option “TexturedXrender” “on”
Option “BackingStore” “on”

ok,可以重启系统了,确认一下自己的驱动是否安装成功

fglrxinfo
glxinfo | grep render

如果出现以下的结果说明安装成功

suxixb@su:~$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1600 Series
OpenGL version string: 2.1.7412 Release

suxixb@su:~$

suxixb@su:~$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Radeon X1600 Series
suxixb@su:~$

以下是我的测试成绩

suxixb@su:~$ glxgears
34023 frames in 5.0 seconds = 6804.570 FPS
36599 frames in 5.0 seconds = 7319.708 FPS
36467 frames in 5.0 seconds = 7293.291 FPS
36344 frames in 5.0 seconds = 7268.694 FPS
36448 frames in 5.0 seconds = 7289.572 FPS
36506 frames in 5.0 seconds = 7301.147 FPS

suxixb@su:~$

安装 compiz fusion
到此,我们已经安装好 ATI 驱动并能正常使用了,是时候开始安装 compiz fusion,首先添加下列的源

deb http://kwatrow.nl/repo Gutsy compiz-fusion-git
wget http://kwatrow.nl/repo/Quattro.gpg -O- | sudo apt-key add -

执行一次更新

sudo apt-get update
sudo apt-get upgrade

首先把系统自带的 compiz 删除干净,去新立得里搜索 compiz ,把已经安装了的包全部彻底删除,或者用下面的命令

sudo apt-get autoremove –purge compiz compiz-*

安装新的 compiz

sudo apt-get install compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-unsupported

等待安装完成以后,到 “系统” ─ “首选项” ─ “外观” ─ “视觉效果” ,选择一个您喜欢的特效,怎样,效果还可以吧。当然,我们还需要更多的设置选项,继续下面的安装。

sudo apt-get install compizconfig-settings-manager emerald emerald-themes

让 compiz 使用 emerald 的主题

sudo gedit /usr/bin/compiz

找到下面的内容

# Defines the decorator and arguments.
# Set it to empty to make the script use the best decorator for your environment
DECORATOR=”"
DECORATORARGS=”"

改为下面的内容

# Defines the decorator and arguments.
# Set it to empty to make the script use the best decorator for your environment
DECORATOR=”emerald”
DECORATORARGS=”–replace”

ok,登出并重新登录 X ,世界变得更美妙了。

screenshot-desktop01-2008-03-04.png

screenshot-desktop02-2008-03-04.png

参考资料

  1. AIGLX
  2. 提升ati8.2驱动在compiz下的性能 by zhuqin_83
  3. ati官方驱动(非开源)的安装配置 by zhuqin_83
  4. gutsy下安装最新的 compiz 0.6.99(源) by zhuqin_83

Configure, Software , , ,