Greg's diary
March 2007
Translate this page
Select day in March 2007:
Su Mo Tu We Th Fr Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Select month:
2006 Sep Oct Nov Dec
2007 Jan Feb Mar Apr
2007 May Jun Jul Aug
Today's diary entry
Diary index
About this diary
Previous month
Next month
Greg's home page
Greg's photos
Network link stats
Greg's other links
Copyright information

Thursday, 1 March 2007 Echunga Images for 1 March 2007
Top of page
next day
last day

Autumn is finally here! It's been a long, dry summer, and the change of calendar doesn't seem to have made much difference. Hopefully we'll get more rain soon.

Woke up just before to discover that during the night we had had not one, but two power failures. The second one had already been going on long enough for my main machines to have gone down, and it continued for another 2 hours. Now the longest uptime I have is 48 days, with my brewing fridge machine, which apparently has the best relationship of UPS backup to power consumption. These continual power failures are really getting on my nerves. One good reason to have wind or solar power is that the whole house is effectively continually on UPS, and that it's the mains power supply that is the “backup”.

More work on MythTV today. This is really like pulling teeth. In the course of the day, discovered that there's something I still don't understand about attaching “inputs”. It could be my imperfect understanding of how things fit together, but at the moment it looks more like a bug to me. I had already mentioned that mythtv-setup produces a warning about incorrect channels when exiting. I was unable to get rid of it, and ended up looking at the underlying MySQL database, which showed that yes, indeed, the information in the database was incorrect. Either mythtv-setup is setting up the channels incorrectly, or the documentation is so bad that I still can't work out what's going on.

Things were not all plain sailing after that; mythfrontend still claimed that no channels were defined. In the end, did a complete scan, which added all channels in addition to those derived from the guide data. After that, I was finally able to schedule a recording, only to discover after the event:

2007-03-01 19:30:03.471 TVRec(2): HW Tuner: 2->2
2007-03-01 19:30:03.596 TVRec(2) Error: Failed to set channel to .  Reverting to kState_None
2007-03-01 19:30:03.597 TVRec(2): Changing from RecordingOnly to None
2007-03-01 19:30:03.639 Finished recording Inspector Rex "The Baby Dealers": channel 1000
2007-03-01 19:30:03.657 Started recording: Inspector Rex "The Baby Dealers": channel 1000
 on cardid 2, sourceid 1
2007-03-01 19:30:04.661 Reschedule requested for id 0.
2007-03-01 19:30:04.735 Scheduled 1 items in 0.1 = 0.00 match + 0.07 place

Clearly there's something seriously wrong somewhere. Time to revisit the database.

In the process, ran into more trouble with the new cxm driver: it failed to tune to the channels. After some experimentation, including rebooting to change to the old driver (which worked perfectly), discovered that tuning would succeed if the old driver had been run previously. Further investigation shows that the old driver, but not the new, automatically selects the tuner when you try to tune to a channel. The new driver (currently) requires the -t option to select the tuner.

Friday, 2 March 2007 Echunga Images for 2 March 2007
Top of page
previous day
next day
last day

The work on MythTV continues. Came in this morning to investigate why the recording I had set up for last night had failed. Presumably the important message was:

2007-03-01 19:30:03.596 TVRec(2) Error: Failed to set channel to .  Reverting to kState_None

That looks very much like a problem with the channel number. Further investigation in the database revealed that the programme guide had not set any channel numbers. Here a couple of channels:

| chanid | channum | freqid |      callsign     |       name        |
|   1001 |         | NULL   | ABCSA             | ABC SA            |
|   1003 |         | NULL   | CHASE             | Channel Seven     |
|   1007 | 2       | 64250  | Adding Channel 2  | Adding Channel 2  |
|   1013 | 7       | 182250 | Adding Channel 7  | Adding Channel 7  |

The first two were set up by the programme guide data; the second two, the same channels, were found by the “channel scan”, which doesn't seem to have done anything beyond including all possible channels in the table. Ended up having to use SQL to set the channel numbers and frequencies.

Things still didn't work too well, and I discovered that I had programme data only for SBS. Followed up on a message from Alex Wilkinson and installed a new guide data grabber, tv_grab_au_reg, which confuses the Ports Collection by being a single, uncompressed shell script. Spent a lot of time trying to work out how to explain that to the Ports Collection before giving up and just installing it. MythTV didn't like the change in grabber, and in the end decided it would be easier to remove (well, move aside) the database and start again. That wasn't that simple either: MythTV doesn't create the database if it doesn't exist, it just goes crazy. Finally got the thing installed, writing instructions in the process. tv_grab_au_reg can handle all the data it receives, or filter only those channels you specify. MythTV is not so clever: if you don't specify any channels, it doesn't recognize any of the data it gets.

Finally pulled in the data and discovered the times were off by 10½ hours; unlike the older tv_grab_au, you have to set Auto in the TimeOffset field.

Finally all was in place, and I really had guide data for all 7 channels—but I had lost my channel frequencies again. Put them back in and I was finally, for the first time, able to record a programme from TV using only MythTV. After only 2½ years!

Saturday, 3 March 2007 Echunga Images for 3 March 2007
Top of page
previous day
next day
last day

Building on yesterday's success, spent a lot of time today documenting what I had done. There's still a lot of stuff to remove from the documents, but hopefully they'll fill the gaps where so much documentation falls down: document not just what to do, but what to look out for. So far I haven't been able to get the channel data included automatically, for example, so my tv_grab_au_reg document explains the problem and how to solve it.

Then spent some time installing MythWeb, a web-based interface to MythTV, requiring of course all the myriad bits and pieces of Apache, MySQL and PHP. After installation, nothing much displayed, except for the entries in the Apache error log:

[Sat Mar 03 16:26:56 2007] [notice] child pid 66756 exit signal Segmentation fault (11)
[Sat Mar 03 16:27:08 2007] [notice] child pid 66758 exit signal Segmentation fault (11)

Nothing indicated what the child was, but a tail -f showed that it happened when I tried to load the home page. Tried it on echunga, where it worked (modulo not being able to access the database), so compared the httpd.conf files and discovered:

LoadModule php5_module libexec/apache22/
LoadModule php5_module        libexec/apache22/

The first entry is what I put in there. The second, with the strange spacing, was added by the port, which didn't first check that the entry was there. For some reason, this double entry was causing the SIGSEGVs: after removing it, things worked well, and displayed reasonably useful information:

Image title: mythweb          Dimensions:          1174 x 1515, 190 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 3 March 2007, thumbnails          All images taken on Saturday, 3 March 2007, small
Diary entry for Saturday, 3 March 2007


There are still a number of things to fix, of course. Firstly, the colour scheme is emetic, the rendering incorrect, and there's a PHP error message at the bottom that I need to attend to. Still, a good basis for building something useful.

In view of the impending multimedia boom, decided to upgrade Yvonne's machine, battunga, which is still running FreeBSD 4.9. Things didn't work well: the first disk I found was from one of the machines that was killed in the December 2005 power surge. It became very clear that the disk had also been affected: the clunking noise on spinup was accompanied by a burning smell. I wonder how high that voltage spike was.

