PDA

View Full Version : Unsolved ATI Mobility Radeon X1600 + Compiz-Fusion + Video/3D


running
May 21st, 2008, 12:15 PM
Hi all,
Hardware: Toshiba Satellite PRO A-100
ATI Mobility Radeon X1600

OS: OpenSUSE 10.3
ATI Driver: 8.4

After installing ati drivers I have correctly configured 3D and perfect video playback:
1.
running@linux-7v3c:~> glxgears
21248 frames in 5.0 seconds = 4249.443 FPS
21539 frames in 5.0 seconds = 4306.899 FPS
2. Video playback works fine in windowed and fullscreen mode
3. Also to test I have installed AssaultCube (3D shooter for Linux) and it works fine

My Xorg.conf is following (some options are commented while I have tried different solutions for my problem):
# generic XFree86 4.x configuration file
# Screen Section for module X support
# -------------------------------------
# Screen Section for fbdev support
# vesafb defaults to 16bit
# others default to 8bit, force a higher colordepth
# on Apple onboard controllers, remove the default #207338
# changes for DefaultDepth have to be made in /usr/lib/YaST2/startup/YaST2.call as well
# ----------------------------------
# Screen Section for vesa support
# ----------------------------------
# Screen Section for vmware support
# ----------------------------------
# Device Sections...
# -------------------

Section "ServerLayout"
Identifier "Layout[all]"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Xinerama" "off"
#add
Option "AIGLX" "true"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
InputDevices "/dev/ttyS0"
InputDevices "/dev/ttyS1"
InputDevices "/dev/ttyS2"
InputDevices "/dev/ttyS3"
InputDevices "/dev/ttyS4"
InputDevices "/dev/ttyS5"
InputDevices "/dev/ttyS6"
InputDevices "/dev/ttyS7"
InputDevices "/dev/ttyS8"
InputDevices "/dev/psaux"
InputDevices "/dev/logibm"
InputDevices "/dev/sunmouse"
InputDevices "/dev/atibm"
InputDevices "/dev/amigamouse"
InputDevices "/dev/atarimouse"
InputDevices "/dev/inportbm"
InputDevices "/dev/gpmdata"
InputDevices "/dev/usbmouse"
InputDevices "/dev/adbmouse"
InputDevices "/dev/input/mice"
InputDevices "/dev/input/event0"
FontPath "/usr/share/fonts/truetype/"
FontPath "/usr/share/fonts/uni/"
FontPath "/usr/share/fonts/misc/"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "dri"
Load "glx"
Load "vbe"

#add modules
#Load "xtrap"
#Load "GLcore"
#Load "record"
#Load "type1"
#Load "freetype"
#Load "i2c"
#Load "bitmap"
#Load "ddc"
#Load "int10"
#Load "v4l" # Video for Linux

EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail"
Option "BlankTime" "0"
EndSection

Section "InputDevice"
Identifier "Keyboard[0]"
Driver "kbd"
Option "Protocol" "Standard"
Option "XkbRules" "xfree86"
Option "XkbKeycodes" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "Protocol" "explorerps/2"
Option "Device" "/dev/input/mice"
EndSection

Section "Modes"
Identifier "Modes[0]"
ModeLine "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 # 6. Try
ModeLine "640x480" 31.5 640 680 720 864 480 488 491 521 # 5. Try
ModeLine "640x480" 28.0 640 664 760 800 480 491 493 525 # 4. Try
ModeLine "640x480" 28.3 640 664 760 800 480 491 493 525 # 3. Try
ModeLine "640x480" 25.2 640 664 760 800 480 491 493 525 # 2. Try
ModeLine "640x480" 25.2 640 664 760 800 480 491 493 525 # 1. Try
EndSection

