QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 17967|回复: 31

ATI显卡fglrx驱动的安装方法(更新8.9,增加Magic打包脚本)

[复制链接]
发表于 2007-8-5 22:22:37 | 显示全部楼层 |阅读模式
080930编辑:修改了Fedora的打包脚本,现在可以为Magic打包了。脚本见附件,方法见下面文章,希望用A卡的朋友都来试试。
080918编辑:更新8.09,2.6.25.10内核测试通过。amdxmm模块问题该版本已解决,ML上还需链接。
080912编辑:更新8.08,2.6.25.10内核测试通过。8.06/8.07/8.08驱动xv模式不能使用的解决办法。
080531编辑:更新8.05,2.6.25.4内核测试通过。要打rpm包的话,必须把ati/packages/Fedora/ATI-fglrx.spec
的323行“- Add compat-libstdc++ as a required dependency”用“#”注销掉,否则无法打包。
080421编辑:更新8.04,2.6.24.4内核测试通过。
080221编辑:更新8.45.5,添加rpm打包方法。2.1b1fix测试通过,但部分GL屏保无法加速,例如默认的彗星屏保。
071222编辑:推荐安装8.44.3(7.12)驱动,用户切换失效问题和fgl_glxgears出错问题已解决。1107/1217测试均通过。
071201编辑:8.43.2(7.11)驱动已经支持2.6.23内核,不再需要补丁,上面的办法0727,1107均通用了。

───────────────────────────────────────────────────────────

昨天下载安装了ML2.1,一直无法安装ATI显卡驱动,被屏幕偏移问题头痛了好久。今天花了一整天时间,终于成功安装了fglrx驱动,将经验分享给还在困扰的朋友。
1.首先去ATI官网下载最新的驱动
http://ati.amd.com/support/drivers/linux/linux-radeon.html
2.执行程序安装
[root@MagicLinux ~]# ./ati-driver-installer-8-9-x86.x86_64.run
3.由于有3个文件路径不对,导致无法正常启动。
[root@MagicLinux ~]#ln -s /usr/lib/xorg/modules/drivers/fglrx_drv.so /usr/X11R6/lib/modules/drivers/
[root@MagicLinux ~]#ln -s /usr/lib/xorg/modules/linux/libfglrxdrm.so /usr/X11R6/lib/modules/
[root@MagicLinux ~]#ln -s /usr/lib/xorg/modules/amdxmm.so /usr/X11R6/lib/modules/drivers/
4.修改/etc/X11/xorg.conf将
Driver      "radeon"
改为
Driver      "fglrx"
5.reboot
6.如果无法看电影或电影画面效果差的话,尝试
[root@MagicLinux ~]#aticonfig --ovt=Xv

以下内容仅适合8.6-8.8,8.9不用了。
7.从8.06版本开始,可能会出现xv模式无法使用的问题,具体表现为glxgears和fgl_glxgears均运行正常,但是xvinfo会显示无支持的设备,原因是未正常安装amdxmm模块。解决方法:
[root@MagicLinux ~]# ./ati-driver-installer-8-8-x86.x86_64.run --extract ati
[root@MagicLinux ~]# cd ati/x710/usr/X11R6/lib/modules
[root@MagicLinux ~]# cp amdxmm.so /usr/X11R6/lib/modules/drivers/
运行AMD控制中心会段错误,但不影响驱动使用。

───────────────────────────────────────────────────────────


Magic的rpm打包方法:
1.下载附件Magic.tar.gz
2.解压缩得到Magic文件夹
[root@MagicLinux ~]# tar xvzf Magic.tar.gz
3.解压缩驱动文件到ati目录
[root@MagicLinux ~]# ./ati-driver-installer-8-9-x86.x86_64.run --extract ati
4.进入ati目录
[root@MagicLinux ~]# cd ati
5.将Magic文件夹移动到packages目录下
[root@MagicLinux ~]# mv /root/Magic packages/
6.执行脚本
[root@MagicLinux ~]# sh packages/Magic/ati-packager.sh --buildpkg mgc
7.rpm包将生成在root目录下
[root@MagicLinux ~]# cd /root
8.安装驱动和核心模块即可,控制中心可以选择安装。注意不要安装ATI-fglrx-devel,会造成依赖关系混乱。链接不用做了,已经包含在脚本中了。