The next disk installed fine, but when I tried to reboot a new kernel, it hung with uncorrectable I/O errors. Looks like time to buy a job lot of, say, 20 GB drives.

Sunday, 4 March 2007 Echunga Images for 4 March 2007
Top of page
previous day
next day
last day

Out riding in Kuitpo forest again today, but the horses were anything but active, and we packed it in after only 45 minutes. We really need to keep them better in form.

Continued work on MythWeb, and found the cause of yesterday's error message (easily enough, given that it was accurate and said what the problem was): it seems that MythWeb tries to save state after every display, but for some reason it opens the database at the beginning, then closes it (where? I can't find that), and then tries to write to it. Kludged around that by reopening in the function itself, but it brings home to me how little I understand about debugging PHP.

Also spent some time playing around with the CSS style sheets, something else I don't really understand, to try to fix the horrible colours. Ended up with a black on white rendition which is probably too much oversimplification. I wonder what it would be like to simply invert all colours, and how best to write a script to “fix” the style sheet.

Monday, 5 March 2007 Echunga
Top of page
previous day
next day
last day

Spent a lot of the day refining my new system installation techniques, something that I've been dabbling with for years. It's still not perfect, but I'm close to the situation where I can write a description file with port “nicknames”, short names that are not necessarily unambiguous, but which are defined in more detail in a separate file, and then say make ports to have them all installed.

The problems I have are:

Also some work on MythTV, and committed a number of related ports.

At the request of many, also committed updates to the sleep(9) man page. People still aren't happy. What a mountain out of a molehill.

Tuesday, 6 March 2007 Echunga
Top of page
previous day
next day
last day

Last October I went to the dentist with some gum problems, and as I noted at the time, I was less than happy with the treatment. The problems haven't gone away, and the dentist's advice (“All you can do is brush your teeth”) seemed implausible, so today into town to a new dentist, who promptly sent me off to a periodontist. Both were much more on the ball than the bloke in Mount Barker, but it looks as if I'm going to be in for some fairly rigorous treatment.

Somehow that took up all the day. By the time I had got home and had lunch, it was 15:10, and didn't get much work done.

Wednesday, 7 March 2007 Echunga
Top of page
previous day
next day
last day

More work bringing up a new version of battunga today using my new system installation methods. On the whole it works well. The biggest issues are:

Also spent more time looking at MythTV. There are so many things I need to do next that I don't know which should be done first.

Thursday, 8 March 2007 Echunga
Top of page
previous day
next day
last day

10 years ago today I returned to Australia after spending most of my life in Europe and Asia. How time flies!

Resolved my question about what to do next by deciding that it would make most sense to get my current recording setup converted to MythTV. That involved mainly setting it up on ceeveear, which was based on KnoppMyth. Spent some time reading the documentation, but there's very little there about multiple back ends, so just tried setting it up. The configuration seemed to work well enough, but for some reason it wanted a duplicate set of guide data; it seems that MythTV defines a master backend, but it doesn't do the logical thing and keep all the data in a single database.

Rather than setting up the guide data from scratch, copied the configuration from tv2 and renamed it to match the input. That still didn't work too well; after realizing that ceeveear didn't have a default route to the outside world, managed to do an update. But what did it really do? It's difficult to say from this output:

2007-03-08 13:06:14.346 Updating icons for sourceid: 1
removing conflicting program: ABC-SA Engineering At The Cutting Edge 20070309103000-20070309110000
conflicted with             : ABC-SA Australians 20070309105500-20070309110000

removing conflicting program: SBS-SA Spasm (Sayew) 20070309230500-20070310011000
conflicted with             : SBS-SA Spasm (Sayew) 20070310000000-20070310011000

Updated programs: 1081  Unchanged programs: 0
2007-03-08 13:06:21.610 Data fetching complete.
2007-03-08 13:06:21.611 Adjusting program database end times.
2007-03-08 13:06:21.624     0 replacements made
2007-03-08 13:06:21.625 Marking generic episodes.
2007-03-08 13:06:21.636     Found 39
2007-03-08 13:06:21.637 Marking repeats.
2007-03-08 13:06:21.648     Found 0
2007-03-08 13:06:21.648 Unmarking new episode rebroadcast repeats.
2007-03-08 13:06:21.657     Found 0

The 39 generic episodes suggest that it loaded something, but the numbers didn't inspire confidence. Carrying on, though, it was clear that there was something wrong:

2007-03-08 13:06:21.673 Connecting to backend server: (try 1 of 5)
2007-03-08 13:06:22.306 Protocol version mismatch (frontend=26,backend=30)

The backend server is tv2 (why does all this stuff use IP addresses instead of DNS?), and it's running MythTV version 0.20a. ceeveear was a long way behind that, but since it's a Debian box, it's easy to update to the latest version, right? Well, yes, but since it's Debian, the version installed was the latest version. Instead went off looking for the sources for MythTV, which proved more difficult than I thought, considering I've done a port for FreeBSD. In the end decided to check out from the Subversion repo.

In the meantime, took another shot at getting Ubuntu up and running on my new prototype box (the “black box” I was using for other purposes for so long). Again it couldn't get X to run, so ran an xterm on wantadilla and tried to start Emacs. No Emacs installed—indeed, I had not been given any choice of what to install. It was on the DVD, of course, but it looks once again as if I'm going to have to install every little piece manually. This is really a pain.

That was nothing, however, compared to what happened when I ran Emacs: it crashed the X server on wantadilla with a SIGSEGV. That's the first time I've ever seen that, in 17 years of running X on my desktop. Somehow every time I try to use Ubuntu, I find it more annoying than before. Decided to download a Fedora Core 6 DVD ISO image instead, but that takes hours, so I didn't get anything finished.

Friday, 9 March 2007 Echunga Images for 9 March 2007
Top of page
previous day
next day
last day

Graham from Echunga Sales and Service (the local car repair shop) along today to pick up our old Citroën CX:

Image title: cx 15          Dimensions:          2816 x 2112, 896 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Friday, 9 March 2007, thumbnails          All images taken on Friday, 9 March 2007, small
Diary entry for Friday, 9 March 2007 Complete exposure details


Somehow that's another “end of era” situation. I don't think I'll ever buy another Citroën, not because I don't like them, but because my life has changed.

More work on getting Linux to work on my CVR boxes today, and somehow seemed to spend all day without achieving very much. I probably owe Ubuntu an apology: KnoppMyth R5E50 (where does he get these revision numbers from?) also did so. Couldn't install Fedora Core 6: after burning the DVD, discovered that firefox (my favourite program) had stopped downloading in the middle and hadn't reported the error anywhere where I could see it, so used ftp to download the rest. For some reason that came up with an invalid checksum, so I repeated the entire download with ftp. It proved to be that I had used sha256 instead of sha1, but I didn't find that out until after downloading and confirming that both images had the same checksum.

Saturday, 10 March 2007 Echunga
Top of page
previous day
next day
last day

Decided to give up on installing Linux on the Via motherboard (“black box”) and do some reshuffling. My main concern is to not be in a position where I can't record TV, so decided to put the disk for the tv2 FreeBSD box in the black box and use the other system for Linux.

