From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 14 17:59:43 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3961C1065675; Fri, 14 Sep 2012 17:59:43 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id E69108FC1B; Fri, 14 Sep 2012 17:59:42 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 2E27F1E00714; Fri, 14 Sep 2012 19:59:36 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id q8EHwFEA016623; Fri, 14 Sep 2012 19:58:15 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id q8EHwEBb016622; Fri, 14 Sep 2012 19:58:14 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 14 Sep 2012 19:58:14 +0200 To: Benjamin Close Message-ID: <20120914175814.GA15881@triton8.kn-bremen.de> References: <505276C7.1070404@clearchain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <505276C7.1070404@clearchain.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org Subject: Re: mythbackend and webcamd startup issue X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2012 17:59:43 -0000 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...