[分享]提升ati商业驱动在compiz下的性能,3/21 更新

CPU/显卡/打印机/USB设备等硬件问题
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

[分享]提升ati商业驱动在compiz下的性能,3/21 更新

#1

帖子 zhuqin_83 » 2008-02-20 0:35

这个是最近才出来的新选项,修改xorg.conf,非完美解决之前的2D缓慢(如firefox等拖动有迟钝感)的问题。说没完美是因为依然还能觉察出迟钝,在arch下,xorg7.3 xserver 1.4pre,感觉还不如xf86-video-ati 6.7.197打开exa快。(ubuntu7.10应该是6.7.196的,开启exa会崩溃。)

参考 http://forum.compiz-fusion.org/showthread.php?t=6794

找到 Section "ServerLayout"
添加Option "AIGLX" "on" 以打开aiglx支持(其实不加也行,会自动加载)

找到 Section "Device" 并添加
Option "XAANoOffscreenPixmaps" "on" ->这个必备!
Option "TexturedVideo" "on" ->AVIVO加速,非常重要的新特性!但对于x1050之前的显卡必须是off。见注释0
Option "VideoOverlay" "off" ->x1050及以上显卡必须有这一行,光光删除是不够的,但之前的必须是on。见注释0
Option "OpenGLOverlay" "off" ->同上
Option "Textured2D" "on" ->见注释1,最好加上
Option "TexturedXrender" "on" ->见注释2,最好加上
Option "UseFastTLS" "1" ->打开fast thread local storage。如果在虚拟机下或者用wine请关闭
Option "BackingStore" "on" ->很有用!见注释3

找到 Section "Screen"
DefaultDepth 24

找到 Section "DRI"(不要也成)添加
Mode 0666

找到 Section "Extensions": ->见注释5,添加:
Option "RENDER" "Enable"
Option "DAMAGE" "Enable"
Option "Composite" "Enable"(不加也行)
Option "XVideo" "Enable" (不加也行,一般会自动加载)

注释0:
First we simply specify Option "OpenGLOverlay" "off" in order to make sure it doesn't load cause it drains most of our CPU power under playback and offers nothing useful.
Now we must decide according to our card model which of the 2 others we will use...

For cards older thanX1050 we must have this video setup:
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "off"

For cards newer than X1050 and IGPs we must have this one:
Option "VideoOverlay" "off"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "on"
Also please see these 2 posts by John Bridgman from AMD which really explain a lot!
http://phoronix.com/forums/showpost....&postcount=184
http://phoronix.com/forums/showpost....&postcount=182

注释 1:
Textured2D option utilizes a new 2D acceleration mechanism of the driver which really boosts up 2D performance and behaviour! It also loads GLESX module. (I have seen a 9550 old Radeon easily overcome at 2D performance my X1250 with this option!)
Important when works cause it improves the slow windowed scrolling problem every ATI user faces when use Compiz-Fusion with AIGLX and fglrx driver. BE CAREFUL with that! It is a hidden option and it may NOT work with all ATI cards! If you cannot connect to X server or face strange colours just commend it out at xorg.conf or set it to "off"But Try it! Really worths checking! Now it works for IGPs too, from 8.2 and on driver (Works for my X1250!) At 8.3 driver this is working even better!

注释 2:
TexturedXRender option gives the Textured2D mechanism the ability to use the advanced features that Xorg's RENDER extension provides and really make things even better for 2D visuals!

注释 3:
Backing Store option engages an Xorg's mechanism which stores graphics that have been rendered and so the card doesn't have to re-render the same things. BUT it can cause screen artifacts if you don't use Compiz-Fusion.

注释 4:
The first extension must be enabled to be used with the "TexturedXrender" option.
The 2 following ones are needed for getting Compiz-Fusion working.
The last one is used to enable XV video (optional cause it is usually loaded by default). (Video playback with Compiz-Fusion enabled is still a problem, at least for windowed mode).

注释 5:
If you want to have fast fullscreen 3D(unfortunately still blinks) and good fullscreen video(without blinking here!) you must check the box at CompizConfigSettingsManager->General Options->Unredirect Fullscreen Windows But be careful cause in some 3D games your mouse pointer may stop function!! No problem in RACER, but pointer may not work in Sauerbraten and Neverball, test it. I have a feeling that the pointer fullscreen problem doesn't exist under Compiz 0.7, but don't know for sure!