That brought another problem with itself: I also needed the Linux box (which I called cvr2) in the Hi-Fi cupboard, because that's where the antenna connections are. But the switch there (also wireless access point) only had five connections, and with tv2 they were all in use (uplink, downlink to the VoIP ATAs in the old office, ceeveear, teevee and tv2). Ended up switching the switch in my old office (8 ports, only 3 in use) with the access point. And that again was complicated by the fact that the access point had a 115V power supply, so I had to move the transformer, disconnecting the other power cord, which I had thought was the old TiVo that I no longer use. It wasn't until later that I discovered that it was for the amplifiers in the old analogue video switch, meaning that the TV no longer had an input. What a pain!

In the end gave up with the display on cvr2 and left it in the black box; I only really need this as a test box for the MythTV backend. The good news is that the DVICO tuner card that had given me problems earlier now worked fine; I had suspected that this might be a driver issue, and the new version of KnoppMyth has a relatively new kernel (but very old versions of dvbscan and tzap). Spent still more time trying to set up MythTV like that, but it seems that the channel setup is still a serious issue. It seems that both Australian TV guide grabbers provide some information, but not enough, and none of the instructions I found (specifying unknown grabbers) worked for me. It should be possible to create this information from the output from dvbscan, and maybe I'll do that.

Sunday, 11 March 2007 Echunga Images for 11 March 2007
Top of page
previous day
next day
last day

Continued with channel setup for DVB today, and got some useful help on the #mythtv-users IRC channel. As I suspected, it's all a question of documentation. All along I had expected that tv_grab_au_reg or similar should miraculously produce the tuning information, but despite the documentation this isn't the case: it just provides the channel IDs. For DVB-T, the tuning information can come from one of two places: from the internal scan or from the output of dvbscan, exactly what I hand been planning to do. The tuning information for DVB is currently (MythTV version 0.20a) shared across two tables. The channels table contains information for both digital and analogue channels, but for digital channels the freqid attribute is ignored. Instead, it is linked to the dtv_multiplex table via the attribute mplexid. dtv_multiplex contains transponder information, notably the frequency, bandwidth and modulation stuff—much the same as what dvbscan outputs. There must be other stuff as well, but so far I haven't found it.

Tried both methods and decided that I'm more comfortable with the channels.conf file method. Here's how to do each:

Scanning DVB-T channels with mythtv-setup

To scan with mythtv-setup, you first need the guide data properly installed. With tv_grab_au_reg this means that you need to exit mythtv-setup and follow the instructions to get the guide data (I think). Restart mythtv-setup if necessary, go to Input connections and select the tuner input. Select Scan for channels, then select Full Scan for Scan Type. This works, but the output worries me, since all I see are failures.

Reading channels.conf into MythTV

Getting the channel info

In either case, you may want to tidy up the channel information. In my case I ended up with 32 channels (6 analogue, 26 digital, including programme guides, duplicates and radio). If you're using both analogue and digital tuners, you'll need to ensure that the channel information is linked to the same programme guide data. This is done via the xmltvid column.

In addition, 32 programmes are a real pain to view on screen. MythTV only displays those channels who have the value 1 (and not, for example, 2) in the column visible. You can always update this using mysql with commands like:

mysql> update channel set visible = 1 where chanid = 3006;

It's a lot easier with MythWeb, though. One of the selections in the Settings menu is channel info, and there you can select the visible attribute and set the xmltvid directly.

In the end, you should be able to see something like this:

mysql> SELECT chanid, channum, freqid, name, xmltvid, mplexid, serviceid, visible
    -> FROM channel
    -> ORDER BY chanid;
| chanid | channum | freqid | name            | xmltvid  | mplexid | serviceid | visible |
|   1501 | 501     |        | ABC HDTV        | ABC-SA   |      12 |       592 |       1 |
|   1502 | 502     |        | ABC TV Adelaide | ABC-SA   |      12 |       593 |       0 |
|   1503 | 503     |        | ABC2            | ABC2     |      12 |       594 |       1 |
|   1504 | 504     |        | ABC TV          | ABC-SA   |      12 |       595 |       0 |
|   1505 | 505     |        | ABC DiG Radio   |          |      12 |       598 |       0 |
|   1506 | 506     |        | ABC DiG Jazz    |          |      12 |       599 |       0 |
|   1507 | 507     |        | 7 Digital       | Seven-SA |      13 |      1360 |       1 |
|   1508 | 508     |        | 7 Digital 1     | Seven-SA |      13 |      1361 |       0 |
|   1509 | 509     |        | 7 Digital 2     | Seven-SA |      13 |      1362 |       0 |
|   1510 | 510     |        | 7 Digital 3     | Seven-SA |      13 |      1363 |       0 |
|   1511 | 511     |        | 7 HD Digital    | Seven-SA |      13 |      1364 |       0 |
|   1512 | 512     |        | 7 Guide         |          |      13 |      1366 |       0 |
|   1513 | 513     |        | NINE Digital    | Nine-SA  |      14 |      1105 |       0 |
|   1514 | 514     |        | NINE HD         | Nine-SA  |      14 |      1112 |       1 |
|   1515 | 515     |        | TEN Digital     | Ten-SA   |      15 |      1617 |       0 |
|   1516 | 516     |        | TEN Digital 1   | Ten-SA   |      15 |      1618 |       0 |
|   1517 | 517     |        | TEN Digital 2   | Ten-SA   |      15 |      1619 |       0 |
|   1518 | 518     |        | TEN Digital 3   | Ten-SA   |      15 |      1620 |       0 |
|   1519 | 519     |        | TEN Guide       |          |      15 |      1623 |       0 |
|   1520 | 520     |        | TEN HD          | Ten-SA   |      15 |      1624 |       1 |
|   1521 | 521     |        | SBS HD          | SBS-SA   |      16 |       832 |       1 |
|   1522 | 522     |        | SBS DIGITAL 1   | SBS-SA   |      16 |       833 |       0 |
|   1523 | 523     |        | SBS DIGITAL 2   | SBS-SA   |      16 |       834 |       0 |
|   1524 | 524     |        | SBS EPG         |          |      16 |       835 |       0 |
|   1525 | 525     |        | SBS RADIO 1     |          |      16 |       846 |       0 |
|   1526 | 526     |        | SBS RADIO 2     |          |      16 |       847 |       0 |
|   3001 | 2       | 64250  | ABC-SA          | ABC-SA   |    NULL |         0 |       0 |
|   3002 | 7       | 182250 | Seven-SA        | Seven-SA |    NULL |         0 |       0 |
|   3003 | 9       | 196250 | Nine-SA         | Nine-SA  |    NULL |         0 |       0 |
|   3004 | 10      | 209250 | Ten-SA          | Ten-SA   |    NULL |         0 |       0 |
|   3005 | 28      | 527250 | SBS-SA          | SBS-SA   |    NULL |         0 |       0 |
|   3006 | 31      | 548250 | 31-Adl          | 31-Adl   |    NULL |         0 |       1 |
32 rows in set (0.01 sec)

Here the chanids in the range 15xx are digital, and the chanids in the range above 3000 are analogue.

After doing that, it's definitely a good idea to save the channel information. I've saved the information for Adelaide here. This is mysqldump output, so it can be installed (overwriting previous tables!) with:

$ mysql mythconverg < channels.sql

