From owner-freebsd-multimedia@freebsd.org Wed Apr 27 08:55:54 2016 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E96AB1E17D for ; Wed, 27 Apr 2016 08:55:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7F116E6 for ; Wed, 27 Apr 2016 08:55:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id 59297B1E17C; Wed, 27 Apr 2016 08:55:54 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58CB9B1E17B for ; Wed, 27 Apr 2016 08:55:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 241C116E4; Wed, 27 Apr 2016 08:55:53 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F1FA01FE023; Wed, 27 Apr 2016 10:55:43 +0200 (CEST) Subject: Re: Problems with webcamd and RTL2832U To: Greg 'groggy' Lehey , multimedia@freebsd.org References: <20160427080137.GQ15485@eureka.lemis.com> From: Hans Petter Selasky Message-ID: <57207F55.2040309@selasky.org> Date: Wed, 27 Apr 2016 10:59:01 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160427080137.GQ15485@eureka.lemis.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 08:55:54 -0000 On 04/27/16 10:01, Greg 'groggy' Lehey wrote: > I'm trying to set up MythTV on a 10.2-STABLE system using an RTL2832U > class tuner and webcamd webcamd-4.2.0.9. The tuner probes as: > > Apr 27 12:36:40 tiwi devd: Executing 'logger Unknown USB device: vendor 0x0bda product 0x2838 bus uhub0' > Apr 27 12:36:40 tiwi root: Unknown USB device: vendor 0x0bda product 0x2838 bus uhub0 > > These IDs are mentioned in https://wiki.freebsd.org/WebcamCompat, > along with the comment: > > Needs webcamd >= 3.10.0.7; seems to be only a bit less sensitive > than my dib0700 tuners (worse reception in low-signal areas); > remotes not supported yet by the Linux rtl28xxu driver and thus by > webcamd; also supported by the comms/dabstick-radio and > comms/rtl-sdr ports > > I run webcamd with the invocation: > > webcamd -N RTL2838UHIDIR-Realtek -S 00000001 -M 0 -v 0 -B > > This creates the devices: > > # ls -lR /dev/dvb/ > total 1 > dr-xr-xr-x 2 root wheel 512 27 Apr 17:54 adapter0 > > /dev/dvb/adapter0: > total 0 > crw-rw---- 1 webcamd webcamd 0x95 27 Apr 17:54 demux0 > crw-rw---- 1 webcamd webcamd 0x96 27 Apr 17:54 dvr0 > crw-rw---- 1 webcamd webcamd 0x97 27 Apr 17:54 frontend0 > > When I run mythtv-setup and try to access the tuner, I get the > messages: > > 2016-04-27 17:27:43.168109 W DiSEqCDevTree: No device tree for cardid 1 > 2016-04-27 17:27:57.021513 W DiSEqCDevTree: No device tree for cardid 1 > > ktrace tells me: > > 3391 mythtv-setup CALL openat(AT_FDCWD,0x8608eb598,0x2,0) > 3391 mythtv-setup NAMI "/dev/dvb/adapter0/frontend0" > 3391 mythtv-setup RET _umtx_op -1 errno 60 Operation timed out > ... > 3391 mythtv-setup CALL write(0x1,0x7fffdfbfb640,0x49) > 3391 mythtv-setup GIO fd 1 wrote 73 bytes > "2016-04-27 17:04:39.188786 W DiSEqCDevTree: No device tree for cardid 1 > " > 3391 mythtv-setup RET write 73/0x49 > > There's nothing of importance between the attempt to open > /dev/dvb/adapter0/frontend0 and the error message, so clearly that's > the reason for the message, even if it's not quite appropriate. > > I don't see any mention of rtl28xxu in current documentation, and no > way to specify a driver in the man page. Can I assume that this is an > undocumented change? Any ideas how to corner the problem? > Hi, 1) Check that you have only one instance of webcamd running. 2) Test device with w_scan utility (from ports) first. 3) MythTV: ensure you configure correctly DVB-T / S / S2 and so on. --HPS