Finally, It Works

Since I got back into the MythTV project a few days ago, I’ve scarcely come up for air. It’s been a long, winding and especially rocky road, but we’re finally reaping some of the fruits of those labours.

The good news is that our MythTV box now basically works, which is to say that we can record and watch programmes, both from live TV and previously scheduled recordings.

On the other hand, although I’ve put a lot of work into the system already, I still have quite a way to go before it becomes really useful. For example, only one TV tuner is active and it’s receiving analogue cable input. This means a lot of our favourite channels, such as BBC3, BBC4, BBC Prime and the Travel Channel are missing from the feed. Furthermore, the coaxial input providing the analogue signal is chained through a couple of other devices before it gets to the MythTV box, so the signal quality suffers. Most of all, though, the poor quality is down to the TV cards, which, truthfully, just aren’t that great.

To get things up and working as quickly as possible, I followed the excellent HOWTO put together by Jarod Wilson. It’s a little out of date and some of the information is no longer accurate, but that didn’t cause any major headaches.

I bought a second tuner card a couple of days ago, a PVR-500, with the intention of making this a triple tuner box (the PVR-500 has two tuner inputs), but this particular card turned out to have the latest Samsung chipset on it, which won’t be supported for a little while yet. Even if I had the patience to wait, I don’t want to have to update the kernel or the ivtv drivers, since these are fragile software components that currently work. Messing with them is just asking for trouble.

So, I took the PVR-500 back to the shop yesterday and exchanged it for a second PVR-350. It’s only a single tuner card, but the chipset is well known and superbly supported by Linux. Besides, two tuners should be plenty in practice.

The idea behind the second tuner is that it will receive its input from our digital cable box, enabling us to record in higher quality and, more importantly, record from the channels that are absent from the standard analogue cable package. I’ll be working on getting that part working in the coming days. The hardest part will be trying to get an IR blaster to change the channel on the digital cable box, since that brainless thing has no serial port or other civilised way to externally control it.

In fact, not only is the cable box missing useful inputs, it only has SCART outputs, which is a problem, because the PVR-350 wants either coax or S-Video + a 3.5 mm stereo jack for the input. I bought a lead today that gives SCART to S-Video + 2 RCA phono jacks, plus an adapter to convert the two RCA plugs to a single 3.5 mm stereo jack. It’s not ideal, but beggars can’t be choosers.

The hardest thing to figure out so far has been the really poor picture quality coming out of the PVR-350. I couldn’t understand why the MythTV menus looked great, but the TV picture showed lots of discolouration and wavy lines. In the end, it turned out that MythTV’s channel scanner is buggy: it doesn’t fine-tune the channels it finds, so if you look at the frequency that each channel has been tuned to and compare that to the one given in UPC’s table of channel frequencies for the Amsterdam cable network, you see that the tuning is off my a few hundred kilohertz every time; enough to really screw up the picture. The solution is thus to enter each channel’s frequency by hand from this table.

Even after fixing that, though, the picture is nothing to write home about, certainly when you’ve become accustomed to digital cable; and one of the PVR-350s suffers significantly worse from interference than the other. I played around with both cards, swapping them from one PCI slot to another to ascertain whether this was truly the case, and it is.

Another annoying problem was having an off-centre picture, with the left and bottom edges of the picture running off the screen. I’m not using a normal video card at all, having instead opted to set up a frame buffer and an X server for the PVR-350’s TV-Out. This allows the card”s hardware-based video decoder to be used for playback, which reduces the load on the main CPU. I’d actually like to remove the nVIDIA video card altogether, as it was needed only for installing the operating system, but the system won’t boot without a card in the AGP slot.

Anyway, the off-centre picture problem was puzzling. I was using a perfect X modeline for a PAL television’s 720×576 resolution, so that couldn’t be it. Eventually, I mostly fixed the problem by telling MythTV to run its GUI in a window rather than full screen, and to offset the window.

In the coming days, I’ll be trying to make a number of improvements to the system. Most importantly, we need to be able to record from the digital cable box. The remote control also needs some minor tuning, as its current configuration is not all that intuitive. Also on the list is the housing of the system. It has a VFD display, which currently displays the unwavering message “Welcome to HTPC”. Ideally, I’d like that to display details of what’s currently being viewed or recorded, but it remains to be seen to what extent I can drive that device in Linux, which connects internally to the motherboard via USB.

Apart from that, both Sarah and I need to become more familiar with the system, as it’s a bit rough around the edges and doesn’t come with a manual as such, just the Installing and Using MythTV document. There are a lot of complicated settings that I currently don’t understand, so I’m leaving them well alone.

