From owner-freebsd-questions@FreeBSD.ORG Sun Feb 19 04:42:39 2012 Return-Path: Delivered-To: FreeBSD-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44A9D106564A for ; Sun, 19 Feb 2012 04:42:39 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id EB0C88FC14 for ; Sun, 19 Feb 2012 04:42:38 +0000 (UTC) Received: from mail.unitedinsong.com.au (bell.herveybayaustralia.com.au [192.168.0.40]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 80F495C28; Sun, 19 Feb 2012 14:56:04 +1000 (EST) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.177]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id AE33E5C22; Sun, 19 Feb 2012 14:56:03 +1000 (EST) Message-ID: <4F407C9D.2050309@herveybayaustralia.com.au> Date: Sun, 19 Feb 2012 14:37:49 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: Robert Bonomi , FreeBSD-questions@FreeBSD.org References: <201202190316.q1J3Gxbj081369@mail.r-bonomi.com> In-Reply-To: <201202190316.q1J3Gxbj081369@mail.r-bonomi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: webcamd and device numbering X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 04:42:39 -0000 On 02/19/12 13:16, Robert Bonomi wrote: >> From owner-freebsd-questions@freebsd.org Sat Feb 18 20:42:50 2012 >> Date: Sun, 19 Feb 2012 12:32:42 +1000 >> From: Da Rock >> To: FreeBSD Questions >> Subject: webcamd and device numbering >> >> I've been struggling with this on my own for ages now, and I was >> determined to try and sort it myself. But I'll now eat my humble pie and >> ask for some help :) >> >> I have (I believe I have mentioned this before) 5 dvb tuners in a >> FreeBSD server (8.2): 1 cx88, 2 DiVico dual tuners (that totals 4 >> amongst just the DiVico's). I'm using webcamd to use these (thank God I >> can get away from Linux!), and they work fine except I have to run ln -s >> to link them to the right places after every reboot (Only the Divico's >> use webcamd). So they should look like this: >> >> $ls /dev/dvb/ >> adapter0 adapter1 adapter2 adapter3 >> >> instead: >> >> ls /dev/dvb/ >> adapter0 adapter16 adapter24 adapter8 >> > At least a couple of ways to approach this. > 1) (a bad idea, but simple) wrap 'webcamd' in a script that makes the > symlinks before invoking the actual executable. I don't think that will work because webcamd does the actually device attach itself. Putting in the symlinks first _cant_ happen because there is nothing to link to. > 2) look at devd.conf(5) and add stuff there to create the links for {1,2,3} Again, same problem. webcamd does the work there to attach the devices - but it uses hal to notify and obtain the numbering. I haven't found a way to turn this off as yet. Originally I don't think it used hal at all, somewhere along the line they decided to make inextricable. I may be stuck with the cron job :/ I wonder if I can get it to just happen at boot... my spidey senses are tingling. I'll have to remember where I saw that.