|
|
个人的ATI显卡驱动安装总结,针对FC6平台
欢迎大家共同讨论
驱动的结构
显卡的驱动一般是分成两个部分,一部分是位于kernel部分,与硬件直接打交道,提供底层接口,一般比较小,对不同版本的内核,这部分不同,这也是为何一般对不同内核需分别安装驱动的原因,现在有种dkms技术试图实现一个驱动对不同的内核自动生成相应模块,不过尚不成熟;显卡驱动的令一部分是与X系统相关,直接提供对X系统的接口,在livna的显卡驱动中,不管是nvidia还是ati,都是提供两个包,一个kmod..是对应地一部分地,一个xorg-x11-drv...对应第二部分
开源\非开源
ati和nvidia的显卡驱动都有开源的非开源的版本,开源的版本是由开源社区提供,ati的版本比nvidia的好,至少提供了aiglx的支持,非开源的版本由厂商提供,ati的版本叫fglrx,这个版本nvidia要好很多,fglrx性能比较弱,还不提供aiglx的支持,不过fglrx的发展速度还是很快地,希望他越来越好。
如何安装驱动
开源版本的驱动系统自带,下面说的主要针对fglrx
1.使用官方安装包安装
下载ATI官方的安装包
地址:
http://ati.amd.com/support/drivers/l...ux-radeon.html
文件名:ati-driver-installer-版本号-x86.x86_64.run
执行 sh ati-driver-installer-8.32.5-x86.x86_64.run --listpkg
可以查看其中内建的对各主要发行版的支持列表,最新的安装包中已经包含对fc6的支持
执行 sh ati-driver-installer-8.32.5-x86.x86_64.run --buildpkg Fedora/FC6
可以生成约3个rpm包,rpm -i 这个三个包,生成xorg.conf,重起系统,应该就可以了。
这种方法最通用,不过比较麻烦
对FC6用户,可以有更简单办法安装:
2.使用livna提供的包安装,这个是我主推的安装方式
配置好livna源后,首先直接执行yum install kmod-fglrx,如果对nvidia的用户,则执行yum install kmod-nvidia,nvidia用户直接修改xorg.conf把
Driver "nv" 改为 Driver "nvidia" 然后重起应该就可以了,但对ati要麻烦些
上面已经说过驱动的两重结构,首先要确定第一个kernel部分的正确加载,
执行ati-fglrx-config-display enable,重起系统,进X后执行dmesg,若能看到类似如下的信息就表示第一部分已经正确加载了
[fglrx] AGP enabled, AgpCommand = 0x1f000314 (selected caps)
[fglrx] total GART = 268435456
[fglrx] free GART = 252440576
[fglrx] max single GART = 252440576
[fglrx] total LFB = 126873600
[fglrx] free LFB = 116387840
[fglrx] max single LFB = 116387840
[fglrx] total Inv = 134217728
[fglrx] free Inv = 134217728
[fglrx] max single Inv = 134217728
[fglrx] total TIM = 0
第二部分主要通过xorg.conf控制,下面给出一个从头生成xorg.conf的办法
1)使用system-config-display生成一个基本的xorg.conf
2)执行aticonfig --initial 修改xorg.conf,这里可以给aticonfig添加更多的参数,具体可以参考aticonifg -h, 我执行的是
aticonfig --initial --dtop=single --resolution=0,1280x1024,1024x768 --hsync=0,30.0-67.0 --vrefresh=0,50.0-65.0 --ovt=Xv
其中设定分辨率和刷新率可以减少启动X时刷屏情况的发生,我的是液晶,设定是按照60Hz刷新率设定的, --ovt是为了后面的xv视频输出设置的, --dtop是设置多屏幕的, 以上这些设置都可以手动在xorg.conf里修改,按照上面的指令生成地xorg.conf如下
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
EndSection
Section "Module"
Load "dri"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "LCD Panel 1280x1024"
HorizSync 31.5 - 67.0
VertRefresh 50.0 - 75.0
Option "dpms"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
HorizSync 30.0 - 67.0
VertRefresh 50.0 - 65.0
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "DesktopSetup" "single"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768"
EndSubSection
EndSection
3)手动修改xorg.conf,在文件尾添加
Section "Extensions"
Option "Composite" "Disable"
EndSection
删除
Section "Module"
Load "dri"
Load "glx"
EndSection
几行
保存即可
总结下安装的步骤:
1)yum install kmod-fglrx
2)生成xorg.conf
3)ati-fglrx-config-display enable
4)重启系统即可
这种安装方式相对比较容易, 缺点是每次升级内核都需要更新驱动,更新应该是只要执行yum update就可以,目前我还没试
检测是否正确安装的办法:
glxinfo |grep direct
返回结果应该为direct rendering: Yes
下面这个与视频输出有关,正确输出说明xv输出没问题
xvinfo
返回结果应该类似:
X-Video Extension version 2.2
screen #0
Adaptor #0: "ATI Radeon Video Overlay"
number of ports: 1
port base: 115
operations supported: PutImage
supported visuals:
depth 24, visualID 0x23
depth 24, visualID 0x24
depth 24, visualID 0x25
....
在开源驱动和非开源驱动间转换
fglrx尚不支持Aiglx,所以如果想看3D桌面特效,还需要转到开源驱动.
fglrx->开源驱动:
ati-fglrx-config-display disable
修改xorg.conf
Driver "fglrx" 改为: Driver "radeon"
删除
Section "Extensions"
Option "Composite" "Disable"
EndSection
有可能在重起后需要运行: rmmod fglrx
开源驱动->fglrx
ati-fglrx-config-display enable
修改xorg.conf
Driver "radeon" 改为: Driver "fglrx"
添加
Section "Extensions"
Option "Composite" "Disable"
EndSection
3.使用 freshrpms的源安装
freshrpms的源与livna相比,主要是想通过dkms实现对不同内核自动安装驱动,从而无需每次升级内核都要重新装驱动,不过这种方法在我的电脑上并没有安装成功,主要还是dkms部分不对劲,驱动的第一部分始终安装不正常。
这种安装目前应该还不成熟,这种技术完善了之后应该是最理想的安装办法了.
glxgears得分:
fglrx的glxgears得分很低,安装官方点的说法glxgears不能反应驱动的真实性能.. |
|