HDHomeRun MythTV Instructions

MythTV website

MythTV - http://www.mythtv.org

Ubuntu

Step by step instructions for the HDHomeRun + MythTV on Ubuntu are maintained as part of the Ubuntu help website: https://help.ubuntu.com/community/HDHomeRun

HDHomeRun Config Utility

1) Download the latest libhdhomerun from downloads.

2) Extract and make:

tar -xzf libhdhomerun_xxxxxxxx.tgz
cd libhdhomerun
make

3) Copy hdhomerun_config to /usr/local/bin/

cp hdhomerun_config /usr/local/bin/

4) Discover the HDHomeRun:

hdhomerun_config discover

HDHomeRun Firmware

1) Check the current firmware version:

hdhomerun_config <device id> get /sys/version

2) Download the latest firmware from downloads.
If the HDHomeRun is already running the latest firmware then no need to upgrade.

3) Upgrade HDHomeRun:

hdhomerun_config <device id> upgrade <filename>

Obtaining MythTV

Many Linux distributions include pre-compiled MythTV packages.
Pre-compiled packages are normally the easiest way to install MythTV.

For Ubuntu Feisty the Mythbuntu repository is recommended: http://www.mythbuntu.org/auto-builds

If compiling from source you should use the 0.20 fixes branch rather than the original 0.20 tgz:

svn co http://svn.mythtv.org/svn/branches/release-0-20-fixes/mythtv
svn co http://svn.mythtv.org/svn/branches/release-0-20-fixes/myththemes
svn co http://svn.mythtv.org/svn/branches/release-0-20-fixes/mythplugins

Setting up MythTV

Step by step instructions for setting up MythTV for use with the HDHomeRun are maintained on the HDHomeRun page on the Ubuntu help website.

The instructions under the section "Setting up MythTV" apply to all distributions.

LIRC (IR remote control support)

The HDHomeRun has an IR receiver and can be used with LIRC.

Generating a configuration file

The LIRC website contains a number of user submitted configuration files, browsable as a directory or downloadable as a file. If you're able to find a configuration file for your remote, save it as /etc/lirc/lircd.conf

- or -

If you're unable to find a configuration file you can generate one with irrecord:

1) Configure the HDHomeRun to send IR commands to LIRC:

hdhomerun_config <device id> set /ir/target "<ip address>:5000 no_clear"

2) Run irrecord in UDP mode, this will generate a configuration file in the current directory. (note: lircd must not be running)

irrecord -H udp -d 5000 "<name of remote>"

3) copy the resulting configuration file to lircd.conf

sudo mv "<name of remote>" /etc/lirc/lircd.conf

Running lircd

You will need to be running the lirc daemon (lircd) in order to use IR with your applications.

1) Configure the HDHomeRun to send IR commands to LIRC:

hdhomerun_config <device id> set /ir/target "<ip address>:5000 no_clear"

2) Run lircd in UDP mode:

lircd -H udp -d 5000

3) Test with irw:

irw

Troubleshooting

MythTV unable to find the HDHomeRun

If you are running a firewall then try temporally disabling it in order to test if it is blocking the HDHomeRun.

If you have more than one network interface and MythTV cannot find the HDHomeRun then you need you to install a newer MythTV build from the 0.20 fixes branch.

Packet loss

On slower machines or machines under high load the maximum receive socket buffer size for the system should be increased to 1MB:

sysctl -w net.core.rmem_max=1048576