But there you have it. Some six months later than originally envisaged, our MythTV box is finally a reality, which is very pleasing, indeed. We even have MythWeb running, so we can use a Web browser to schedule the recording of programmes: handy when you’re away on holiday and hear about a great programme you’d like to see.

This will be an ongoing project, though. There have been a couple of kernel oopses, hangs during channel scanning and strange video freezes, which all need to be cleared up if the system is to truly become a useful appliance, rather than just an interesting hobby project. It’s certainly a lot of fun to play with, though.

Posted in Technology | Leave a comment

yum install mythtv-suite

Thank you, Peter, for inspiring me to pick up where I left off with my MythTV project all those months ago.

I’d got so sick of failing and unpredictable hardware (as well as my own hamfistedness) that I’d shelved the project in disgust. Every time I’d remembered the pile of wasted hardware in the upstairs room, I would quickly try to forget about it once more.

That would have been a great shame, not to mention a huge waste of money, so I’m glad Peter persuaded me to look into it again. He messed with the hardware and localised one of the problems that had been dogging me: a dodgy power socket on the power-supply unit. It hadn’t been obvious to me, because it was providing power; just not reliably.

Peter had wanted to do more on the box the other day, but I wasn’t keen. I just wasn’t in the mood. Besides, thinking I was now past the worst of the hardware problems (and, more importantly, over the psychological hurdle of feeling ill every time I thought of the frustration the project had caused me earlier in the year), I reasoned that I would now soon feel the urge to go further on my own.

Well, that moment came last night. I mounted the floppy drive in its metal casing and screwed the DVD recorder back into its mount; then I seated and screwed those back into place in the case. Finally, I took my wireless LAN card out of my workstation and, along with the TV tuner card, inserted it into the new box.

Of course, all that disturbance inside the case caused the machine not to boot again, so I spent another frustrating couple of hours tracing the problem. I finally realised that not one, but two connectors on the power supply are dysfunctional. This made troubleshooting an order of magnitude harder, because as I unplugged things and tried reconnecting using different sockets, not one but sometimes two things would suddenly start or stop working.

Anyway, I now have all of the hardware working, but I have no spare power connectors left and there’s every possibility the entire power-supply unit will fail at some point, necessitating replacement. Nevertheless, to be this far along with the hardware is great.

And so I was able to install the operating system. Peter and I had done that once already when he got the box working, but I decided to reinstall it last night with fewer packages. I also opted to use JFS instead of XFS for the main /video file-system.

The system is now up and running, and fully updated to the latest errata packages. That allowed me to run yum to install the complete set of MythTV packages, which added a further hundred packages to the system. I’m glad I didn’t have to manually chase down and satisfy that dependency chain.

The work on configuring the TV card now begins. Watch this space.

Posted in Technology | Leave a comment

Jungle Gardenia

The gardeners came this morning to tackle our jungle. Two men spent four hours, pruning, raking, mowing and lugging bin-liners full of organic refuse. Although it looks a lot more tidy now, the grass is now looking quite yellow, so I think it’s going to take a few weeks to a couple of months to get it looking nice again.

We viewed a house today. We’re not really thinking about moving, but the opportunity arose to see a very large and interesting house in our neighbourhood, so we thought we should go and have a look at it. I liked it more than Sarah did, but neither of us fell in love with it, so I’m happy to say that we don’t have to start the emotional process of seriously considering purchasing it.

It’s quiet in the house again, with Chantal and Peter having gone back to Zürich. The next time we see them, they’ll be in Australia, which means we will be, too. With Peter, Chantal, Bas and Kylie heading to Australia to live, plus our friends Allan and Kyleigh in New Zealand, next year is looking favourite for a long, drawn-out trip to the Antipodes.

Posted in House | Leave a comment

Wet, Wet, Wet

I finally got around to upgrading our server to FC5 this evening, so we’re now running Apache 2.2 and other goodies. The laptop has been brought up to date, too, leaving only the workstation upstairs still to be done.

Peter and I dug out my ill-fated MythTV hardware earlier this week and spent some time on it. There are definitely some hardware problems, but we managed to work around them, cannibalising a video card from another machine and discovering a dead connector on the power-supply unit.

That box is now also running FC5, but the Netgear WG311 802.11b card I bought for it has a revision 3 chipset, which isn’t supported by Linux. I’m going to have to pull the three year old PCI wireless card out of my workstation and use that in the MythTV box, but at least that will save me from having to purchase any more hardware; that box has been expensive enough already.

What else have we done lately? Well, the car’s back bumper has been repaired. It was an expensive repair, involving the complete replacement of the bumper and a respray of the side panels, but the car’s looking as good as new again now, with the colour apparently having been perfectly matched.

The boiler downstairs saw its first maintenance in many years earlier this week, probably even its first since being fitted. That fixed the problem of the hallway radiator getting hot even when the heating was turned off, which was a very irritating manifestation, especially on a hot summer day.

