A Django site.
May 29, 2008

Hans Fugal
no nic
The Fugue :
» XvMC

I bought an MSI NX6200AX-TD256H D2 video card (It's an NVIDIA GeForce 6200 256MB 8x AGP card) to drive the MythTV frontend, since MythTV can't manage to play even the most modest content using my trusty old Radeon 7000 (MythTV doesn't support VIDIX, only XVideo). I hoped that the upgrade would allow me to watch live HD television, which means XvMC.

Before I go any further, the other relevant stats: the computer I'm using (for the purposes of this post, anyway) is an 64-bit AMD Athlon 2800+ running 32-bit Ubuntu 8.04. The motherboard is a VIA K8T800. I'm actually using TwinView to share the Desktop computer with MythTV, but I tested everything with a single-screen (the CRT) to avoid confounding, and using TwinView doesn't seem to make a difference one way or the other.

All the normal stuff works great, but XvMC does not though it should. Whenever I try to use XvMC, the client (mythfrontend or mplayer, for example) freezes up and must be killed. I tried all the standard tweaks that Google could suggest: enable/disable sync on vblank, enable/disable OpenGL vsync, various xorg.conf settings. I tried just about everything I could think of and then some, and the only thing to make any difference at all is this setting in xorg.conf:

Option "NVAGP" "0"

That is, I disabled AGP. When I do this, XvMC works as it should. After a little research, it perhaps shouldn't be too surprising that AGP is the problem on a VIA motherboard. At least it's a lead.

Interestingly, when I downgraded the driver from the latest (173.14.05) to the newer legacy driver (96.43.05), XvMC works fine with AGP enabled. As one would expect, it outperforms the newer driver with AGP disabled. Here's a performance table:

               (% CPU when playing SD/HD in MythTV)
Driver                       Xv     Xv+linear    XvMC+bob
173.14.05 (AGP disabled)  20/100+    30/100+      12/60+ (OSD is too much)
96.43.05                  20/100+    30/100+       8/45

There's a few caveats to XvMC, either way I get it to work. When deinterlacing is on, the OSD gets deinterlaced too. This isn't a pretty sight, though it's functional. The OSD is always grayscale, in spite of setting XvmcUsesTextures to false in xorg.conf and choosing chromakey. But that doesn't bother me much, I don't much like the color schemes of the OSD themes I've seen.

I have one more straw to grasp before I consign myself to using the legacy driver (which I may do if it runs FlightGear and X-Plane ok) or crossing my fingers for a fixed driver before the Olympics (I intend to submit a bug report). I'm going to try poking around with AGP driving strength settings in the BIOS. I tried 0xEA and X wouldn't start at all, but with the same symptoms I get with XvMC. That hints at the same cause, so maybe with some kind of binary search I can stumble on a compatible setting.

So in conclusion, I'm going to try using the legacy driver even though my card is supported by the newer driver, and for OSD reasons only use XvMC for HD.

May 10, 2008
» Compiz-Check and EnvyNG Configuration Tips : Ubuntu 8.04

I was looking at some of the most popular posts on my blog, as reported by my awstats installation, and I noticed that one of the most popular is a post outlining common keyboard shortcuts for Compiz-Fusion on Ubuntu 7.10.  Apparently everybody loves their eye-candy!

I thought, now that Ubuntu 8.04 “Hardy” is released, I’d update the basic configuration suggestions and hopefully help a few more of you get your bling-on.

The Compiz-Check Script

Recently I saw a post over at Forlong’s Blog releasing a script that will check your hardware in regards to Compiz support.  From the article:

Compiz-Check is a script to test if Compiz is able to run on your system/setup and if not, it will tell you the reason why.

If you’ve had issues with Compiz support in the past I’d suggest running this script and pay attention to the output towards reasons why it appears to be unsupported.  In some cases it is simply a matter of poor hardware.  In other cases its only a matter of software changes, and may help you get things going.

To download and run the script:

wget http://blogage.de/files/3729/download -O compiz-check

chmod +x compiz-check

./compiz-check

If everything comes out as “OK” you should be able to activate Compiz as seen in the Compiz configuration instructions.

Driver Support With Envy

Another very useful tool I’ve found is the Envy tool, which will install required non-free driver support for nvidia or ATI cards for you.  I’ll admit that I’ve only used this occasionally, considering I have intel graphics cards on my main laptops, but in the situations where I have needed it things have worked great.

If you are using Ubuntu 8.04 “Hardy” you can try the newer EnvyNG, which is available in the universe repository.  How to install EnvyNG on Ubuntu 8.04.

If you are still using a previous version of Ubuntu you can try the legacy version of Envy, instructions here.

Are there any other common tips that I’ve missed?  If you know of any other great resources for Compiz support tests, nvidia or ATI driver installation, or basic Compiz tweaks please comment and share with the rest of us.

Related

March 23, 2008

Doran Barton
fozzmoo
Fozzolog
» New laptop: Dell Latitude D830

Yesterday, my new laptop arrived. KnowledgeBlue purchased it for me as my HP Pavilion ZV5000Z was about three years old and was starting to show its age. KnowledgeBlue has standardized on Dell as its hardware supplier and, while I don't care for their desktop machines at all and I'm okay with their servers, I really had no clue what to think about their laptops.

What is nice about Dell is they have a line of Open Source laptops. These laptops have been certified as being friendly with open source operating systems like Linux and are available for purchase without a pre-installed operating system (the laptop does come with FreeDOS installation media).

HP also offers FreeDOS as an operating system option on many of its Business laptops for those people looking to run an open source operating system or simply avoid paying HP for a preinstalled Microsoft product.

So, anyway, I got a customized Dell Latitude D830. Here are some of the features:

  • Intel Core2 Duo CPU T7700 @ 2.40GHz
  • 2GB RAM
  • 120GB hard drive (w/ free fall sensor)
  • DVD burner
  • 9-Cell battery
  • NVidia Quadro NVS 140M (256MB)
  • 1920x1200 widescreen LCD panel
  • Intel 3945 802.11a/g wireless

Let me just say I am impressed. So far, this laptop has been nothing but awesome. The screen is absolutely beautiful. Most impressive is the fact all the hardware seems to just work in Linux. After all the hurdles I had to jump to get my previous laptop working with Linux, this was a paradisical experience.

I did a network install of Fedora 8 after booting from a CD burned from the distribution boot.iso. The software properly configured the video card to use the open source nv driver and accurately identified the characteristics of the display panel. Sound worked fine right out of the box. I was worried about wireless networking and was prepared to install a third-party driver from a site like Livna or FreshRPMS, but when I enabled NetworkManager, it just worked! I could scan for wireless networks (it saw more than my Atheros card ever did) and connected to my home network (encrypted with WPA2) with no problems at all.

One thing I do like about my HP laptop is the ability to disable the trackpad so that when I'm using a USB mouse, I don't have to worry about brushing against the trackpad while I'm typing. Speaking of pointing devices, the D830 has taken a cue from IBM/Lenovo and provides both a trackpad and a eraser-point stick thingie with a second set of left and right buttons.

One thing that has been a bit of a concern is the sound card. Maybe I need to dig deeper, but the mixer support seems really weak. The only controllable channels I've seen in my mixer is PCM and Front. From what I've seen so far, the headphone jack is not independently controllable (it is on my HP) and I haven't seen channels for Line In or Microphone.

Battery life seems good. I haven't timed it yet, but I think I'm getting about 2-3 hours off a single charge and I haven't really tried any power saving settings. I know the Intel chipset offers a lot of options in that department.

I haven't tried any kind of suspend or sleep stuff yet. I'll have to report my findings about that in a later post.