注释 6: ->For Xorg 7.3 users(8.04的要看)
Guys please make sure to install the latest Catalyst driver!! I checked it (official changelog doesn't mention it though) from 8.2 and on Compiz-Fusion is working under Xorg 7.3!(我在arch下试过了,确实可用,自然8.04也可以)

注释 7: ->The /etc/ati/amdpcsdb problem...
In order for our changes to really take affect we have to deal now with amdpcsdb file...
The fact is that in this file is recorded everything considering fglrx's functions from amdcccle's settings to xorg.conf's options!
Fglrx loads whatever this file has recorded, meaning that it will totally ignore the changes we make at xorg.conf file by hand and fglrx will load the previously recorded options!!
Really bad...
The solution is:
You must add an option via aticonfig tool (no matter if it already exists at your xorg.conf) for example:
aticonfig --input=/etc/X11/xorg.conf --tls=1
every time you make a change by hand at your xorg.conf.
上次由 zhuqin_83 在 2008-09-20 12:20,总共编辑 5 次。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#2

帖子 zhuqin_83 » 2008-02-20 0:41

题外话,继续用我的开源驱动,同时等待6.8进入源,嘿嘿 :twisted:
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
jarryson
帖子: 4002
注册时间: 2005-08-14 19:53

#3

帖子 jarryson » 2008-02-21 17:09

在archlinux论坛已经看到过了,我这里不能开启那几个选项,我不用compiz,开了Option "Textured2D" "on"然后使用xfce4混合,会让屏幕反色,很奇特的现象。。。

Option "TexturedVideo" "on"
Option "TexturedXrender" "on"

加上则会使一播放mplayer就x崩溃

剩下的倒是加上了
头像
yang_hui1986527
帖子: 911
注册时间: 2006-03-04 23:10
来自: 江西高安
联系:

#4

帖子 yang_hui1986527 » 2008-03-06 9:36

支持哪些型号的显卡啊?
微信:sn0wdr1am86
QQ: 3217680847
QQ 群:82695646
网站:https://www.itcoder.tech/
网站:http://www.snowdream.tech/
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#5

帖子 zhuqin_83 » 2008-03-06 10:09

xfce4 composite性能比较差的。本来这几个选项只是实验性的,官方都没有任何宣告,xvideo倒是正式的。
反正我继续用开源驱动。

回ls,不知道,试试不行么?
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
kingwanna
帖子: 4
注册时间: 2007-01-21 14:27

#6

帖子 kingwanna » 2008-03-06 16:11

我按照楼主的指导使用之后,3D明显有拖延现象,我的是FireGL mobility T2,笔记本用专业显卡,glxgears的分很低的
头像
yysq009
帖子: 2682
注册时间: 2007-01-28 23:00
来自: @江西|南昌@
联系:

#7

帖子 yysq009 » 2008-03-06 16:17

不知道是我设置问题 还是ATI驱动问题。。
同样的电影 我是9550显卡 使用XV来看 和在WIN下 来比较 明显WIN要清晰 细腻很多。。。
回去看看 加入些zhuqin 参数看看!!!

不知道新驱动 什么时候能进 arch源!!!

Do as you would be done by !
头像
tommy007
帖子: 1352
注册时间: 2007-02-18 0:42

#8

帖子 tommy007 » 2008-03-08 0:18

compiz开启后的XV闪烁的问题。。。。
各位玩amarok的朋友记得去玩玩last.fm啊,一个很特别的的网站。我把它当作音乐统计器用的(last.fm不是在线听歌的网站)
偶的Last.fm
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#9

帖子 zhuqin_83 » 2008-03-08 1:23

闪烁的问题就是需要打补丁的mplayer。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
仍然未满
帖子: 45
注册时间: 2008-02-20 14:53

#10

帖子 仍然未满 » 2008-03-08 10:35

按照楼主改了以后进不了图形界面。。。
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#11

帖子 zhuqin_83 » 2008-03-10 11:40

今日更新
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
tommy007
帖子: 1352
注册时间: 2007-02-18 0:42

#12

帖子 tommy007 » 2008-03-11 16:04

需要打补丁的mplayer?
具体说说看吧。
texturedvideo下,视频明显有拖慢,cpu占用变高
texturedvideosync on后还是有点拖慢。。
各位玩amarok的朋友记得去玩玩last.fm啊,一个很特别的的网站。我把它当作音乐统计器用的(last.fm不是在线听歌的网站)
偶的Last.fm
artistf
帖子: 47
注册时间: 2008-01-05 8:54

#13

帖子 artistf » 2008-03-12 11:38

zhuqin_83 写了:题外话,继续用我的开源驱动,同时等待6.8进入源,嘿嘿 :twisted:
老大,开源似乎开不了特效啊,您说的6.8指什么?开源驱动版本?我按照你的方法装了8.1成功开了特效,但再装8.8就失败了,我现在干脆重装用了自带的开源驱动,不开特效但是totem打开后自动关闭怎么回事啊?还有就是F1到F6的控制台都没了,只有光标闪。A卡什么时候能像N卡一样开了受限驱动就能开特效啊?
AMD Sempron 3200+
Unika Radeon 1650GT DDR3 256m
Kinstone 1G667x2 Duel Channel
Seagate 7200.9 160G
Onda A69T(690G chip,ATI 1250 integrated)
Philips 190cw7
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#14

帖子 zhuqin_83 » 2008-03-12 12:36

开不了?你什么卡,太新的不支持。ubuntu自带的版本低了。
totem从来不用,你用终端打开看错误报告。至于控制台么,点我签名档。受限驱动实在太老,不要指望了。这也是我从ubuntu转到arch的一个原因。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#15

帖子 zhuqin_83 » 2008-03-21 14:50

今日更新。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
回复