It's Just this Little Chromium Switch Here

Weblogging and commentary by Chip Rosenthal

Setting up Function Keys for a Linux Media PC

Dell wireless keyboard and mouseI am using a Dell wireless keyboard for the home media PC that I am building. After so many difficulties setting up the system, it's nice to report a small success: I got the multimedia keys on the keyboard programmed.

RF wireless is great: I can control the computer from the couch. The wireless base receiver plugs into USB and Linux boots fine. I did have to relocate the receiver outside the equipment cabinet. All those metal boxes must have blocked the radio signal from getting through.

Video Connections Made Confusing

video connectorsVideo connections sure are confusing. I have a degree in electrical engineering from an Ivy League institution, and I'm befuddled by it all. I feel sorry for you mere mortals out there.

I'm building a media PC from scratch, and I'm trying to get a good video display. Mind you, at this point, I'm not trying to play video media. I'm just trying to wring the fuzzies out of the display when I run the music player or web browser.

The computer has VGA, S-Video, and DVI video outputs. The television has composite, S-Video, component video, and HDMI inputs. You'd think that with all those choices, there would be some way to insert tab A into slot B and make it all work.

The first and obvious choice is S-Video–both units have that. In fact, as I reported in that prior article, S-Video works. Unfortunately, it doesn't work so good. You may be surprised to learn that S-Video has the same crappy resolution as the bottom-of-the-line composite video connnector. Both do 480 interlaced scan lines, The difference is that S-Video separates out the signals so it's a crisper 480i. That means with S-Video, I'm trying to display 800x600 on 480 interlaced scan lines–no wonder it looks like crap.

I wanted to do better, but S-Video is the only connection the two had in common. The "high def quality" component video TV inputs would be ideal, but the computer doesn't have matching outputs.

After some web searches I found an adapter jig that would connect up to the DVI connector of an ATI video card and produce component video. My on-board video is ATI, so I thought this would be a shoo-in. All I needed was this one cheap adapter and it was component video all the way.

Well, not quite so fast Poindexter. When I got the adapter it wouldn't fit. That's when I learned that there isn't just one kind of DVI connector. There is DVI with digital video signals (DVI-D), analog video signals (DVI-A), and a combination of the two (DVI-I). Moreover, there are single-link and double-link DVI-D connectors (double has more pins). This adapter jig was made for a DVI-I connector, and it used the analog outputs to produce component video. My computer has a DVI-D connector with no place for the analog pins to fit into. That's why the connector wouldn't fit.

So, it was back to the drawing board. I found devices that convert DVI-D to component video, but at over a hundred bucks that didn't make sense. I thought about getting a DVI-D to HDMI cable, but they aren't cheap. Moreover, the A/V receiver I have my eye on has component video inputs but not HDMI. I really want to get component video.

I concluded there is no reasonable way to go from digital DVI to analog component video. But what if I could do analog all the way? That got me thinking: computer VGA is an analog video signal. Is there some way I could get component video from a VGA output? Unfortunately, not easily. The signals aren't compatible. VGA uses RGB (red, green, blue level) signals, while component video is YPbPr. It appears that at least some ATI adapters can be kludged to produce component video signals on the VGA connector. Even if my hardware can support that, I'm not sure if the Linux fglrx video driver can. I haven't ruled it out, but it's a longshot at best.

I'm not sure if I'm getting any closer to a solution, but I'm getting a heck of an education on video interconnections.

ASUS Pundit-R + Ubuntu Linux = Media PC

