From owner-freebsd-questions@FreeBSD.ORG Sun Feb 19 02:37:31 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 C9ECE1065670 for ; Sun, 19 Feb 2012 02:37:31 +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 78FC08FC12 for ; Sun, 19 Feb 2012 02:37:31 +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 63FFB5C28 for ; Sun, 19 Feb 2012 12:50:57 +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 390515C22 for ; Sun, 19 Feb 2012 12:50:57 +1000 (EST) Message-ID: <4F405F4A.3080309@herveybayaustralia.com.au> Date: Sun, 19 Feb 2012 12:32:42 +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: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: webcamd and device numbering X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 02:37:31 -0000 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 This is a real problem because 1. MPlayer only accepts 0-4, and 2. GStreamer (including xine) only accept 1-16. I tried working out how to resolve the issue any sane way; and then I resorted to some quick hacks. I tried uding devfs.rules for links before I found out it can't do that at all. devfs.conf is no good, as it sets them up to begin with. And running some commands in rc.local didn't work: `ln -s /dev/dvb/adapter8 /dev/dvb/adapter1` and so forth. I googled and googled and there seem to be no real fix as webcamd won't work without hal and relies on it for the numbering (but borks it continuously). I've tried updates and so forth, but all to no avail. I'm not too worried about a permanent fix because hal's death bells have tolled, but I do need to fix this as it is really getting annoying now - the server is on continuously but can go down from time to time and catches the unwary :) (like when a scheduled recording which requires say adapter1 finds it no longer there) I'm using webcamd-3.2.0.2, which I recently updated. Cheers