From owner-freebsd-gnome@FreeBSD.ORG Tue Aug 24 20:24:12 2010 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFEF81065673; Tue, 24 Aug 2010 20:24:12 +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 167E38FC0A; Tue, 24 Aug 2010 20:24:11 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 4EA8A1E0021A; Tue, 24 Aug 2010 22:24:10 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id o7OKLJWA039943; Tue, 24 Aug 2010 22:21:19 +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 o7OKLIZG039942; Tue, 24 Aug 2010 22:21:18 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 24 Aug 2010 22:21:18 +0200 To: Hans Petter Selasky Message-ID: <20100824202118.GA38687@triton8.kn-bremen.de> References: <4C66C4BC.4040504@janh.de> <20100820180648.GA90683@triton8.kn-bremen.de> <4C71A635.6070205@freebsd.org> <201008230914.30762.hselasky@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201008230914.30762.hselasky@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: me@janh.de, kde@freebsd.org, Juergen Lock , freebsd-multimedia@freebsd.org, Joe Marcus Clarke , gnome@freebsd.org Subject: Re: kaffeine-1.0 and webcamd based DVB-T? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 20:24:12 -0000 On Mon, Aug 23, 2010 at 09:14:30AM +0200, Hans Petter Selasky wrote: > > > > > > I have Cc'd hps, maybe he has an idea how to get the device index > > > > > > out of a running webcamd for hal to use... (maybe webcamd should > > > also do a setproctitle()?) > > > > Actually, I'd prefer if there was a file or socket from which I could > > read to get this data. hps, is this doable? That is, could I have a > > file or socket that would allow me to map a USB bus/addr to a video (or > > dvb) device ID? > > I think something like this has been discussed before, that perhaps webcamd, > when it is ready updates hald, if present in the system. > > Could you provide me the snprintf() I need and where to send it? Ok I just got the new kaffeine working for direct dvb (i.e. without xvdr://) with both the dvb-s2 and dvb-t tuners by invoking hal-device --add for each dvb device node like below. (well, ignoring audio issues on dvb-s2 h264 channels but those can't have anything to do with hal...) So it seems you can take the udi name that hal uses for the device (or is that always 'usb_device___noserial'?), add a string to it like '_dvb_', use that as arg to 'hal-device --add', and then give that process mostly static info like mine on stdin where only dvb.device (the device node) and info.parent (the original udi name) vary: (Linux also adds linux.device_file, linux.hotplug_type, linux.subsystem, and linux.sysfs_path as you can see in my Linux lshal output earlier in this thread, http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-August/011203.html but it seems at least kaffeine doesn't need those.) #! /bin/sh # add PCTV 452e Sat HDTV Pro USB to hal as /dev/dvb/adapter0 hal-device --add usb_device_2304_21f_noserial_dvb_0 <