PDA

View Full Version : [ubuntu] No movies or OpenGL apps in windows on Hardy Heron


Lucretia9
April 22nd, 2008, 09:44 AM
Hi,

I've installed Hardy on my machine and have got the machine working to a point where the 3D desktop works. This is very nice and I'd like to use it all the time if possible, but when trying out an OpenGL application or playing a movie there is massive flickering, the other windows are fighting with the GL layer.

Is anyone else having this problem?

$ uname -a
Linux rogue 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux

My graphics card is a PCIe ATi X1950XT on a ASUS P5B motherboard.

Luke.

terry1311
April 22nd, 2008, 02:10 PM
Hi, yes have the same problem. I tried installing the last proprietary ATI driver too, but it didn't help. If I figure it out, I'll let you know :)

Lucretia9
April 22nd, 2008, 02:59 PM
I tried messing with a few other options I've seen in other peoples configurations during my scan across the net, but still nothing. I can't even find the documentation on these options :(


Section "device" #
Identifier "device1"
Vendorname "ATI"
Boardname "ATI Radeon X1950XT (fglrx)"
Busid "PCI:1:0:0"
Driver "fglrx"
Screen 0
Option "XAANoOffscreenPixmaps" "on"
Option "TexturedVideo" "on"
Option "VideoOverlay" "off"
Option "OpenGLOverlay" "off"
Option "Textured2D" "on"
Option "TexturedXRender" "on"
Option "UseFastTLS" "1"
Option "BackingStore" "on"
Option "RenderAccel" "on"
Option "AllowGLXWithComposite" "on"
Option "no_accel" "no"
Option "no_dri" "no"

# Option "MergedFB" "off"
# Option "TexturedVideoSync" "on"
# Option "mtrr" "on"
EndSection


Luke.

warp99
April 22nd, 2008, 09:21 PM
Hi,

I've installed Hardy on my machine and have got the machine working to a point where the 3D desktop works. This is very nice and I'd like to use it all the time if possible, but when trying out an OpenGL application or playing a movie there is massive flickering, the other windows are fighting with the GL layer.

Is anyone else having this problem?

$ uname -a
Linux rogue 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux

My graphics card is a PCIe ATi X1950XT on a ASUS P5B motherboard.

Luke.

In you xorg.conf change:
Option "VideoOverlay"
from "off" to "on" which should stop the flickering. You may have to change some of the other options per the ATI configuration guidelines:

http://ati.amd.com/products/catalyst/linux.html

Lucretia9
April 23rd, 2008, 10:08 AM
In you xorg.conf change:
Option "VideoOverlay"
from "off" to "on" which should stop the flickering. You may have to change some of the other options per the ATI configuration guidelines:


I changed that option, but I still get flickering.


http://ati.amd.com/products/catalyst/linux.html

I can't find anything relating to any xorg.conf options in that link or anywhere on ATi's site.

I found the following in my Xorg.0.log:


(WW) fglrx(0): Option "RenderAccel" is not used
(WW) fglrx(0): Option "AllowGLXWithComposite" is not used


Thanks,
Luke.

warp99
April 23rd, 2008, 12:08 PM
I changed that option, but I still get flickering.



I can't find anything relating to any xorg.conf options in that link or anywhere on ATi's site.

I found the following in my Xorg.0.log:


(WW) fglrx(0): Option "RenderAccel" is not used
(WW) fglrx(0): Option "AllowGLXWithComposite" is not used


Thanks,
Luke.

You don't need all of those options lines in your xorg.conf file since many of them are enabled by default, plus there is most likely a conflict between some of them.

Your xorg.conf device section for the fglrx driver should look something like this:
Section "Device"
Identifier "ATI Technologies Inc RV350 AR [Radeon 9600]"
Driver "fglrx"
Option "PseudoColorVisuals" "off"
Option "OpenGLOverlay" "off"
Option "VideoOverlay" "on"
BusID "PCI:1:0:0"
EndSection

ATI must have changed their site after the AMD takeover so the configuration parameter files are not there. Anyway the options configuration is documented here with the aticonfig program:

http://wiki.cchtml.com/index.php/Aticonfighelp

and here is a troubleshooting guide for the fglrx drivers that should be helpful:

http://wiki.cchtml.com/index.php/Troubleshooting

Lucretia9
April 23rd, 2008, 12:32 PM
It seems the flickering is a problem with the DRI implementation and won't be fixed until DRI2 is available.

Luke.

Wynne G Oldman
April 24th, 2008, 08:11 AM
I have the same flickering problems with screensavers and Google Earth on my Thinkpad, which has an ATI X1400 graphics adapter in it. Works fine on my desktop machine though, that's got a Nvidia Geforce 7300LE in it.

soxs
April 24th, 2008, 04:31 PM
@ Lucretia9: You have 2 device, monitor & screen sections in your xorg.conf. Get rid of one set.

Lucretia9
April 25th, 2008, 11:15 AM
@ Lucretia9: You have 2 device, monitor & screen sections in your xorg.conf. Get rid of one set.

It's a dual monitor card, but 1 is not in use. I will comment one out, but I can't see that fixing anything.

Luke.

soxs
April 25th, 2008, 11:28 AM
Multimonitor is not bugfree, not at all.

ASULutzy
April 25th, 2008, 05:49 PM
So of course you can always switch to Metacity, but one work around I have found is turning on non-redirect full screen windows in compiz settings.

That will eliminate any flickering you'd have while in full screen.

mattmattmatt15
April 25th, 2008, 11:24 PM
I don't think the problem is with the official ATI Drivers. I believe it is a bug in Compiz (I could be wrong). Goto System>preferences>appearance, and visual affects. Change it to none. Fixed it for me.

Wynne G Oldman
April 26th, 2008, 07:24 PM
I don't think the problem is with the official ATI Drivers. I believe it is a bug in Compiz (I could be wrong). Goto System>preferences>appearance, and visual affects. Change it to none. Fixed it for me.I totally agree! I just tried the same thing and there's no more flickering. Looking on the bright side, my Thinkpad wouldn't work at all with previous versions of Ubuntu. It's great that we're seeing some progress with ATI graphics adapters.

st0nedpenguin
April 27th, 2008, 01:27 AM
I resorted to taking a performance hit and sticking with the open source driver out of the box.

It's one of the perks of having a rusty old X800 I guess, at least the open source driver has 3d support.

bestguy
April 27th, 2008, 07:56 AM
Multimonitor is not bugfree, not at all.

Yep .. at this time and with the 8.4 Ati driver theres no OpenGL support when running Dual Screen with Xinerama oder else.

Dont know if its a hardy problem or Ati.

I switch to single Monitor to enable OpenGL again.

Anurag_panda
April 27th, 2008, 08:20 AM
Hi,

I've installed Hardy on my machine and have got the machine working to a point where the 3D desktop works. This is very nice and I'd like to use it all the time if possible, but when trying out an OpenGL application or playing a movie there is massive flickering, the other windows are fighting with the GL layer.

Is anyone else having this problem?

$ uname -a
Linux rogue 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux

My graphics card is a PCIe ATi X1950XT on a ASUS P5B motherboard.

Luke.

I did solve the problem by installing xserver-xgl and it did stop the flickering and it played movies fine without flickering but whenever I tried to run an openGL app like glxgears my X would crash, it also crashed with any openGL game like Chromium, etc :-(
I finally gave up reinstated xserver-xorg and installed compiz again, but got back to square one and now I'm forced to use Metacity which solved the problem.
I use Ubuntu Gutsy, by the way.

ASULutzy
April 27th, 2008, 02:49 PM
My fix does work, but it'll only work for full screen.

Click system, preferences, then whatever your compiz control settings manager is listed as (the thing that lets you play with all the compiz stuff, mine is different because using compiz-git)

Then go to general options, on the general tab you'll see an option called unredirect fullscreen windows. Check that.

Now whenever you run a 3d game, just run it full screen and you won't have any flickering.

If this isn't a good solution for you, install compiz fusion icon. This will let you easily switch back and forth from compiz to metacity with just a mouseclick.

mattmattmatt15
April 27th, 2008, 04:11 PM
found a thread that explains the problem, ATI drivers do not support dri2, so it causes problems when compiz and an opengl app is open at the same time. There is no fix at the time.

http://forum.compiz-fusion.org/showthread.php?t=7045

alexei.colin
May 10th, 2008, 01:48 AM
Then go to general options, on the general tab you'll see an option called unredirect fullscreen windows. Check that.

Now whenever you run a 3d game, just run it full screen and you won't have any flickering.


Awesome! Worked. No more pixelated DVDs and can play them in Compiz!

Let me add, if Unredirect Fullscreen Windows has a checkmark next to it, but you still have the problem, then uncheck, run and exit some OpenGL app, go back to Compiz settings and check the box back. In my case the OpenGL flickering was gone after this. Hope this helps someone.

ASULutzy
May 10th, 2008, 03:50 AM
Awesome! Worked. No more pixelated DVDs and can play them in Compiz!

Let me add, if Unredirect Fullscreen Windows has a checkmark next to it, but you still have the problem, then uncheck, run and exit some OpenGL app, go back to Compiz settings and check the box back. In my case the OpenGL flickering was gone after this. Hope this helps someone.

Yea, I think it's weird... I find solutions on the forums on incredibly impossible things, but it took me forever to dig up this simple fix lol

joegiampaoli
June 22nd, 2008, 07:50 PM
It's all due to the new xorg.conf, I have Nvidia card, I can't play most of the gl games nor my son, it just gives me refresh rate errors forcing me to force log-out. At the moment there is no fix and to tell you the truth I don't know when, This bug is a MAJOR bug, I can't believe they put so much experimental things that are so buggy on a LTS version of ubuntu and release it. I was waiting for this release with a lot of great expectances but it just has been error after error.

crosswalker21
July 14th, 2008, 10:27 AM
I have this problem as well on my ATI x1200 chipset. the unredirect full-screen windows works fine, but for non-fullscreen windows the following might be of use:

Open up CCSM (compizconfig-settings-manager from terminal, or "Advanced Desktop effects Settings" from the System->Preferences Menu) and click the "Extra WM Actions" plugin.
Set up a keyboard shortcut for the "Toggle Redirect" option (make sure that the plugin is enabled via. the checkbox on the left side of the screen)
Whenever you find a flickering window, hit that keyboard shortcut and it will stop flickering.


One caveat: In most apps (all that I've tried) this will keep window menus from opening (alternatively, menus might open but the window starts flickering again). Apparently compiz doesn't like to render "normal" and composited windows at the same time. If you need to access menus, you'll need to hit the key combo again and deal with flickering for a bit.