After all that, finally had a properly running backend with digital input. Things are looking up.

Monday, 12 March 2007 Echunga
Top of page
previous day
next day
last day

Today spent some time—far too much time—looking at how to get multiple tuners working in one machine. It's not easy, and I didn't manage completely.

I ended up adding two other tuners: the second (really the older) DVICO tuner and the MSI TV@nywhere analogue tuner. The first problem was just entering the device name. The first DVB-T tuner had the device name /dev/video0 in capturecard.videodevice, and (not surprisingly) the system came up with the devices /dev/video1 and /dev/video2 as well. But I couldn't find a way to enter /dev/video1 with mythtv-setup. Tried it with mysql, which worked, but then I ended up a non-functional mythbackend which ignored the device name and tried to open adapter 0 twice. After a lot of trial and error, two things became apparent:

My best guess is that the code is using atoi or a similar function to convert the field into binary, and not checking whether it's valid. atoi always returns 0 if pointed at a non-numeric string.

So, finally I can record two things at once. As MythWeb reports:

Encoder 1 is local on cvr2 and is recording: 'Seven News at 4.30' on
7 Digital.  This recording will end at 17:00.
Encoder 4 is local on cvr2 and is recording: 'National Nine
Afternoon News' on NINE HD.  This recording will end at 17:00.

The adapter numbers are the result of MySQL's autoincrement feature. At some time I'll fix them. First, though, I need to get the analogue tuner working too.

Tuesday, 13 March 2007 Echunga
Top of page
previous day
next day
last day

Into Mount Barker today for an X-ray, which took all of 10 minutes. Nevertheless it seems to have completely broken up the day. While there, met up with Yvonne, who was shopping, and rented far too many DVDs.

Ans Papini along in the evening with some people interested in the house. Who knows, we might sell it yet.

Wednesday, 14 March 2007 Echunga
Top of page
previous day
next day
last day

Somehow didn't get anything done today. Spent all the day playing around with hardware, but at the end of the day didn't have any more to show than having added a 250 GB drive to teevee. Started by putting it on wantadilla as a USB-attached disk, but for some reason it did a spontaneous reset when I tried to newfs it. it. Finally managed to shoot down teevee as well, so put the disk in on an ATA connection.

More problems recording programmes in the evening: one of the recordings didn't work correctly. Do I still have a problem with one of those DVICO cards after all?

Thursday, 15 March 2007 Echunga Images for 15 March 2007
Top of page
previous day
next day
last day

Another power failure in the middle of the night! This is really getting on my nerves, especially since it's currently so difficult to get tv2 up after a reboot. Got up in the morning and discovered that I had also lost the ADSL line from 23:00 to 01:00, and that the routing for my main address was still flaky. Called Internode, which took a surprising amount of effort, and of course they had to hand it to second-level support. At least the class C network is working, but it meant moving a few things around.

Looking at yesterday's DVICO recording problems revealed that they only worked incorrectly on a single channel, my favourite Nine MSN. Also discovered that the two cards aren't identical after all: they have a different demodulator chip, the Zarlink ZL10353, about which I have heard of other problems. Looks like I'll have to upgrade the drivers, or, better, write a driver for FreeBSD.

Another bloke along in the afternoon to look at the house. He's looking for somewhere he can build a 700 metre air strip on. That would just about fit here. He came flying by a little later to take a look, but to judge by the single pass, he must have found something he didn't like.

In the evening another power failure. This is driving me mad, and caused me to spend some time rearranging UPSs so that all the machines in the HiFi cupboard are on one big UPS.

That didn't help with my recording, unfortunately. In the middle of a recording in the evening, the recording just stopped. If there was an error message, it's not clear where. Spent over an hour messing around trying to find what was going on, during which the “good” DVICO card stopped producing any output, despite good signal, and mythbackend refused to start. Finally gave up in disgust. What a day!

Friday, 16 March 2007 Echunga
Top of page
previous day
next day
last day

The cause of yesterday's problems could have been in part due to the way I set up the channel table, so decided to start again from scratch today. That worked better than I had expected:

This left me with a whole lot of channels with no guide data, and a whole lot of guide data with no channels. This time I used the MythWeb channel editor to set the xmltv id for the channels in question. I wonder how it's meant to be done.

In the process, discovered that the attribute sourceid relates to the tuner number, so it is possible to restrict certain channels to certain tuners. That'll be handy with the current Nine MSN problems. It's also interesting to note that you can run mythfilldatabase several times before it finds nothing more to update, though typically the changes are things like:

removing existing program: Ten-SA The Firm 2007-03-17T21:30:00 - 2007-03-18T00:40:00
inserting new program    : Ten-SA The Firm Sat Mar 17 21:30:00 2007 - Sun Mar 18 00:40:00 2007

After all that, ended up with multiple displays for each program, one per tuner card. I don't have a good idea of how to fix it; probably I'll have to hack MythWeb.

Also a call from Richard Panic, an aptly-named insurance assessor for ETSA. He'll come along on Wednesday to look at the damage caused by the power spikes on 6 December 2005 and 10 January 2007. Not too early.

I later discovered that it's Richard Penneck, not Richard Panic. I still prefer the latter.

Still off the network

As of midday, my IP routing was still messed up. Called the Internode support line again, and this time waited until I was answered, by far the longest wait I've ever had to reach a telephone support line: 84 minutes. When I finally reached somebody, I was told that I should have chosen the “business” option from the telephone menu, and I would have been attended to right away. There are two problems with this: it doesn't help non-business customers, and there was no menu. I was told I should have called 8228 2999, not the 8228 2911 that I called on the instructions at support contacts page, which incidentally took me nearly 2 minutes to reach via three incredibly slowly loading pages.

I suggested that the information should be updated, but the support person didn't see any reason to do so, since the information was “correct”. What's he thinking?

The lack of action about my routing issue was due in part to the fact that my mail server was on the machine with the routing issues, and though I had thought that the problem would only affect other ISPs, it proved impossible to reach the Internode mail server,, so my message was still hanging in the queue. It included traceroute output which would clearly help things; but is that a reason not to do anything? Most customers wouldn't know how to run traceroute. That's not a reason to leave a serious routing issue open for over 24 hours.

Finally got the message through to him by copying it to and mailing from there, and finished the phone call after 129 minutes, not very satisfied. I've always been supportive of Internode, but the service I've had lately has been unacceptable. By the evening the problem was still not resolved. If I hadn't had the class C network, something that almost nobody has, I would have been off the Internet for two days. Hopefully Internode will improve. At the moment I don't see any reason to change to another supplier: I fear that this is a sign of the times. Recently c't magazine did an article about the terrible network support currently being offered in Germany. I could well imagine that the same would apply here.

Making pizza at home

