[mythtv-users] backend starting before one of two capture cards is initiated?

Andre mythtv-list at dinkum.org.uk
Mon Jan 24 22:06:34 UTC 2011


On 24 Jan 2011, at 21:55, Nick Rout wrote:

> On Tue, Jan 25, 2011 at 10:35 AM, James Miller
> <gajs-f0el at dea.spamcon.org> wrote:
>> I'm migrating my mythtv (mythbuntu 10.04) to a new machine and have run into
>> a couple of problems. I'll discuss the lesser of those problems in this
>> thread and start a different thread for the other, more severe problem.
>> 
>> The problem is that, once mythfrontend comes up, when I try to watch live
>> TV, one of the two capture cards in my system is missing. I noticed that
>> when I go into myth-setup, the card reappears (I initially thought it was
>> because I did some reconfiguration on that card while in myth-setup, but
>> I've just confirmed that it's more likely the killing and restarting of the
>> back-end, since, in a test I just now did, the card reappeared simply by
>> going into myth-setup without doing any reconfiguration, then quitting it).
>> So, it seems mythbackend is starting before the card gets initialized.
>> 
>> So, what's the solution for this? Do I need to introduce a delay into the
>> loading of mythbackend? If so, how is that best done?
> 
> You can either load a guesstimate sleep x statement into the backend
> startup script, where x is the needed number of seconds, or you can
> get more fancy and test for the presence of the device nodes before
> starting the backend.

I added "started udev-finish" to /etc/init/mythtv-backend.conf the upstart file for myth.
It now reads:

start on (local-filesystems and net-device-up IFACE=lo and started udev-finish)

And that seems to wait until the devices are created.

> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 



More information about the mythtv-users mailing list