Ubuntu Hardy Issues with Fglrx Xine crashes and blocky VLC…

 Update:

I thought the flickering problem was fixed, but there is a caveat. With Compiz watching videos under VLC and Xine the video flickers, but under SMPlayer, using X11 output the flicker is gone. The X11 output is the same quality as the XVideo or OpenGL output of other players; although, I would presume it takes more resources.

After upgrading to Ubuntu Hardy Xine crashed with two nasty errors: X Error of failed request… and option glx-shm does not exist. In addition to this, VLC output was blocky and I could not force VLC to work correctly with OpenGL simply changing the output method to OpenGL would crash VLC on startup. This is probably an issue users of modern ATi graphics cards will have, as the drivers aren’t really all that.

So here’s how to get Ubuntu Hardy video output sorted and have Compiz running too; as unlike Gutsy, Hardy does not fall foul of the ‘flickering video’ in Compiz. I know many people have issues with video under Compiz when using Fglrx, so this may help those people.

First, you should install Envy-Ng — you will need to configure Synaptic to use the Multiverse repository to install Envy-Ng– and let it sort out your graphics cards drivers. This program will keep your drivers uptodate and sort out your xorg.config for you. Use Envy-Ng to install the latest drivers for your card (at current Envy will install version 8-3.)You should then restart the X-Server (Ctrl-Alt-Backspace.)

Next up you will need to sort out your Xorg to run XVideo, without it being so blocky. This is due to Envy not setting the options for XVideo correctly. Open up xorg.conf with the following command in the terminal: sudo /etc/X11/xorg.conf

Now change the section “Device” to have TexturedVideoSync, TexturedVideo, and VideoOverlay on and have OpenGLOverlay off. The section should look as follows:

Section “Device”
Identifier    “aticonfig-Device[0]”
Driver        “fglrx”
Option        “TexturedVideoSync”    “on”
Option         “TexturedVideo” “on”
Option        “VideoOverlay”    “on”
Option        “OpenGLOverlay”    “off”
EndSection

You may want to check the following sections, with the following setting I get Compiz effects with no flickering video.

Section “ServerFlags”
Option        “AIGLX”    “true”
EndSection

Section “DRI”
Group        “video”
Mode    0666
EndSection

Section “Extensions”
Option        “RENDER”    “Enable”
Option        “DAMAGE”    “Enable”
Option        “XVideo”    “Enable”
Option        “Composite”    “Enable”
EndSection







4 Responses to 'Ubuntu Hardy Issues with Fglrx Xine crashes and blocky VLC…'

  1. online bingo - May 20th, 2008 at 1:10 am

    A very good post. Certainly help to clarify a few matters here..

  2. zohai - May 20th, 2008 at 2:54 pm

    Haha! Nice find! I used to have this problem with VLC as well but it only happens when the Compiz effects are running right? Have fun fine tuning your Hardy =) I missed those times.

  3. The Collector - May 20th, 2008 at 7:40 pm

    Thanks for the article.I’ve been experencing the same problem.

  4. Make Money Paypal - May 22nd, 2008 at 9:26 am

    thanks for the Envy-ng
    i was headache to find this
    nice article. thanks


Leave a Reply