Section "Modes"
Identifier "Modes[vmware]"
ModeLine "800x600" 29.4 800 816 896 992 600 601 604 617
EndSection

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

Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "DRI" "true"
Option "ColorTiling" "on"
Option "EnablePageFlip" "true"
#add
VendorName "ATI"
Option "AccelMethod" "EXA"
Option "AGPSize" "512" #fixes white title bars
Option "XAANoOffscreenPixmaps" "on" #->This one IS absolutely NEEDED! It shouldn't be missed!
Option "TexturedVideo" "on" #->AVIVO accelerated video through 3D engine, it should be "off" for cards prior to X1050. See Note 0...
Option "VideoOverlay" "off"#->Deprecated for X1050 and later cards. BUT it should be "on" for cards prior to X1050. See Note 0...
Option "OpenGLOverlay" "off"#->Deprecated generally that's why off. See Note 0...
Option "Textured2D" "on" #->Experimental! See Note 1...
Option "TexturedXrender" "on" #->Experimental! See Note 2...
Option "UseFastTLS" "1" #->Enable/disable fast thread local storage. Disable this option when virtual machines or WineX fail to work properly.
Option "BackingStore" "on" #->Helps alot. See Note 3...

#Option "BlockSignalsOnLock" "on"
#Option "KernelModuleParm" "locked-userpages=0"
#
#Option "UseFastTLS" "2"
#Option "UseInternalAGPGART" "no"
#
#Option "mtrr" "off"
#Option "no_accel" "no"
#Option "no_dri" "no"
#Option "EnablePrivateBackZ" "no"


#Option "TexturedVideo" "off" #???
#Option "Textured2D" "off" #???
#BusID "PCI:1:0:0"
#Option "VideoOverlay" "off" #??
#Option "TexturedVideo" "on"
#Option "TexturedVideoSync" "True"
#Option "Textured2D" "on"

#http://ubuntuforums.org/showthread.php?t=339316
#Option "RenderAccel" "on"
#Option "AGPMode" "8"
#Option "AGPFastWrite" "yes"
#http://forum.ubuntu.ru/index.php?topic=17934.msg129405#msg129405
#Option "FSAAEnable" "yes"
#Option "FSAAScale" "4"

EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
# Option "Composite" "Disable"
Option "Composite" "Enable"
Option "DAMAGE" "Enable"
Option "RENDER" "Enable"
Option "XVideo" "Enable" #(optional)
EndSection

After it I install compiz-fusion from XGL repository
-Deactivated "loose binding" option
-Changed compiz_args to compiz_args = ['--replace', '--ignore-desktop-hints', '--no-libgl-fallback', '--sm-disable', 'ccp'] in
/usr/lib/python2.5/site-packages/FusionIcon/data.py

I'm starting fusion-icon, selecting compiz and it works. Cube rotates and other plugins are working, BUT I have following curious effects:
1. glxgears starts without titlebar, it blinks and the desktop is seen through the window during blinking. If I drag glxgears window, "gears" stay on the old place and I drag a window with a desktop content. After drag is completed - "gears" are moved to new place.
2 Maximize, Minimize, Close icons are disappearing sometimes in titlebars
3. Video is blinking in window and fullscreen mode.
4. Windows are getting maximized with a delay (some seconds). Resizing window is also very slow.

Some screenshots :
http://img185.imageshack.us/img185/6789/snapshot1ho2.th.jpg (http://img185.imageshack.us/img185/6789/snapshot1ho2.jpg)
http://img140.imageshack.us/img140/9554/screenshotke6.th.png (http://img140.imageshack.us/img140/9554/screenshotke6.png)


Nevertheless Compiz Benchmark shows 250-300 FPS

Can someone help to figure out the reasons and solve these problems?

I have already searched for weeks, but still didn't find any working solution. Also this http://forum.compiz-fusion.org/showthread.php?t=6794&highlight=ati didn't help me :(

adamk
May 21st, 2008, 12:22 PM
You won't be able to fix items 1 and 3. These are limitations in the Xorg direct rendering infrastructure. The problem with opengl applications is being worked on in Xorg, but will also require AMD to update their drivers to use the new direct rendering infrastructure once it's available. For item 3, the only real workaround is to either use the x11 output device for your video player, or to use a version of mplayer patched to use the compiz video playback plugin.

As for item 2... emerald is much buggier than either of the other window decorators (gtk-window-decorator and kde-window-decorator) and is mostly unmaintained. You may want to give gtk-window-decorator a try to see if that leaves you without titlebars sometimes, too.

With resizing, you should change the "default resize mode" from the default of "Normal" in the resize plugin in ccsm. I use "Stretch" but you may prefer one of the others.

Adam

running
May 22nd, 2008, 02:18 AM
Realy great thanks for an answer. :)
Resize "stretch" helps. And gtk-window-decorator doesn't have emerald problems.

