Project

General

Profile

HowTo: Configuring your HDHomeRun network tuner in Ubuntu and derivatives (Mint, Trisquel, etc...)

Added by Fabian Rodriguez about 12 years ago

Source:
https://sourceforge.net/apps/trac/dvbhdhomerun/
https://sourceforge.net/apps/trac/dvbhdhomerun/wiki/UbuntuPackages

These packages are for Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04 and 12.10. See the above link and FAQ for more information.

The DVBHDHomerun project provides a user application (userhdhomerun) and a kernel module that uses DKMS (so, rebuild automatically after kernel upgrades).

This is available from a personal package archive (PPA) in Launchpad so updates should be automatic, as well as startup/modules loading at boot.

Open a terminal and follow these steps for initial installation:

sudo add-apt-repository ppa:tfylliv/dvbhdhomerun
sudo apt-get update
sudo apt-get install dvbhdhomerun-dkms dvbhdhomerun-utils

You also need to:
1) Install hdhomerun-config
2) Do:
$ hdhomerun-config list
3) Edit /etc/dvbhdhomerun and put the device ID as approriate

(this is bug #11 at https://sourceforge.net/apps/trac/dvbhdhomerun/ticket/11)

Keep in mind you'll need to restart the tvheadend service so TVHeadEnd sees the adapter(s) after setup:
sudo service tvheadend restart


Replies (3)

RE: HowTo: Configuring your HDHomeRun network tuner in Ubuntu and derivatives (Mint, Trisquel, etc...) - Added by Richard Leckinger about 12 years ago

The easiest way to sort the failure of tvheadend to detect the hdhomerun after a reboot is to edit /etc/init/tvheadend.conf to make it wait for the dvbhdhomerun-utils daemon to finish, and it's child process userhdhomerun. You must be sudo:

$ sudo gedit /etc/init/tvheadend.conf

Comment out the existing 'start on' line. See comments in my example, with my changes:

#Replaced start line to force wait until dvbhdhomerun-utils has completed
#at which time it emits dvbhdhomerun
#start on (local-filesystems and net-device-up and started udev-finish)
start on dvbhdhomerun
stop on runlevel [!2345]

expect fork
respawn

#Added an extra 30 second wait before starting tvheadend, as the userhdhomerun
#process in dvbhdhomerun-utils needs to finish completely for tuner discovery

script

sleep 30
followed by existing code

end script

Reboot your machine, give it a minute and then check that tvheadend has correctly detected and loaded your hdhomerun device.

This is elegant and doesn't require messing with update rc.d, which has been deprecated by upstart in ubuntu in any case. This file will likely get overwritten when you update or reinstall tvheadend, but it is easy enough to edit again.

Using tvheadend 3.2~precise from adamsutton STABLE PPA

RE: HowTo: Configuring your HDHomeRun network tuner in Ubuntu and derivatives (Mint, Trisquel, etc...) - Added by K C almost 12 years ago

Hey, for a novice, can you explain what you mean by "followed by existing code" after the sleep 30 command? Do you just mean add the "sleep 30" command to the top of the script subroutine and leave the rest?

Thanks!

RE: HowTo: Configuring your HDHomeRun network tuner in Ubuntu and derivatives (Mint, Trisquel, etc...) - Added by Richard Leckinger almost 12 years ago

What I meant KC3 was NOT to edit any of the other code that's already in that file, just leave it as it is. There's several lines of code that follow that bit that I inserted.

It has been pointed out that this work around causes your machine to be very slow to reboot/shutdown, and other threads have suggested different workarounds that don't have that problem.

See Frank's suggestion here, which I can confirm works for me without the reboot delay:
https://www.lonelycoder.com/redmine/boards/14/topics/3368?r=7024#message-7024

    (1-3/3)