Autostart mythtv (using restartscript)

mythbox:~$ sudo vim /usr/local/bin/

## Automatically restart mythfrontend if it fails.
## Loop the call of mythfrontend.

while [ /bin/true ]
        killall mythfrontend
        killall mythlogserver
        killall mythlcdserver
        mythfrontend -v playback >> /tmp/mythfrontend.log
sleep 2

mythbox:~$ sudo chmod 755 /usr/local/bin/

First enable Automatic login from the gnome Settings panel.
Schedule the script to start after login (using gnome)

mythbox:~$ vim .config/autostart/restartmythtv.desktop

[Desktop Entry]
GenericName=Restart mythfrontend
Comment=Restart mythtfrontend when it crashes

Restart the computer

Kodi and Mythtv

Note: this blog was previously written for XBOX media centre (XBMC). It has been replaced by Kodi since a long time. Please read kodi instead of xbmc below.

In 2010 I wrote:
I recently tried XBMC on one of my mytfrontends. I must say, I was impressed by the user interface.

To run xbmc besides mythfrontend I had to do some tweaking to this mythbuntu frontend. To install, first add these lines to /etc/apt/sources.list

deb jaunty main
deb-src jaunty main

Kodi can nowadays be found in the stable repository of Debian.

Continue reading

Mythtv – Adjust progress bar

# vim /usr/share/mythtv/themes/MythCenter-wide/osd.xml

Find “osd_status”

<window name=”osd_status”>
<fontdef name=”medium” face=”Droid Sans”>

And change:




Restart mythfrontend

The progress bar will show up on top of the screen. This will keep the subtitles visible when pausing and unpausing recordings.

Setting up ATI remote wonder with evdev

Using the official mythtv wiki I managed to get my ATI remote working without lirc on one of my boxes running Ubuntu 11.10. Unfortunately the trick, for some reason, didn’t work on 12.04.

I found a solution on the mythtvtalk forum, using evdev.conf file instead of a statement in xorg.conf

We need to install a patched evdev-driver that will understand keys greater than 255 by giving access to the “event_key_remap option”.

Continue reading

mythtv db update postinstall fails, wrong password

It happened me several times:

During updating mythtv-database package the root password is used. The postinstall script will use mysql password stored in the debconf db, but if in the meantime the mysql rootpassword has changed, the update will break.
To reveal the “old” password, this little script might help:

Continue reading

bluetooth audio (and mythtv)

Today I decided to test a brandnew bluetooth transmitter and receiver which were delivered to me shortly. After some googling I was convinced it should not take to long to configure this.

This transmitter can be connected with the 3.5 jack audio plug to a soundcard audio-out interface.
It is also possible to connect the device to a computer with a USB cable which comes within the package for this purpose. Another purpose of the USB connection is delivering power to the device.

I decided to stick with option 2.
Continue reading

LCD on Fusion remote black

I had some difficulties to enable the LCD on this HTPC. Just for reference a couple of

At first I followed the instructions as in:
The fresh build imon driver didn’t work for me.

Then I stumbled upon:, suggesting me patching the current lcdproc-0.5.2 package to use the imonlcd driver instead.

Update: in the meantime fully documented here. In short in my case:

Continue reading

Mythfrontend menu not visible

Sometimes I use VNC to connect to mythboxes, starting mythfrontend from a xterminal to adjust some settings easily. I discovered that, because I set up one of them to use opengl (selected in settings), to draw the screens, the menu’s weren’t visible anymore, causing a lot of message like this:

QGLContext::makeCurrent(): Cannot make invalid context current.

Switching back to “qt” solves this. Another option is running mythfrontend with a commandline option. This overrides the opengl setting for a session:

mythfrontend -O ThemePainter=qt



Tweaking Mythbuntu

For some time I’m running mythbuntu on one of my mythtv frontends. This because I could not get my ATI wonder to work with lirc in Debian Lenny. By using a mythbuntu livecd I discovered that this remote just worked. First I decided to copy the correct lirc config files to my Debian box, but that did not solve the problem for some reason. Because I did not have the time to troubleshoot I installed mythbuntu on the harddisk. This mythbuntu version is based on the ubuntu Jaunty distro.

Continue reading