Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2012 19:58:14 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        Benjamin Close <Benjamin.Close@clearchain.com>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: mythbackend and webcamd startup issue
Message-ID:  <20120914175814.GA15881@triton8.kn-bremen.de>
In-Reply-To: <505276C7.1070404@clearchain.com>
References:  <505276C7.1070404@clearchain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 14, 2012 at 09:43:59AM +0930, Benjamin Close wrote:
> Hi All,
Hi!

>      I've got a dual tv tuner card I'm using with mythtv.

 (Which one btw?)

>  The problem I 
> have is at boot time, despite webcamd starting first, by the time 
> mythbackend starts the device nodes (/dev/dvb/adapter[0|1]) haven't been 
> created. Hence mythbackend claims there is no tuners. A simple: service 
> mythbackend restart  fixes the problem. Has anyone else faced this same 
> issue and worked out a correct fix (rather than a @reboot cron job).

 Yeah webcamd is unusual in that it's device nodes (/dev/video..
/dev/dvb...) appear with a delay after it's rc script is run so
depending on that in the mythbackend rc script won't work (also
because webcamd is actually started via devd not from init I think.)

 The way I worked around this for vdr is by adding an rcvar vdr_waitdvb
defaulting to yes that causes the vdr rc script to start vdr via a
wrapper script /usr/local/bin/vdr-waitdvb that waits for /dev/dvb
nodes to appear, see:

	/usr/ports/multimedia/vdr/files/vdr.in

and

	/usr/ports/multimedia/vdr/files/vdr-waitdvb.in

 HTH, :)  (mythtv maintainer Cc'd)
	Juergen

PS:  Btw this can still be improved in that doing "service vdr stop"
while it's still waiting for dvb nodes to appear won't work yet...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120914175814.GA15881>