Subscribe using
My Yahoo! NewsGator My AOL Rojo BlogLines NetVibes Google PageFlakes
Web Feed Address
daniels.net.nz
subscribe
blog software about me
Daniel's Blog

Mythtv tag

May
13
2007
0

MythGame now works

5:03pm · Me ·

This weekend during my regular procrastination sessions I was able to plug in the PS2 controllers and let them go.

It took a wee bit of effort. Unlike on Windows, which sees the box as two different controllers, Linux has bung all the axis and buttons together into one input device. Yes, fun indeed. So, with that, no programs could just work out of the box.

Fortunately, I found QJoyPad. Instructions on installing that are on the Ubuntu forums. With no tray to put an icon in, it just pops up a floating window which doesn’t get in the way of MythTV.

One thing I learnt while using QJoyPad was that it has a horrible GUI. It is much easier to use xev to find the keycodes and modify the .lyt files in the ~/.qjoypad3 folder.

I first began with a control scheme for MythTV so I can just use the controller to select a game. Up, Down, Left, Right to move, X to Enter, Triangle to go Back. Simple. I saved that. I then made one for each emulator. I so far only have DGen and Mednafen (doesn’t that sound like a medicine?) installed.

I then created a wrapper script for each emulator, it goes in the form:

#!/bin/sh
qjoypad "profilename"&
emulator "$1"
qjoypad "mythtv"

And in the MythGame player configuration, made it run the wrapper script instead. It works like a charm.

The next problem to solve was exiting. I wanted it so then the Exit button on my remote exits. Reading on the MythGame wiki page, the easiest way was to install xmacroplayand passing that. But then I’d have to make a new item for each program. The easy way would be to just kill all the emulators when I press the button, while not killing MythTV.

So I stole the script

#!/bin/bash

# This checks if an emulator is running
# Insert your emulator commands as well
if ps ax | egrep -q ' (dgen|mednafen)'; then
    echo "KeyStr $1" | xmacroplay :0
fi

And made it run whenever Exit or OK was pressed. That works well too.

The most time consuming part is getting QJoyPad to work properly, other than that, it’s all sweet!

Apr
25
2007
0

Freeview comes early for DVB-S card owners

TV3 and C4 have appeared on their transponder on D1, along with Radio New Zealand’s National and Concert. They are on frequency 12456000Hz, polarity H at 22500000 symbols/sec.

Freeview launches officially next Wednesday. For more, see the Freeview website. It appears they only have two set top boxes that are official and they cost about $300. The benefit of Freeview is because the channels are not encrypted you are not limited to them.

I’m thinking of writing up a few articles on how to make your own MythBox. Maybe.

Apr
15
2007
0

FreeView in May; how to fix your MythBox

12:51pm · Entertainment ·

May 2nd is the launch date of FreeView. That’s when TV3, C4 and the appropriate Radio New Zealand stations all jump onto the Optus D1 satellite. Currently off the satellite you can get Māori TV, TV One and TV 2.

So, I’ve been busy fixing up my MythBox to get ready for the launch. Still need a larger hard drive, but put in a new PSU as the old one blew out while we were away (and it didn’t record Vicar of Dibley dammit!).

Previously I had been having troubles tuning into the currently single FreeView transponder and been getting TV off the Sky ones. This was because MythTV was recording the values differently for some unknown reason. But I found out with help from the MythTV NZ mailing list. After scanning the channels and picking them up in mythtv-setup, you’ll have to dig into MySQL. As I had PHPMyAdmin installed on my personal computer, I just modified the configuration to use the MythBox’s server. Otherwise, you can just SSH in and use MySQL on the MythBox itself.

The database is called mythconverg, and the username and password can be found by going to Settings » General in MythTV.

If you look in dtv_multiplex, look for the row with the correct frequency 12483000. Delete all the other rows and take note of the mplexid as we’ll need this later. Make sure symbolrate is 22500000 and the polarity is h. modulation also tends to be auto and MythTV should have at least picked up the correct fec as 3/4.

Don’t ask me why MythTV bungled all those values that you typed into the setup to scan the channels!

Jump into channel and have a look to make sure each row has mplexid equal to the one that we took note of above.

Remember, this is what you do after scanning the channels. If you cannot scan, then check your DiSEq settings, making sure that the LNB LOF is 11300000 for both its min and max settings.