Decades ago I claimed that it was impossible to make a good pizza at home. At the time it was the general lack of understanding about how to make a salsa pizzaiola, but since then I've had difficulties getting the base cooked properly. The obvious problem, of course, is that most people don't have a real pizza oven, which heats the base from below (look at the underside of a good pizza; it's quite browned). Today finally did the obvious and set the oven to heat from below and then put the pizza in a tray on the oven floor. It was so much better that it was almost overdone. Next experiment is to do that for 5 minutes, then grill, with a thicker base.

Saturday, 17 March 2007 Echunga
Top of page
previous day
next day
last day

Up early today with the intention to address the issues I have with MythWeb, and discovered that it's more difficult than it seems to change. Made a horrible kludge to select only one instance of each channel, but it's specific to my current database setup, and it desperately needs improvement.

Then out riding with Yvonne and Diane Saunders, spending more time preparing than the 45 minutes we actually rode. It's been some time since we have gone out for any long ride.

Back home and discovered that MythTV had decided to record everything from the analogue tuner, and I couldn't find a way to make it change its mind. Reading the documentation, I found:

The Master backend will always choose the first available tuner in the same order as you add cards through "mythtv-setup". In other words, the second card you add will only be used when there are two overlapping recordings, the third when there are three, and so on.

In fact, it was using tuner 8, the last of the three: the tuner number is in capturecard.cardid, an autoincrement field that leaves you with numbers reflecting the number of attempts you have made to install tuners. In my case, the numbers were 6, 7 and 8, so the master backend should have been using tuner 6, then tuner 7, but it seems that they didn't get stored physically in that order:

mysql> SELECT cardid, videodevice, cardtype FROM capturecard;
| cardid | videodevice | cardtype |
|      8 | /dev/video0 | V4L      |
|      6 | 0           | DVB      |
|      7 | 1           | DVB      |

So it seems that the order is the order in which they're stored in the MySQL table, not the order in which you add them. But the sequence in a MySQL (MyISAM) table is indeterminate, even for primary keys (in this case cardid). Rebuilt the table so that the physical sequence matched the numerical sequence, but still couldn't get it to stop. In the end removed most channel entries for the analogue tuner card, leaving only channel 31, which doesn't have digital broadcasts. Clearly that's unsatisfactory: it should be possible to specify preferences.

Even that didn't work: recording an old Bonanza sequence gave me 32 GB of junk. Maybe it's related to the problems that KnoppMyth has with the sound chip on this particular motherboard, or maybe it's the driver for this particular card, which I've never had working. Maybe I can try it with the PVR 250 next week.

Another power failure this evening. This is getting to be too much. I've started an overview page showing how often we have these failures.

Sunday, 18 March 2007 Echunga
Top of page
previous day
next day
last day

Slow day. Spent some time writing up what has been happening lately, then watched TV a bit. All this work on computer video recorders has left me little time for that kind of activity.

Brian Aker, Director of Architecture at MySQL commented on my entry on MyISAM yesterday, saying that the values returned are based on the order of the INSERT. That's correct, of course, until you start deleting rows and then inserting new rows. Where they end up depends on a lot of things, but it's clear that MyISAM reuses the storage space. Under the circumstances I'm talking about, it returns the data in the sequence it's found in the table, which is dependent on too many things to be relied on.

More pizza

My comments on pizza last Friday drew a couple of responses: Tom Maynard pointed me at a method involving the use of a cast-iron skillet, a kind of frying pan. Some of the details look a little dubious, including the mention of a temperature of “800 degrees” (about 430°), which seems far too hot to me. He also talks about cooking for only 1 minute 35 seconds, which confirms my suspicions. But the method is similar to another one I was thinking of, though: at least in Australia, a gas barbecue has a large cast-iron plate for frying on. Until my recent experiments, I had been meaning to play around with that for doing a pizza: almost close the lid, blow air across the top, and you have a good approximation to the environment in a pizza oven. The main reason I haven't done so is because it's so difficult to control the temperature, especially if there's any wind at all.

Also, Michael Hughes pointed me to a pizza stone, which works by storing heat and then applying it more evenly to the pizza. This is quite a good idea, though the one he shows looks a little small (which means that it will cool down more quickly). In all probability this is a better solution than the one I use, though that remains to be seen. In any case, mine is cheaper.

Tried another pizza tonight. Since the last one had a tendency to be overdone, I cooked this one less on the bottom, then grilled for the remaining time. I also made the base thicker. The combination was not optimal; the base wasn't completely done through. Clearly there's some more experimentation to do here.

More power failures

While watching TV this evening, had another power failure. Again, only a couple of seconds, but it set the UPS on echunga into an alarm condition, rebooting the machine in the process, and it damaged the projector bulb—which costs over $500 to replace. I wish I understand what's going on here, but it looks like these outages are often accompanied by significant power surges.

Monday, 19 March 2007 Echunga Images for 19 March 2007
Top of page
previous day
next day
last day

Spent an inordinate amount of time looking for a new projector bulb today. The prices are high, and they also vary a lot. It seems that the best prices are in the order of $330, from sources in Japan such as PriceJapan, and they could take up to 3 weeks to deliver. In Australia, finally found a bulb from Discount Projectors in Richmond, who went to a lot of trouble to ensure that the globe (at $545!) would be in Adelaide tomorrow. That's a lot of money for 3 weeks TV watching, but not for peace of mind.

Also called up ETSA to ask about the causes of the problems and how to solve them. Got a promise of a call back within 48 hours for the explanation of all the power failures, and a “voltage investigation” within 20 days. Hopefully they'll find something there.

Tony Arthur along in the afternoon with another machine to install FreeBSD on. I had all this prepared, but of course lots of surprises occur when you actually try to do something, and spent most of the afternoon refining my build processes.

My ADSL line is still off the net. Some time in the afternoon I got a message from Internode support asking for the traceroutes I had prepared on Friday—their reporting system had assigned them another ticket number, though I had included the first in the message, and this seems to have been enough for it not only not to be connected, but also to be lost for a day. I'm still not at all happy with the progress, and by the evening, beyond the report that they suspect an “odd-even” problem with Telstra, nothing had happened.

Tuesday, 20 March 2007 Echunga
Top of page
previous day
next day
last day

Phone call this morning from Shaun, a Customer Care person from ETSA this morning. He didn't do his job well. At the end of the 35 minute discussion, I was far more annoyed than before. It seems that the main point of his uninformed and partially completely wrong statements was to absolve ETSA of any blame for what has happened. Here are the full details.

Call from Internode with the news that the network problem had been resolved—sort of. I'm still getting 5% packet loss to some places, but it's a lot better, as the statistics show:

ADSL line statistics

The brown line shows the number of systems reachable, out of the 5 that I have chosen.

Daniel O'Connor called before 10 am to tell me that the projector lamp really had arrived. Clearly there's a big difference between deliveries in town and in Echunga. Into town in the afternoon, picked that up, and then to Leader to get some more multimedia hardware, in the process bumping into Phil Tann, who is currently trying to migrate to FreeBSD. Then to a special general meeting of the ICT council. Looks like we're setting up to change direction again.

Wednesday, 21 March 2007 Echunga Images for 21 March 2007
Top of page
previous day
next day
last day

Richard Penneck, the insurance assessor, came in today to inspect only the damage done by the December 2005 power surge. The letter to ETSA clearly stated that most of the damage was done on 10 January 2007, but he was not asked to assess it; I suspect that ETSA hadn't read the letter carefully.

Started putting together the next generation CVR, with a rather nice motherboard including firewire, gigabit Ethernet and an nVidia graphics chip, along with the AVerTV Hybrid+FM PCI card. Installation with KnoppMyth was not encouraging: it didn't recognize the graphics chip, and it didn't recognize the tuner card. Maybe they're both too new; hopefully I'll be able to sort it out, but it's still not plain sailing. Brought up FreeBSD on the machine and confirmed that it didn't recognize the graphics chip either, though at least it was able to install a VESA driver and display something.

Also changed the bulb in the projector. Looking at the bulbs, it's hard to see why the output should have diminished. You can barely tell them apart:

Image title: globes 2          Dimensions:          2816 x 2112, 656 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Wednesday, 21 March 2007, thumbnails          All images taken on Wednesday, 21 March 2007, small
Diary entry for Wednesday, 21 March 2007 Complete exposure details


The one on the left is the old one. It's also difficult to see why they should be so expensive.

Thursday, 22 March 2007 Echunga
Top of page
previous day
next day
last day

Work on two fronts today: continued installing the “black box”, and ran into significant trouble with the Hauppauge PVR-250 card, which failed to probe. When loading the kld I got:

  cxm0: <Conexant iTVC15 MPEG Coder> mem 0xe4000000-0xe7ffffff irq 17 at device 9.0 on pci0
  cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
  iicbb0: <I2C bit-banging driver> on cxm_iic0
  iicbus0: <Philips I2C bus> on iicbb0 master-only
  cxm0: LG Innotek TPI8PSB01N tuner
  cxm0: SAA7115 rev 1 video decoder
  cxm0: MSP4418G-A2 audio decoder
  cxm0: IR Remote
  cxm0: [GIANT-LOCKED]
  cxm0: could not initialize hardware
  iicbus0: detached
  iicbb0: detached
  cxm_iic0: detached
  device_attach: cxm0 attach returned 6

After much head-scratching noticed that this message was followed by:

vr0: <VIA VT3043 Rhine I 10/100BaseTX> port 0xc000-0xc07f mem 0xd9000000-0xd900007f
irq 18 at device 10.0 on pci0
vr0: MII without any phy!
device_attach: vr0 attach returned 6

That shouldn't have happened. Since I didn't need the card, decided to remove it, and contrary to my expectations it fixed the problem, which doesn't seem to have anything to do with interrupt sharing.

With the other machine, installed the nVidia driver, which contrary to my fears did recognize the graphics chip:

nvidia0: <Quadro NVS 210S / NVIDIA GeForce 6150LE> mem 0xfd000000-0xfdffffff,
 0xd0000000-0xdfffffff,0xfc000000-0xfcffffff irq 16 at device 5.0 on pci0
nvidia0: [GIANT-LOCKED]

Created an X configuration file, started X and—it spontaneously rebooted, repeatably.

Rather than follow that track, tried installing Ubuntu Edgy, which installed correctly, the first Linux installation that has been able to start X for some time. Then tried installing the nVidia driver. For FreeBSD it's simple:

# cd /usr/ports/x11/nvidia-driver
# make install

It's not quite that easy with Linux. You need to:

After this, the driver ran fine. I suspect that the problem with FreeBSD was that I had set the DIAGNOSTIC option in the kernel, which catches program bugs that normally go undetected. But that's for another day.

The display card, the AVerTV Hybrid+FM PCI, is another matter. After reading the details more carefully, it seems that it's not supported properly after all. Leader doesn't want it back, so it looks as if I'll be in for a wait until somebody—maybe myself—adds support for it.

How much brighter is the new projector globe than the old one? It's a lot; I had expected that the old one had lost at least 90% of its output. But how do you measure it? Decades ago I did some photometry work with my camera, taking photos of grey scale to compare with the exposure meter of my camera. I've forgotten what conclusions I came to at the time, but this time I used the same camera to measure the light intensity looking directly into the projector while it displayed an xterm. The results: old globe, ½ second at f/5.6. New globe 1/250 s at f/5.6, or 125 times stronger. That's quite amazing.

Friday, 23 March 2007 Echunga Images for 23 March 2007
Top of page
previous day
next day
last day

I was supposed to go into town today to the dentist, but the car thought otherwise: the ignition lock jammed up and couldn't be turned. Yvonne was in Mount Barker with the Magna and came back as soon as she could, but we had to postpone the appointment.

Back into Mount Barker with her, passing by the car workshop on the way. Graham now has the CX engine running, but it looks like he'll have to do some serious overhaul work on the gearbox. He also told us that there wasn't much we could do about the ignition lock except replace it. That'll be fun.

In Mount Barker, went shopping at Woolworths. They value their customers, and don't like people leaving:
Image title: no exit          Dimensions:          2816 x 2112, 1785 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Friday, 23 March 2007, thumbnails          All images taken on Friday, 23 March 2007, small
Diary entry for Friday, 23 March 2007 Complete exposure details
Image title: no exit          Dimensions:          2816 x 2112, 1785 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Friday, 23 March 2007, thumbnails          All images taken on Friday, 23 March 2007, small
Diary entry for Friday, 23 March 2007 Complete exposure details


The door with the word “EXIT” above it is an emergency exit; the sign on the door itself states that an alarm will sound. Where's the real exit? Next to it on the right, without a sign.

In the afternoon, checking why I couldn't access MythTV database on ceeveear. The answer was simple: it was set up that way at install time, without any information. That's not the default, and the following change was all that was needed:

--- my.cnf~     2006-11-29 13:47:04.000000000 +1030
+++ my.cnf      2007-03-23 14:35:35.000000000 +1030
@@ -53,7 +53,7 @@
 # Instead of skip-networking the default is now to listen only on
 # localhost which is more compatible and is not less secure.
-bind-address           =
+# bind-address         =

Why do people do these things?

That wasn't enough, unfortunately. For some reason there's a protocol difference between front and back end. They're both supposed to be the same version, so that puzzles me. Still more work needed.

Saturday, 24 March 2007 Echunga Images for 24 March 2007
Top of page
previous day
next day
last day

Set to installing a compatible version of MythTV today; fortunately Geoff Buckingham had sent me a port of the “stable” version, which is only available from the subversion repository. I wonder how we should handle this; there are at least three versions out there, and they all seem to be incompatible with each other:

Built that, and was finally able to get mythfrontend on FreeBSD communicating with a mythbackend under Linux. Now to learn how to handle the remote control, and how to tell mythfrontend about XvMC.

In the evening to a party on the corner of Kondoparinga and Rodert roads. Alan Mutton was turning 50, and he had quite a big outdoor fancy dress party:

Image title: party 5          Dimensions:          2816 x 2112, 1725 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Saturday, 24 March 2007, thumbnails          All images taken on Saturday, 24 March 2007, small
Diary entry for Saturday, 24 March 2007 Complete exposure details


Unfortunately, today was the day that winter decided to come, at least from a temperature point of view (round 10°), and all was rather cool.

Sunday, 25 March 2007 Echunga
Top of page
previous day
next day
last day

As planned, spent some time today trying to get MythTV working with XvMC and with LIRC support. The former was complicated by the fact that the display cards on wantadilla use nVidia GeForce MX 4000 chipsets, and they're not supported by the current drivers. Installed the “legacy” driver, which for some reason brought up wantadilla:0.0 with a maximum resolution of 1856x1392. In the log file it stated:

(WW) NVIDIA(0): Not using mode "2048x1536" (width 2048 is larger than
(WW) NVIDIA(0):      EDID-specified maximum 1856)

This appears to be the opinion of the monitor itself; but it's been running fine for years at 2048x1536, and ultimately it's the horizontal frequency that determines the maximum resolution. Put that monitor back onto the nv driver and continued only with the second card, but that didn't seem to want to run XvMC either. Quite possibly the card doesn't support it, so I'll have to try on teevee. Some other day.

Monday, 26 March 2007 Echunga
Top of page
previous day
next day
last day

Back to working on the Black Box today, which wasn't much work, but which somehow managed to last the whole day. Debugging remote ssh problems is a pain!

Tuesday, 27 March 2007 Echunga Images for 27 March 2007
Top of page
previous day
next day
last day

Over to Hahndorf to look at our prototype today, and got things sorted out pretty quickly. The biggest problem was the combination of DHCP server and misconfigured DNS. Why is it that DNS is such a problem in the Microsoft space?

Back home and found some people from ETSA about to leave after having placed a power monitor on the transformer. It seems that they really only intend to monitor the power under normal conditions, and that for a week. I'm sure they won't find anything. I'm reminded of the joke attributed to Josef Weizenbaum:

A policeman saw a drunk searching for something under a lamppost. “What have you lost?” the policeman asked. “ My keys”, said the drunk. The policeman then helped the drunk look and finally asked him: “Where exactly did you drop them?” “Over there”, responded the drunk, pointing toward the dark street. The policeman then asked: “Why are you looking here?” The drunk replied: “Because the light is so much brighter here.”

Did get some information from them, though: there can be significant power fluctuations if heavy power usage starts or stops, and there are capacitors in the power substations which, if they fail, can also cause significant fluctuations. They say that users of electronic equipment are advised to install surge protection. I can't recall ever receiving such advice, certainly not from ETSA.

Back home still had a few issues with the black box to address, including hang-overs from versions of the software written before I got involved.

Mail from Patrick Hess about the issues with the nVidia driver and EDID; as I suspected, you can turn it off with the following line in the DEVICES section:

        Option "IgnoreEDID" "true"

That doesn't help with the fact that the card doesn't seem to handle XvMC, of course.

Finally got round to trying out MythTV with XvMC and with LIRC support on teevee. That didn't work either; the remote control failed with “unable to open socket”, and the XvMC with a more obscure error message. First, here's what happened with the standard codec:

  2007-03-27 16:25:08.165 AFD: Opened codec 0x8602c10, id(MPEG2VIDEO) type(Video)
  2007-03-27 16:25:08.165 AFD: Opened codec 0x861e010, id(MP3) type(Audio)
  2007-03-27 16:25:09.880 TV: Attempting to change from None to WatchingPreRecorded
  [mpegts @ 0x28f97460]Parser not found for Codec Id: 94211 !
  0: start_time: 5909.602 duration: -9223372036854.775
  1: start_time: 5909.578 duration: 674.622
  2: start_time: 1961.266 duration: 674.683
  stream: start_time: 21791.849 duration: 51365.929 bitrate=1187 kb/s

At this point I selected the XvMC codec with the mythfrontend setup menu. Then I got:

  2007-03-27 16:25:10.715 AFD: Opened codec 0x9761010, id(MPEG2VIDEO_XVMC) type(Video)
  2007-03-27 16:25:10.715 AFD: Opened codec 0x9761410, id(MP3) type(Audio)
  2007-03-27 16:25:10.719 Opening OSS audio device '/dev/dsp0.0'.
  2007-03-27 16:25:11.150 VideoOutputXv: XvMCTex: Init failed
  2007-03-27 16:25:11.151 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video Texture'
  2007-03-27 16:25:11.197
  XError type: 0
      display: 0x8514800
    serial no: 36
     err code:
   (BadAccess (attempt to access private resource denied))
     req code:
   minor code:
  resource id: 290
  2007-03-27 16:25:11.198
  XError type: 0
      display: 0x8514800
    serial no: 36
     err code:
   (BadAccess (attempt to access private resource denied))
     req code:
   minor code:
  resource id: 290
  X Error: BadShmSeg (invalid shared segment parameter) 179
    Major opcode:  149
    Minor opcode:  2
    Resource id:  0x220000c
  2007-03-27 16:25:11.208 VideoOutputXv Error: Failed to create XvMC Buffers.
  2007-03-27 16:25:11.214 VideoOutputXv: Falling back to X11 video output over a network socket.
                              *** May be very slow ***

This must be a MythTV issue, since XvMC works fine with mplayer. More to investigate.

Our “new” microwave oven is nearly 10 years old now (the old one is 23 years old), and almost from the beginning, the display started to fail, segment for segment. In the past few days it had got to the point where it was barely legible, and I was convinced that it was due to a flaky connector that just needed to be cleaned and reconnected, so took the control part apart and took a look:

Image title: microwave 7          Dimensions:          2112 x 2872, 1306 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Tuesday, 27 March 2007, thumbnails          All images taken on Tuesday, 27 March 2007, small
Diary entry for Tuesday, 27 March 2007 Complete exposure details
Image title: microwave 8          Dimensions:          2872 x 2112, 1667 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Tuesday, 27 March 2007, thumbnails          All images taken on Tuesday, 27 March 2007, small
Diary entry for Tuesday, 27 March 2007 Complete exposure details


Unfortunately, I was wrong. The connector to the display is the ribbon cable at the top of the photos, and it is soldered. Looks like it's really a failing display. I don't suppose it's worth replacing.

Wednesday, 28 March 2007 Echunga
Top of page
previous day
next day
last day

Into Adelaide today to get my teeth looked at, with the result that the morning was gone. Spent the afternoon following up the MythTV with XvMC problems, with no progress. The LIRC problem proved to be a naming issue: in Linux, it creates a socket /var/lirc/lircd, whereas the FreeBSD convention is to put it in /var/run/lirc/lircd. Ended up putting in a symlink; I fear there will be more such cases.

Thursday, 29 March 2007 Echunga Images for 29 March 2007
Top of page
previous day
next day
last day

More work with MythTV and XvMC, still with no progress. Got a couple of replies to my question on the mailing list, but they were at the level of “reinstall your nVidia drivers”. Frustrating day. Made up for it by cooking another choucroute:

Image title: choucroute          Dimensions:          2816 x 2112, 912 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Thursday, 29 March 2007, thumbnails          All images taken on Thursday, 29 March 2007, small
Diary entry for Thursday, 29 March 2007 Complete exposure details


Once again we decided to change the proportions.

Friday, 30 March 2007 Echunga
Top of page
previous day
next day
last day

Had intended to look further at the XvMC issue today, but the black box got in my way, reminding me that we had stopped work a couple of months ago without reaching any clear status. The current version no longer runs as root, so we had various permissions issues to work around. By far the strangest was the continual flood of messages:

/dev/cd0: unable to open: Permission denied
/dev/cd1: unable to open: Permission denied
/dev/cd2: unable to open: Permission denied

Looking at the devices showed nothing unusual:

=== logger@blackbox (/dev/ttyp3) ~ color="blue">10 -> ls -l /dev/cd*
crw-rw-rw-  1 logger  operator    0,  92 Mar 30 15:38 /dev/cd0
crw-rw-rw-  1 logger  operator    0,  93 Mar 30 15:38 /dev/cd1
crw-rw-rw-  1 logger  operator    0,  94 Mar 30 15:38 /dev/cd2

Only with ktrace did I find:

  2287 dvd+rw-mediainfo CALL  open(0xbfbfec2c,0x4,0)
  2287 dvd+rw-mediainfo NAMI  "/dev/cd1"
  2287 dvd+rw-mediainfo RET   open 5
  2287 dvd+rw-mediainfo CALL  fstat(0x5,0xbfbfe6e0)
  2287 dvd+rw-mediainfo RET   fstat 0
  2287 dvd+rw-mediainfo CALL  ioctl(0x5,CAMGETPASSTHRU,0xbfbfe840)
  2287 dvd+rw-mediainfo RET   ioctl 0
  2287 dvd+rw-mediainfo CALL  open(0xbfbfe6c0,0x2,0)
  2287 dvd+rw-mediainfo NAMI  "/dev/pass1"
  2287 dvd+rw-mediainfo RET   open -1 errno 13 Permission denied
  2287 dvd+rw-mediainfo CALL  close(0x5)
  2287 dvd+rw-mediainfo RET   close 0
  2287 dvd+rw-mediainfo CALL  write(0x2,0xbfbfdf00,0x1a)
  2287 dvd+rw-mediainfo GIO   fd 2 wrote 26 bytes
       "/dev/cd1: unable to open: "
  2287 dvd+rw-mediainfo RET   write 26/0x1a
  2287 dvd+rw-mediainfo CALL  writev(0x2,0xbfbfdcc0,0x2)
  2287 dvd+rw-mediainfo GIO   fd 2 wrote 18 bytes
       "Permission denied
  2287 dvd+rw-mediainfo RET   writev 18/0x12

So the permission problem was with /dev/pass1, not /dev/cd1. More sloppy programming.

Saturday, 31 March 2007 Echunga
Top of page
previous day

Intended to take it quietly today, so didn't investigate the XvMC issues any further. Instead considered the problems I've been having with the TV guide from and considered the alternatives. One is Shepherd, which culls information from a number of places. Installation—on Linux—was not as simple as it looked. It needs a whole lot of Perl modules, and in the process of installation I discovered cpan, which sort of makes things easier. But some of them required compilation, and that failed. In the course of fixing that, I discovered:

Of course, all this probably wouldn't have been correct if the instructions had been structured correctly: after working my way through them, I found instructions on how to do it with Debian. Presumably they would have been easier.

Setting up shepherd was strange. It ran for ever, and at the end it didn't produce any output. The instructions are rather vague about what it's supposed to do, but I'm pretty sure it should populate the mythconverg.program table. But it didn't.

Another issue with shepherd is that it doesn't seem to know about Adelaide channel 31. Decided to shelve that effort and try IceTV instead. That installed better, but still required running through mythtv-setup and clobbering the channel table. Ended up writing MySQL queries to fix it again. It seems that this is a common problem. The instructions specified that you should edit the channel table in mythtv-setup, but there's no documentation on how to do that, and the screen itself is unclear. With MySQL it's clear what needs to be done.

Unfortunately, that only gave me data for two channels, probably (as occurred to me later) because of the hacks I had put in my MythWeb source to only select certain copies of the guide data. Also, channel 31 still wasn't there.

Time was coming up for new recordings, so reverted to the old configuration (aren't database backups a good idea?) and looked at the next item, remote controls.

The wiki user manual describes the default remote control key bindings, but there seems to be no configuration file to match them. There are five sample lircrc files in the source tree, but three of them don't even relate to MythTV, and of the other two, one is be for the Microsoft Media Center Edition Remote, model 1039, not exactly a typical remote control. Started writing my own, but then wondered if I had missed something. Asked on the #mythtv-users channel on Freenode and had a surprising reaction:

<groOgle> Is there really no default lircrc?
<Dagmar> There's no default remote, either.
<juski> why would there be a default lircrc?
<juski> there are like _millions_ of different remotes out there
<Dagmar> because thinking is WORK
<groOgle> Dagmar: So is guessing what commands the application wants.
<groOgle> juski: Strange that all remotes are so similar that VCR users can
      use them.
<Dagmar> groOgle: Damn.  You didn't buy the psychic add-on for your machine?
<Dagmar> hahaha
<Dagmar> Wow what breathtaking ignorance, er, innocence
<groOgle> Dagmar: No, just a less stupid attitude that some people show.
<kormoc> groOgle, there's defaults for some of the more common remotes
<Dagmar> groogle; You're about to attempt to insult someone who knows a ton
     more than you.  I suggest you abandon this plan.
<groOgle> kormoc: What I find is in the configfiles directory.
<groOgle> kormoc: 5 files.
<kormoc> groOgle, that's the more common ones
<juski> groOgle: there are PLENTY of example lircrc files out there.  use
<groOgle> Dagmar: Who might that be?
<groOgle> kormoc: 3 of them with default program irxevent.
<Dagmar> groOgle: Pretty much everyone in this channel if you think all
     remotes are alike.
<Dagmar> ...and probably some of the people at the homeless shelter.
<juski> groOgle: if you knew an iota about lirc, you'd know that it'd be nigh
    on impossible to have a common, likely to work out-of-the-box lircrc
<groOgle> juski: Not so.
<kormoc> groOgle, sure, there's standard remote layouts, play is typically
     play, but uhh, it all depends on the lirc remote definition file,
     which can have play as PLAY or play or Play or just PLA or just p or
     so on and what not
<juski> nobody seems to call their buttons the same as what another guy called
<Dagmar> groOgle: hahaha
<groOgle> juski: Certainly "some aseembly required".
<Dagmar> suuure
<Dagmar> Yep.  You're looking at "some assembly" with all those pre-made
     config files
<juski> incidentally in the time we've been arguing the toss about it here you
    could've made one already ;)
<groOgle> juski: But at the moment there's not even a layout that matches
      what's in the wiki.
<groOgle> juski: No, I've been working on one for 30 minutes now.
<Dagmar> Gee, but I thought you said all remotes were the same...
<groOgle> Dagmar: No, you just didn't understand.  Shall I explain it to you

IRC seems to bring out the worst in people such as Dagmar, but this fruitless dialogue shows a number of other issues with projects like MythTV:

Finally found a configuration file for a DVICO remote control by Chris Pascoe on Google, but it wasn't the same as the one I used. Set it up roughly, and it worked, but there's still plenty to be done.

Do you have a comment about something I have written? This is a diary, not a “blog”, and there is deliberately no provision for directly adding comments. It's also not a vehicle for third-party content. But I welcome feedback and try to reply to all messages I receive. See the diary overview for more details. If you do send me a message relating to something I have written, please indicate whether you'd prefer me not to mention your name. Otherwise I'll assume that it's OK to do so.

Top of page Previous month Greg's home page Today's diary entry Next month Greg's photos Copyright information

Valid XHTML 1.0!

$Id: diary-mar2007.php,v 1.66 2022/03/23 06:28:06 grog Exp $