ASUS Pundit-R Booksize ComputerFedEx delivered the parts for my new media PC today. It took a few hours time (and an unplanned run to Fry's Electronics) to put it together, but now I'm ripping and playing CDs.

Here are the parts I'm using:

  • ASUS Pundit-R "booksize" barebone computer
  • Intel Celeron D 335 Prescott CPU, 533MHz FSB, 2.8GHz operating freq
  • Hitachi Deskstar T7K250 160GB SATA hard drive
  • NEC ND-3540A DVD Burner
  • two Kingston 256MB DDR400 CL3 memory modules
  • IOGEAR GWU523 USB 802.11G WiFi adapter

Linksys WRT54G: An Open Network Gateway

in

Linksys WRT54G Broadband GatewayFor years, I've used an old PC running Linux or BSD as my network gateway at home. I was, however, getting seriously tired of the space and the noise—particularly the noise—of the HP Vectra computer that served as my gateway. It was time to replace it.

I initially thought a shoebox-sized mini-ITX computer could be a nifty solution. When, however, I considered cost, that quickly became silly. The mini-ITX system would cost hundreds of dollars, while "residential broadband gateway" routers are readily available for a fraction of the price. These are devices that connect to your DSL or cable modem, and offer connections for all your network devices. Some, such as the Linksys WRT54G, even add wireless capability.

A PC-based router offers nearly infinite flexibility. When your router runs Linux, you can deploy any function that has a Linux implementation. Would I have the same flexibility with a device such as the WRT54G? I found out, surprisingly, I would.

Linux CD Ripping Performance: Surprising Results

Next week, I'm building a Linux-based media PC. I've been doing some research and planning. The first goal is to setup a digital music library. I started my research at the beginning, with CD ripping. My initial performance results were so bad, it called the whole project into question—or, at least, the decision to use Linux.

Here is a message I posted to the Austin Linux User's Group mailing list.

I'm getting ready to setup a media system, and I'm distressed at the thoroughly horrible CD ripping performance I'm seeing.

My test system is a Dell Dimension P4 2.8GHz with 512MB memory and Phillips DVD8631 (40x speed).

When ripping under Linux (Ubuntu 5.04), it takes about 25 minutes to RIP a CD. I've tried both Sound Juicer (reports about 4x performance ripping to FLAC) and cdda2wav (rip to WAV).

When I reboot the system to Windows, Apple iTunes rips the disc in about 4 minutes (reports about 30x performance).

It turns out that although ripping performance may be slow in the default Linux configuration, there are adjustments you can make such that Linux can actually rip faster than Windows.

There are two significant issues that lower Linux ripping speed. First, for stability reasons, most Linux distributions do not enable DMA for the CD drive. If your system can handle it (I think most modern systems can), then you should enable it with the hdparm command. To do so, run (as root):

# hdparm -d1 /dev/cdrom

On Debian systems, you can make this setting permanent by editing the /etc/hdparm.conf file.

The second issue is that most Linux CD ripping tools enable error checking (sometimes called "paranoia") by default, while most Windows tools do not. If you disable error checking, you will see a significant improvement in ripping performance. It's not clear that this is an advisable adjustment, but it explains part of the significant performance difference.

I ran some tests on the aforementioned Dell system to measure the effect of these various settings. I used the grip CD ripping tool and ripped to raw WAV format. The trials were all timed by the wall clock, so take the results as plus/minus a few seconds.

DMA Error Checking rip time
off on 10:18
on on 7:42
off off 3:14
on off 2:01

By comparison, when I rebooted this system into Windows XP and ripped with Windows Media Player to Windows Lossless Format, it took 2:23. (This isn't quite apples-to-apples since there was an additional encoding step under Windows, but that should have only added a few seconds at most.) This was an unexpected surprise: Linux actually outperformed Windows. I was shocked, given how poor the initial results were.

Now that I'm over this hump, the research continues. I'd like to investigate whether "error checking" is a valuable protection, or unnecessary overhead. Also, I need to determine which ripping and playing tools I want to use. A database backend would be nice. I'm pretty sure I want to rip into the lossless FLAC format. I need to verify that's going to be feasible for our CD collection.

Katrina-IT-Volunteers Mailing List is Active

A new mailing list has been setup for coordination and communication among the IT volunteers in Austin. If you are interested in participating, please consider joining the list.

You can subscribe, or get more information about the list, at: http://soaustin.net/mailman/listinfo/katrina-it-volunteers

If you are interested in being an IT volunteer, see the information at: http://www.austinfree.net/katrinavolunteer.htm

Boing Boing Considered Harmful to Shelter Residents

Although I'm finding some interesting things about the Hurricane Katrina relief effort blogged at Boing Boing (I posted one earlier today), I'm seeing some terribly misguided, distressing things too.

For instance, start with this post about the "concentration camp" setting in a Denver shelter. That striking description, however, is pulled out of context. Nobody in the shelter called it a "concentration camp." They are quoted saying things like, "real glad to be here." The "concentration camp" description comes from the reporter's displeasure at not having full access to the facility.

Well, how would you feel about the press being able to barrel into your bedroom at any time? Don't you think that might be a little damaging to your comfort and dignity? There are good reasons to manage press access in the residents' spaces.

Or take this article about the inability of some well-meaning volunteers to setup a low-power radio broadcasting facility in the Houston shelter. At this time the authorities are more concerned with moving people out of that shelter—not adding new ammenities to it—and they are doing a good job of it. News reports I saw today had the resident count down from 20,000 to 3,000.

I was listening to a disaster relief expert on the radio tonight (audio here, starting at 1:00) explaining how mass shelters are not the best solution, and instead create a lot of problems. I'd rather see officials working on moving people into better living circumstances, not building up a tent city.

The Red Cross may be a big, stupid bureaucratic organization, but they do have a little experience dealing with natural disasters. The Boing Boing crew (mostly Xeni) needs to drink a nice cup of STFU and recognize that their immense cleverness may not be what the evacuees need most right now.

Jasmina Tesanovic at Austin Convention Center

Boing Boing has posted a report by Jasmina Tesanovic on her experience in the Austin Convention Center.

This center for refugees is well-organized, compared to my ex Yugoslav experience. It has air conditioning, abundant cooked food, extremely clean bathrooms and well-behaved people. Nobody is crying, nobody looks depressed yet, nobody is even fighting...

Information center desk, youth center desk, school information desk, jobs information desk, family elder members desk, computer desk, deaf assistance desk, farmer

Katrina Relief: Fusebox Programmers Urgently Needed

There is an urgent need for Cold Fusion/Fusebox programmers to help develop automation tools to support the Austin shelter for Katrina evacuees. If you know anybody who can help, please email me at chip [at] unicom [dot] com and I will connect you with the appropriate city personnel.

Please do not distribute this notice after Friday, September 9.

Austin Linux User Group Pitches In

In the article A LUG pitches In, Austin-based tech journalist Joe Barr describes his experience—and that of other Austin Linux Group members—assisting with the IT needs at the Convention Center.

I don't think that I will ever forget the expression on the young man's face when -- after a volunteer found a match on his grandmother's name at another Red Cross site -- they were talking on the phone a minute later. It was a picture of pure joy and relief. And it wasn't the only one. I saw it happen a dozen times the second day. And that's what motivates me and hundreds of other volunteers to be a part of that.

He also discusses some of the difficulties and frustrations that volunteers are facing.