Mythbuntu: Screen corruption, Distorted Audio, Resolutions, Fun

This week I began putting together a linux based media center system to replace the DVR using Mythbuntu 8.04 and running MythTV.  Well let the fun begin.  Here’s a listing of gear:

Elitegroup A780GM-A with ATI HD-3200 On-board
AMD A64 X2 4400+ 2.30GHz
2GB Ram
500GB HD
pcHDTV HD-5500 Capture Card (MythTV Wiki)
Mythbuntu 8.04
Cable service provided by Wow Internet and Cable in Schaumburg, IL.

First off, this project is not for the faint of heart.  Get your trial and error shoes on cause it takes a lot of patience to get this working, but it looks so freaking cool.

First problem was getting the right ATI drivers installed with the fglrx driver.  I had success in using version 8.9 of Catalyst and installing is using this guide.  The system still doesn’t like me if both the D-SUB and HDMI connectors are both connected and active at the same time, so I would say pick your preference there.

Getting the display functioning correctly was just the first piece of the pie.  Next, when mythfrontend would load, the screen would be completely distored, pixelated, and a mosiac that was indistinguishable.  Some people worked around this by running mythfrontend setting the –geometry attribute to 1 pixel less than their screen resolution, but this didn’t satisfy me as it ran Myth in a window and not full screen.  With the tip from Robert Barnes on this messageboard, I discovered that if I set a particular environmental variable before running mythfrontend, everthing would look great.  I took it one step farther and now everything is working great.  Here’s the step by step:

sudo apt-get install gedit
sudo gedit /etc/X11/xorg.conf

Add the following to the “Devices” section (Don’t know if this step really changed anything):

Option "TexturedVideo" "on"

Save and close.

sudo gedit /usr/bin/mythfrontend

Insert the following lines at the top of the document:

# Fix for ATI Drivers
export LIBGL_ALWAYS_INDIRECT=true

Save and exit.  Attempt to run Myth by going to Applications > Multimedia > MythTV FrontEnd

This got me up and going and it fixes having issues upon reboot.

I did have distorted audio which was resolved thanks to my buddy Nathan changing my audio output device from /dev/dsp to /dev/dsp1.

As it stands now, I’m not fully up and going as I can only get my standard definition us-cable-irc channels working and I’m not getting audio over HDMI working yet…but we’re on our way.  Feel free to post any tips/tricks you have learned if you have a similar setup.

Find this useful? Take just a moment and give a $1. Thanks!
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
  • http://www.ugauga.ro Dino

    Man you saved my life. After I’ve enabled the restricted drivers the myth screen was corrupted/ distorted.

    I did exactly what you said and it worked perfectly

    AMD64 X2 4800
    2 GB RAM
    ATI HD2600 XT
    WinFast 2000 XP tv tuner

    [Reply]

  • michael

    thanks, i had the same problem, but now my sound doesn’t work.
    if i use alsamixer and crank everything up to the max volume, i can hear audio through the headphone jack, but nothing through the digital (spdif) output.
    how did you swap sound devices?

    [Reply]

  • justme

    Perfect fix. I just got the same board and wanted to use it as a workstation + myth frontend.

    [Reply]

  • nimbus

    I have the same configuration with Mythbuntu 9.0.4. I do not get audio over HDMI at all. I get it over the regular headphone jack. How did you swap sound devices?

    [Reply]

  • nimbus

    I figured out how to swap sound devices. In the Ubuntu/Mythbuntu desktop, type ALT-F2. This brings up a popup where you can type “gnome-sound-properties” where you can swap the sound devices. You can also type “gnome-volume-control” which allows you to adjust the volume settings for all devices. All are enabled and set to highest volume. Still no audio over HDMI. :-(

    [Reply]

    Sators reply on February 4th, 2010:

    Nice! Good find. Bummer you don’t have progress though…keep me posted!

    [Reply]

  • Matt Bushell

    Thankyou! The menus would never redraw after existing a video, all solved by the # Fix for ATI Drivers

    export LIBGL_ALWAYS_INDIRECT=true

    [Reply]