AMD APU A10-5800K, Debian Wheezy, 系统安装ATI闭源驱动

大兔子大兔子 提交于 2020-04-12 17:59:26

AMD APU A10-5800K, Debian Wheezy, 系统安装ATI闭源驱动

http://my.oschina.net/emptytimespace/blog/87464

AMD APU A10-5800K 集成显卡是: AMD Radeon HD 7660D,请不是此类显卡者小心跟随。

我们此处重点讨论在新立得中安装AMD ATI 的闭源催化剂驱动,主要是考虑到源中的驱动可以实时更新。

如果想使用最新的驱动并且能够接受将来变旧,可就可能需要继续手动安装,那么可以到官网下载最新驱动,这在本文最后再提到。

【方法一:(个人推荐)】

1)因为是闭源的,首先需要开启nofree的软件源

2)新力得中搜索安装所有 fglrx*(之前似乎需要安装build-essential)

3)# aticonfig --initial (有的使用:aticonfig --initial -f ,意为force,本人认为能不强制就不强制)

4)# depmod -a 生成 modules.dep 和 map 文件 ,似乎和模块加载顺序有关。


depmod will output a dependency list suitable for the modprobe utility
5)# reboot 安装完成,很简单吧,之后可以重启多次,因为我的似乎换不同内核启动过几次,同一内核不记得几次了。


6)# modprobe fglrx 看是否存在module。

7)执行:# fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7660D
OpenGL version string: 4.2.11762 Compatibility Profile Context

看到可正确识别,现在基本正确安装结束。显示器分辨率也正确了,gnome3也可以开启高级非classical模式了。

8)执行:#xvinfo

出现很多行,不止3-4行,那么说明自动启动了XV模式,有的文章在『# aticonfig --initial』之后执行了『# aticonfig --overlay-type=xv』但我没有,此前也有说XV模式兼容性不好,可知应该新的驱动程序初始化有所变化,自动完成了。

若果#xvinfo后显示:

X-Video Extension version 2.2
screen #0
no adaptors present

那么可能需要手动设置下。

还有的【*】等认为,此后还需要修改/etc/X11/xorg.conf,添加Option "Composite" "0 " 到 Section "Extensions",个人不知何意,感觉用不到,还是抱能少动原系统就少动的原则行事。


9)测试新硬件的性能:

#glxgears
40097 frames in 5.0 seconds = 8019.304 FPS
39610 frames in 5.0 seconds = 7921.913 FPS
39655 frames in 5.0 seconds = 7930.996 FPS

# fgl_glxgears
Using GLX_SGIX_pbuffer
6723 frames in 5.0 seconds = 1344.600 FPS
7995 frames in 5.0 seconds = 1599.000 FPS
7881 frames in 5.0 seconds = 1576.200 FPS

与四年前AMD 780芯片组板载HD3200显卡快了10倍!!!


【方法二:到官网下载最新的驱动包安装】

网址:

http://support.amd.com/cn/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&product=2.4.1.3.42&lang=English

http://support.amd.com/cn/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&product=2.4.1.3.42&lang=English

注意:在文【www.linuxdiyf.com/viewarticle.php?id=72891】中提到,安装新的自己下载的催化剂驱动(如:amd-driver-installer-catalyst-12.10-x86.x86_64.zip)前,需要:

卸载旧的fglrx :
在新立得中把含有fglrx的软件包全部删除,然后终端执行
代码: # rm /usr/lib/libGL.so*

然后解压安装就好了。

有图形界面,图形界面一直前进,到结束就好了,不需『# aticonfig --initial』。


【附:】

1)aticonfig --help 的结果

似乎有些启发作用,比如没有很多其他的上文中提到的他人的多余设置,官方文档总是好的,但是不是很懂:

Examples:
  1. Setting up fglrx for the first time.
       Single head :    aticonfig --initial --input=/etc/X11/xorg.conf
       Dual head   :    aticonfig --initial=dual-head --screen-layout=above
                        This command will generate a dual head configuration
                        file with the second screen located above the first
                        screen.
       Multi head  :    aticonfig --initial --heads=4 --adapter=1
                        This command will generate 4 adjacent X Screens
                        on adapter 1.  Use with -f to reduce previously configur
ed heads.
  2. Setting up big desktop to horizontal and set overlay on secondary display.
                        aticonfig --dtop=horizontal --overlay-on=1
  3. Setting up modes for primary display.
                        aticonfig --resolution=0,1600x1200,1280x1024,1024x768
  4. Change tv geometry
                         aticonfig --tv-geometry=85x90+10-10
         This will set tv to 85% width (where 100% ==
         overscan) 90% height and shift 10 pixels right of centre
         and 10 pixels down of centre.
  5. Multiple display adapters.

2)【*#】文中提到:

查看当前正在运行的显卡模式:aticonfig --pxl #

激活运行的是独显(discrete)模式 (高性能模式):sudo aticonfig --px-dgpu #

激活运行的是集成显卡模式 (节电模式):sudo aticonfig --px-igpu #

3)推荐一篇文章:

http://linux.chinaunix.net/techdoc/install/2007/09/30/969025.shtml


4)在哪里看到这段话,说XV模式下也不兼容compiz,不知对否,我的机器似乎没有安装compiz,暂不考虑,放着:

在xorg.conf中加了这么两行
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
关了OpenGL的覆盖而开启Video(Xv?)的覆盖
貌似只有这样,ATI的Xv渲染器才可用

,不过overlay方式还是和compiz冲突,基本看不见视频
而gl渲染器应该是不用overlay,所以对gl方式也没有影响,还是闪。。。


【主要参考文章:】

【*#】http://locyoo.com/?post=67

http://www.linuxdiyf.com/viewarticle.php?id=72891

http://zhidao.baidu.com/question/47067050.html&__bd_tkn__=6ebd535d3a2499274a6df923f9b525b18056cfb8f37b60d157b2fc1d2be28e93213dcf60e4eb893525bc7e11a1fbf821d8f724b223

http://www.ltesting.net/ceshi/ruanjianceshikaifajishu/rjcshjdj/unix/2007/0704/122899.html

http://huang.yunsong.net/2006/fglrx_ubuntu.html

http://forum.ubuntu.org.cn/viewtopic.php?t=170958

http://hi.baidu.com/sharkchilli/item/49448f60b0487e90c4d2490d

http://blog.csdn.net/rock2000/article/details/3408806

【*】http://blog.sina.com.cn/s/blog_4c8e50c5010009je.html

http://wiki.ubuntu.org.cn/ATI%E6%98%BE%E5%8D%A1%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!