But still there is a problem with maximize and resize "rectangle"

When window is maximized or resize "rectangle" is completed. Complete redrawing stops for a few seconds and then starts again. Is it possible to fix this?

By the way. Am I right that such configuration is the best possible?
Is it not better with XGL?



P.S. Thanks for Video Tip. It works fine with xine+xshm

some-guy
May 22nd, 2008, 06:06 AM
XGL might remove tearing, but afaik, with the new codebase, fglrx performance is horrible with compiz

running
May 26th, 2008, 10:22 PM
XGL might remove tearing, but afaik, with the new codebase, fglrx performance is horrible with compiz
Thank you for your answer.

Now it works but there is still a delay before maximizing window. Is it possible to fix it?

some-guy
May 27th, 2008, 02:56 AM
wait, after you followed djdoo's guide, did you run
aticonfig --input=/etc/X11/xorg.com --tls=1
as root, because that stores your settings (also it has been update try using it again)

running
May 28th, 2008, 12:31 PM
wait, after you followed djdoo's guide, did you run
aticonfig --input=/etc/X11/xorg.com --tls=1
as root, because that stores your settings (also it has been update try using it again)
Even after this command there is a delay. May it be caused by misconfiguration of compiz?

some-guy
May 28th, 2008, 03:07 PM
Did you restart X after running that command ? If you didn't press Control+Alt+Backspace, this WILL log out, so save any data that needs to be saved first

running
May 28th, 2008, 09:59 PM
Did you restart X after running that command ? If you didn't press Control+Alt+Backspace, this WILL log out, so save any data that needs to be saved first
Yes, I have restarted with ctrl+alt+backspace after every change. Nothing changes..

b0le
May 29th, 2008, 03:38 AM
Is it all apps that have maximize delay? I have quite a significant delay for maximizing gnome-terminals, but not noticeable for fixefox (so it could just be the app)

running
June 1st, 2008, 12:50 AM
Is it all apps that have maximize delay? I have quite a significant delay for maximizing gnome-terminals, but not noticeable for fixefox (so it could just be the app)
Yes it affects all windows. E.g. Firefox, Terminal, CCSM, Yast

jaleo
July 7th, 2008, 05:52 PM
I've got the same Problem.

My distribution is gentoo with the ati-drivers-8.493 and AIGLX.
It works all, but i've got the "maximizing delay" and the "resizing problem" too.

Is it possible to fix this now?

adamk
July 7th, 2008, 06:43 PM
I've got the same Problem.

My distribution is gentoo with the ati-drivers-8.493 and AIGLX.
It works all, but i've got the "maximizing delay" and the "resizing problem" too.

Is it possible to fix this now?

No. You can read about the maximization problem with the fglrx drivers here: http://forum.compiz-fusion.org/showthread.php?t=8646

Adam

jaleo
July 7th, 2008, 07:35 PM
Ah, ok.. thanks very much. ;)

xadmin
August 12th, 2008, 07:35 PM
I'm using the same card, on my laptop, however my configuration is a bit different.

I'm using my big screen as my primary display, using the vga connector on the side of the laptop, while the laptop is closed and the display disabled.

when i activate proprietary drivers and restart emerald effects works perfectly fine, only problem is it doesn't work on my big screen, it reverts back to my laptop internal monitor.

and cannot switch to my big screen it's not available.

so i've reverted back in the mean time, while i figure out how to work this on my big screen.

can i copy your xorg, and will it work since it's the same card.

i'm running this on ubuntu 8.04. up to date.

the resolution needs to be either 1920x1080 or 1360x768