Tomorrow, a gardener arrives to take care of our burgeoning jungle and, later in the week, we’ll be having some gauze blinds fitted, which will allow us to keep the kitchen and dining-room doors open, without fear of Eloïse crawling outside or insects flying inside.

Speaking of those doors, the deluge of rain today revealed some minor leaks in the seal of the kitchen door. There’s another one in the skylight of the guest bathroom. Sigh… More maintenance to have done.

Finally, the bureaucracy factory is firing up again. It’s time to renew Sarah’s residence permit, which looks like it’s going to be quite a bit of work again, as I must once more prove that I can keep Sarah in the style to which she has become accustomed. More photocopies of bank statements, passport pages, etc., etc. will be winging their way to the IND any day now.

Posted in Life | Leave a comment

Something For The Weekend

Eloïse went to the consultatiebureau today. She now weighs 10 kilos exactly, which means she’s putting on weight nicely.

I was planning to go with Sarah, but we had a bloke coming to look at the boiler and he changed the appointment time, so I had to stay at home to deal with him.

A different bloke, one from a gardening company, also popped around today to size up our garden. In our recent absence, the place has turned into a jungle, so it’s nice to have someone sorted out to tackle it a couple of weeks from now.

Sofia, our cleaner, was here today, too, so the house is now looking spick and span, ready to receive our next set of guests, Peter and Chantal, who will arrive Saturday afternoon. Both Sarah and I are looking forward to that very much.

I shared an office at Google in Mountain View with Peter for several years, so he occupies a very special place in my memories of my time at Google. It will be nice to catch up with him and drink loads of coffee, a substance that Peter and I both feel strongly about, although he more than I. It will be nice for Sarah, too, to have another American woman to talk to.

The weather forecast doesn’t look all that good for the period that they’re here. Hopefully things will clear up a bit by the weekend. After two heatwaves, the summer really does appear to be over for this year. The mercury barely creeps up to 20°C each day and the sky is permanently overcast, if not pouring with rain. Why is the temperature seemingly always < 20°C or > 30°C? What’s wrong with that middle ground?

We had a handyman fit a latch to the guest-bedroom door a few days ago. Why there wasn’t a latch there to begin with is a mystery to me, but there wasn’t. I’m sure Peter, Chantal and our other future guests will appreciate being able to close their door now.

What else? Well, Sarah finally has that elusive SoFi-nummer (national insurance number) in her hands. Almost a year to the day since moving here, she now has the magic piece of data that provides her with fiscal legitimacy and the dubious privilege of being able to pay Dutch taxes. Obtaining that number was on my original to-do list of things to do in the first week after our arrival, but it was dependent on her residence permit, which turned into a long and drawn-out story. Anyway, the number is hers now.

We finally hung up our oil-painting in the sitting-room this afternoon. Well, more accurately and fairly, an acquaintance of ours, Gerard, hung it up for us. It really adds a touch of style and class to that room, which made me realise all the more strongly that the rest of the house needs similar touches. We just still haven’t put our stamp on this place yet.

I’ve been looking at wristwatches for the last few months. The odd thing is that I haven’t worn a watch since 2000, when the cheap timepiece I was wearing fell off somewhere in Ottawa. I tried living without one to see how easily I could cope and was delighted to find that I didn’t miss it at all, apart from the sentimental value that it had. Oddly, I can now no longer remember the slightest detail of that watch.

Anyway, about six months ago, I felt the vaguest of urges to start wearing a watch again. This is decidedly peculiar, since there has never been an period in my life in which time has played less of a role. I don’t have much of a schedule to keep these days, seldom needing to be anywhere at any given time. Indeed, it scarcely matters what day of the week it is, never mind the time.

A few months have passed since then and now I find myself wanting to have a watch again. Sarah is always asking me the time when Eloïse falls asleep, as her regular sleeping patterns translate into a peaceful life for us when we are mindful and respectful of them, and it’s tedious to keep pulling my mobille phone out of its holster.

So, whilst the desire for a new wristwatch is quite strong now, it has as much to do with wanting to carry around a small work of art and piece of technical ingenuity as it does with wanting to know the time at any given moment. I’m close to settling on a brand and model at this point. More on the subject when I do.

I’ve also been busy with new releases of Ruby/LDAP and Ruby/Amazon since we’ve been back. These two projects are now at version 0.9.7 and 0.9.2, respectively. It’s good to keep my hand in with some form of programming, since my sysadmin/programmer skills are otherwise completely languishing.

Finally, the tedious process of importing, rotating and captioning photos has been going on in earnest behind the scenes. We hope to be able to reveal the snaps from our recent trip through Central Europe within a few days.

Posted in House | Leave a comment