- 论坛徽章:
- 0
|
主要参考
http://wiki.cchtml.com/index.php/
fglrx驱动(即官方闭源驱动)现已支持aiglx,但并不理想,请耐心等待下一个版本。想
尝试beryl/compiz(即桌面效果)的可用本8.1驱动(支持9500至HD2900),但有迟钝感;或之前的版本,如8.40+xgl;或者用
开源驱动(非ati官方,但支持更老的显卡)ati/radeon+aiglx(无需安装),后者有些特性可能不支持或速度慢,但资源占用相对较少。另外
开源驱动对x1k以上系列显卡支持不好(以后会有所改善)。
另外,某些显卡可能会遇到重启以后无法进入x,或者在安装完系统后黑屏,请参考一下这里:
http://forum.ubuntu.org.cn/viewtopic.php?t=40830
也可以自己搜索论坛。
方法0:这个是安装自带官方驱动,版本是8.34.8(feisty)/8.37.6(gutsy),不支持aiglx。
最简单的是找到系统-系统管理-受限驱动管理器,输入密码,把ATI图形加速驱动钩上,然后系统会要求下载和安装必要的软件,安装完毕后请重启电脑。此时查看受限驱动管理器应该是“已启用”。如果不行,那么请继续往下看。
方法一:安装自带驱动,feisty的8.34.8/gutsy的8.37.6驱动,仅支持9500至x1900显卡,不支持aiglx。
如果你曾经用过方法二,需要先执行
代码:
sudo lrm-manager
并把原来装过的4个包彻底删除。
代码:
sudo apt-get autoremove --purge fglrx*
安装驱动
代码:
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 dpkg-reconfigure xserver-xorg
在选择驱动时,选择fglrx,其他一般保持默认即可。
或者用
代码:
sudo aticonfig --initial -f
以上方法只能两者择一。
然后
代码:
sudo aticonfig --ovt=Xv
如果执行出错,则把备份的xorg.conf.xx改名,用mv命令。
其实本语句相当于在/etc/X11/xorg.conf的Device段添加两行:
代码:
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
并且
代码:
sudo gedit /etc/X11/xorg.conf
添加两段
代码:
Section "Extensions"
Option "Composite" "0"
EndSection
Section "ServerFlags"
Option "AIGLX" "off"
EndSection
注意,上面这两段非常重要!
重启系统
确认是否正常运行(类似,版本号可以不同)
代码:
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9600 Generic
OpenGL version string: 2.0.6011 (8.28.8)
*方法二:自己编译驱动8.40.4,只支持9500至X1900显卡,老显卡不支持。如要开compiz,需另装xserver-xgl。
注意,每次内核升级后都必须重新编译。不支持aiglx。
安装编译所必须的工具
代码:
sudo apt-get update
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-$(uname -r)
创建deb包
注意:执行下面的命令的前提是,你必须cd到你下载的驱动的当前目录。不知道什么是cd命令的话,把下面的xxx.run的部分删掉,然后把你的驱动直接拖到终端,其余部分不变。终端在主菜单的附件子菜单。
Feisty:
代码:
bash *.run --buildpkg Ubuntu/feisty
gutsy:
代码:
bash *.run --buildpkg Ubuntu/gutsy
屏蔽fglrx核心模块
注意,如果你已经安装了linux-restricted-modules的话,那么此步必做。否则可以跳过(一般都要做)。
代码:
sudo gedit /etc/default/linux-restricted-modules-common
将
代码:
DISABLED_MODULES=""
改成
代码:
DISABLED_MODULES="fglrx"
安装deb包
代码:
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source*.deb fglrx-amdcccle*.deb
移除旧的fglrx
如果你是第一次做,那么会提示你这个文件找不到。别管他,继续往下做就是。
代码:
sudo rm /usr/src/fglrx-kernel*.deb
sudo apt-get -f install
编译内核模块并安装
代码:
sudo module-assistant prepare
sudo module-assistant update
sudo module-assistant build fglrx
cd /usr/src
sudo dpkg -i fglrx-kernel-*.deb
sudo depmod -a
配置驱动
注意,如果以前装过fglrx驱动,此步无须再做。
代码:
sudo dpkg-reconfigure xserver-xorg
在选择驱动时,选择fglrx。
或者用
代码:
sudo aticonfig --initial -f
以上方法只能两者择一。
然后
代码:
sudo aticonfig --ovt=Xv
如果执行出错,则把备份的xorg.conf.xx改名,用mv命令。
其实本语句相当于在/etc/X11/xorg.conf的Device段添加两行:
代码:
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
并且
代码:
sudo gedit /etc/X11/xorg.conf
添加两段
代码:
Section "Extensions"
Option "Composite" "0"
EndSection
Section "ServerFlags"
Option "AIGLX" "off"
EndSection
上面这两段很重要!(在7.04中,如果你用了sudo dpkg-reconfigure来配置的话,第一段应该已经有了)。
重启系统
确认驱动是否正确安装(可以类似于)
代码:
$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI MOBILITY RADEON X600 SE
OpenGL version string: 1.4 (2.1.7059 Release)
代码:
$ glxinfo | grep render
direct rendering: Yes #如果开启了xgl,那么这里一定是No,还有其他一些信息。
*方法三:自己编译最新驱动8.1,支持9500及以上显卡,老显卡不支持,支持aiglx。
注意:
1。仅该版本才支持到HD2900,并支持aiglx。
2。如果要尝试aiglx+compiz,请参考:
http://forum.ubuntu.org.cn/viewtopic.php?t=83802
的最后一步。或者,按照3D区置顶的方法安装最新的compiz。
3。用xgl和aiglx差不多,也有迟钝感。
4。如果不需要compiz/beryl,则强烈推荐安装该驱动,会有非常大的性能改善,以及大量bug修正。
每次内核升级后不必再重新编译。
下载地址
发行注记
引用:
New Features
This release of the ATI Catalyst™ Linux driver introduces support for the following new features:
New Supported Operating Systems
This release of the ATI Catalyst Linux software suite introduces support for the following new operating systems
* RedHat Enteprise Linux 5.1
* RedHat Enteprise Linux 4.6
* Ubuntu 7.10 (Gutsy Gibbon)
Resolved Issues
The following section provide a brief description of resolved
issues with the latest version of the ATI Catalyst™ Linux software
suite. These include:
* Corruption will no longer be noticed in the lower right corner
of the display or on the mouse pointer after the system is running for
a long period of time
* Connecting a display device that supports 1680x1050 to a system
running Linux will no longer result in a maximum display resolution of
1280x1024 only being available
* Custom mode lines in xorg.conf will no longer be ignored by the fglrx driver
* Suspending to RAM or DISK on kernel version 2.6.23 or later no longer fails
Known Issues
The following section provides a brief description of known issues
associated with the latest version of ATI Catalyst™ Linux software
suite. These issues include:
* On workstation hardware 3D applications will be corrupted if the
screen width is not an integer multiple of 64 pixels, for example with
a 1680x1050 wide screen display. Further details can be found in topic
number 737-31720
* There is no support for video playback on the second head in
dual head mode. Further details can be found in topic number 737-26985
* Desktop corruption may be noticed when dragging the
overlay/video when using dual-display mode. Further details can be
found in topic number 737-29578
* A black screen may be observed on some hardware when switching
to the console or leaving the X window system when a Vesa framebuffer
console driver is used. Further details can be found in topic number
737-30687
* Display flicker may be noticed when the gnome screen-saver starts
* Diagonal tearing may be noticed when playing a video file using a video player that utilizes the XVideo extension
* Video playback may look blocky when playing a video file using a video player that utilizes the XVideo extension
* Video Playback may display wrong colors and additional shadow
images when cropping or expanding a video file using a video player
that utilizes the XVideo extension
* Building RPM packages for Mandriva may fail
安装自动编译所必须的工具
代码:
sudo apt-get update
sudo apt-get install build-essential fakeroot dh-make debhelper debconf libstdc++5 dkms
创建deb包
注意:执行下面的命令的前提是,你必须cd到你下载的驱动的当前目录。不知道什么是cd命令的话,把下面的xxx.run的部分删掉,然后把你的驱动直接拖到终端,其余部分不变。终端在主菜单的附件子菜单。
gutsy:
代码:
bash *.run --buildpkg Ubuntu/gutsy
屏蔽fglrx核心模块
注意,如果你已经安装了linux-restricted-modules的话,那么此步必做。否则可以跳过(一般都要做)。
代码:
sudo nano /etc/default/linux-restricted-modules-common
将
代码:
DISABLED_MODULES=""
改成
代码:
DISABLED_MODULES="fglrx"
如果/etc/modprobe.d/blacklist-restricted文件存在,那么需要
代码:
sudo nano /etc/modprobe.d/blacklist-restricted
并把blacklist fglrx用#注释掉。
安装deb包
代码:
sudo dpkg -i xorg-driver-fglrx_*.deb fglrx-kernel-source*.deb fglrx-amdcccle*.deb
移除旧的fglrx
如果你是第一次做,那么会提示你这个文件找不到。别管他,继续往下做就是。
代码:
sudo rm /usr/src/fglrx-kernel*.deb
sudo apt-get -f install
配置驱动
注意,如果以前装过fglrx驱动,此步无须再做。
代码:
sudo dpkg-reconfigure xserver-xorg
在选择驱动时,选择fglrx。
或者用
代码:
sudo aticonfig --initial -f
以上方法只能两者择一。
然后
代码:
sudo aticonfig --ovt=Xv
如果执行出错,则把备份的xorg.conf.xx改名,用mv命令。
其实本语句相当于在/etc/X11/xorg.conf的Device段添加两行:
代码:
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
并且
代码:
sudo gedit /etc/X11/xorg.conf
添加两段
代码:
Section "Extensions"
Option "Composite" "0"
EndSection
Section "ServerFlags"
Option "AIGLX" "off"
EndSection
上面这两段很重要!如果想开启aiglx,则这两段应该是:
代码:
Section "Extensions"
Option "Composite" "1"
EndSection
Section "ServerFlags"
Option "AIGLX" "on"
EndSection
重启系统
确认驱动是否正确安装(可以类似于)
代码:
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI MOBILITY RADEON X600 SE
OpenGL version string: 2.1.7170 Release
代码:
$ glxinfo | grep render
direct rendering: Yes #如果开启了xgl,那么这里一定是No,还有其他一些信息。
------------------------------------------------------------------------------------------------------------------------------
常见错误:
0。如果你的宽屏显示器无法正确设置分辨率(大于1280x1024),则需手动修改xorg.conf文件,如
代码:
Section "Monitor"
Option "DPMS"
Identifier "samsung-monitor"
VendorName "Samsung"
ModelName "SyncMaster 205BW"
HorizSync 31.4 - 80.0
VertRefresh 56.000 - 75.000
Modeline "1680x1050" 146.25 1680 1784 1960 2240 1050 1053 1059 1089
EndSection
Section "Screen"
Identifier "samsung-screen"
Device "samsung-device"
Monitor "samsung-monitor"
Defaultdepth 24
SubSection "Display"
Depth 24
Modes "1680x1050"
EndSubSection
EndSection
1。如果你碰到2D加速很慢的情况,在/etc/X11/xorg.conf 的 Device section(就是有fglrx的那段)中添上
代码:
Option "XaaNoOffscreenPixmaps"
2。如果没有3D加速,可尝试
代码:
sudo mkdir /lib/modules/$(uname -r)/volatile
sudo ln -sf /lib/modules/$(uname -r)/misc/fglrx.ko /lib/modules/$(uname -r)/volatile/fglrx.ko
3。另外,如果你想用图形化的工具配置显卡的话,比如双头显示,则可以
代码:
gksu fireglcontrol
如果是用方法二的用
代码:
gksu amdcccle
当然,图形界面的功能比较有限,最强大的还是aticonfig。最新版的控制中心有些新东西,大家可以试试。
4。如果说/usr/X11R6/lib/modules/dri/fglrx_dri.so缺失,则执行
代码:
sudo ln -s /usr/lib/ /usr/X11R6/lib/modules
5。如果执行fglrxinfo出现 libGL.so.1: cannot open shared object file,则
代码:
sudo ln /usr/lib/libGL.so.1.2 /usr/lib/libGL.so.1
sudo chmod o+r /usr/lib/libGL.so.1.2
6。gutsy无法休眠。安装7.12版本驱动,已经修正。
7。如果还有其他问题,比如nforce3的芯片(主要是asus的K8N),说你仍然运行于mesa,无3d加速,可以看这里:
http://wiki.cchtml.com/index.php/Troubleshooting
和
http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide
_________________
常见问题指南
ATI驱动安装配置
Linux Arch 2.6.24-ARCH #1 SMP PREEMPT Sun Feb 10 15:21:33 UTC 2008 i686
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/60295/showart_482468.html |
|