Feature #1354
closedFeature #1232: dynamic dvb device management
TVHeadEnd should wait until TV tuners are up at boot.
100%
Description
I've come across this bug in new installs under Ubuntu 12.04 LTS and Trisquel 6 alpha (GNU/Linux).
This doesn't seem to be a problem with adapters that are in the same system (ie. PCI/USB) but has come up when using the HDHomeRun network-based TV tuners.
I followed this guide to perform a clean-room install of 12.04 LTS:
https://www.lonelycoder.com/redmine/boards/14/topics/3368?r=3548#message-3548
I intentionally didn't follow any of the "start file helpers" etc. advice, but tested this:
1) Go to TVHeadEnd interface
2) Verify adapters aren't up (they aren't) under Configuration > TV adapters > dropdown list
3) Restart TVHeadend:
sudo service tvheadend restart
4) Check again (step 3): adapters are there after a few seconds
At the end of that guide the problem is discussed.
Basically after adding XBMC, TVHEadEnd and DVBHDHomerunPPAs, everything installs properly and the web interface for TVHEadEnd performs as expected. However, the tvheadend service has to be restarted to make the adapters visible to TVHEadEnd. Dmesg and /var/log/syslog show the HDHomerun coming up/visible as expected, but TVHeadEnd won't see them until restarted.
This XBMC forum post provides more details and a workaround:
http://forum.xbmc.org/showthread.php?tid=127803
Waiting for any adapters (not only the HDHomerun) to be up should not slow down startup for other setups.
I don't know enough about upstart to tackle this, but it seems /etc/init/tvheadend.conf should include a condition to wait for the TV tuners hardware to be up, much like it waits for network.
Rebooting