[ 本帖最后由 xx_zz 于 2008-9-30 22:07 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2007-8-5 22:43:52 | 显示全部楼层
噢,这样的话,原来打的包还能用。
回复

使用道具 举报

发表于 2007-8-19 12:35:57 | 显示全部楼层
谢谢分享 我一直在找方法
回复

使用道具 举报

发表于 2007-12-9 00:29:53 | 显示全部楼层
照着这位兄台的指点,真装上去啦。。。还能运行COMPIZ。。可是有一点不懂。还请指教。。每次开机时,是正常的。如下。
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon 9550 / X1050 Series
OpenGL version string: 2.1.7059 Release
但是,如果LOGOUT一次,再LOGIN就不行啦,
[yangjie@MagicLinux ~]$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (1.5 Mesa 6.5.2)
大哥,这是何解。试过ROOT用户也是这样的。

[ 本帖最后由 flexyangjie 于 2007-12-9 00:32 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2007-12-9 11:24:20 | 显示全部楼层
可以用Ctrl+Alt+Backspace重启X再登录,临时的解决办法。
回复

使用道具 举报

发表于 2007-12-9 16:23:12 | 显示全部楼层
,,谢谢,这样子也不错的。看来这不只是我一个人有这样的问题。总比重启好。
回复

使用道具 举报

 楼主| 发表于 2007-12-22 16:18:36 | 显示全部楼层
请更新最新的8433版本驱动,切换用户驱动失效问题和运行fgl_glxgears出错问题已解决。
安装完成后第一次重启会出现黑屏,再重启就能正常进入了,原因不明。

[ 本帖最后由 xx_zz 于 2007-12-22 16:25 编辑 ]
回复

使用道具 举报

发表于 2008-4-21 15:05:42 | 显示全部楼层
不知道怎么回事,这个驱动的页面打不开,郁闷

[ 本帖最后由 aric286 于 2008-4-22 00:17 编辑 ]
回复

使用道具 举报

发表于 2008-4-27 15:28:41 | 显示全部楼层

救命!

ml2.1bugfix版,操作后黑屏(确切说,刚开始是一片乌云从右下角飘向左上角,后来全黑,没反应),重启几次已旧!
回复

使用道具 举报

发表于 2008-4-27 16:31:51 | 显示全部楼层
你用single模式进去,改下xorg.conf吧.
回复

使用道具 举报

发表于 2008-4-27 17:01:24 | 显示全部楼层
原帖由 sejishikong 于 2008-4-27 16:31 发表
你用single模式进去,改下xorg.conf吧.
多谢,采用single模式重新改回radeon后可以了,然后采用ati说明中的“aticonfig --initial”成功解决分辨率问题!
回复

使用道具 举报

发表于 2008-8-3 11:23:11 | 显示全部楼层
还是不行,我的 2600pro    20的 液晶 。
很郁闷,
还有 GCC4.2装不上,,
qq也就无缘了,

对此,很郁闷,。没时间折腾系统,不想以前了,,,闹了那么多年的 简单。还是不简单,,,,,,注定无法普及的原因,,,不是每个人愿意折腾,不是每个人有时间去折腾,,,,,,,,,,,,,,,
────────────────────────────────────────────────────────────────────────────
# XFree86 4 configuration created by MagicInstaller.

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        Screen         "aticonfig-Screen[0]-0" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF"
        FontPath     "/usr/share/fonts/default/Type1"
        FontPath     "/usr/share/fonts/pcf/zh_CN"
        FontPath     "/usr/share/fonts/msttcorefonts"
        FontPath     "/usr/share/fonts/ttf/zh_CN"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
        Load  "v4l"
        Load  "xtrap"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbRules" "xfree86"
        Option            "XbkModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"

  # 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "LCD-MONITOR"
        HorizSync    31.0 - 82.0
        VertRefresh  56.0 - 76.0
        ModeLine     "1680x1050_60.00" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        Option            "VendorName" "ATI Proprietary Driver"
        Option            "ModelName" "Generic Autodetecting Monitor"
        Option            "DPMS" "true"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "fglrx"
        VendorName  "Videocard vendor"
        BoardName   "ATI Technologies Inc Unknown device 9589"
        VideoRam    256000
        BusID       "PCI:2:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        Option            "VideoOverlay" "on"
        Option            "OpenGLOverlay" "on"
        BusID       "PCI:2:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "1680x1050" "1024x768" "800x600"
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes        "1680x1050" "1024x768" "800x600"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection

Section "Extensions"
        Option            "Composite" "Enable"
EndSection
回复

使用道具 举报

发表于 2008-8-3 11:44:50 | 显示全部楼层
8.7 我这里不行,装上后 2D 很慢。3D 速度正常。貌似是 8.7 的文件更多了。
我的解决办法是把所有 8.7 驱动的文件(放在 /usr/lib/xorg/ 下面了,主要是 so 文件,还有两个 xorg 的驱动)都复制到 xorg 对应的在 /usr/X11R6/lib/ 里面 。之后就正常了。
回复

使用道具 举报

 楼主| 发表于 2008-8-3 17:56:42 | 显示全部楼层
8.6和8.7安装完再建软链接,glxgears和fgl_glxgears测试都正常,只是xvinfo总是提示没有支持的设备,xv模式用不了。不想再折腾A卡了,受罪
回复

使用道具 举报

发表于 2008-9-11 14:41:22 | 显示全部楼层
还是N卡好,集成的8200性能都不错。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-28 20:43 , Processed in 0.090491 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表