From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 19 07:58:50 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DD4D1D3C for ; Thu, 19 Sep 2013 07:58:50 +0000 (UTC) (envelope-from freebsd-multimedia@dino.sk) Received: from mailhost.netlab.sk (mailhost.netlab.sk [84.245.65.10]) (using SSLv3 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 80BC92B8C for ; Thu, 19 Sep 2013 07:58:50 +0000 (UTC) Received: from wind.dino.sk (a067.b0.elvisdk.sk [85.248.24.67]) (AUTH: LOGIN milan) by mailhost.netlab.sk with ESMTPA; Thu, 19 Sep 2013 09:53:48 +0200 id 004FC9D7.523AAD8C.00010AD6 Date: Thu, 19 Sep 2013 09:53:37 +0200 From: Milan Obuch To: Juergen Lock Subject: Re: ITE Technologies, Inc. DVB-T TV Stick, part 2 - remote Message-ID: <20130919095337.6124b56f@wind.dino.sk> In-Reply-To: <20130909195447.GA38609@triton8.kn-bremen.de> References: <20130829214227.3a6b88ab@zeta.dino.sk> <52204121.90301@bitfrost.no> <201309081945.r88Jj9JW076848@triton8.kn-bremen.de> <20130909090439.6fe4869c@zeta.dino.sk> <20130909195447.GA38609@triton8.kn-bremen.de> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; i386-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 07:58:50 -0000 On Mon, 9 Sep 2013 21:54:47 +0200 Juergen Lock wrote: > On Mon, Sep 09, 2013 at 09:04:39AM +0200, Milan Obuch wrote: > > On Sun, 8 Sep 2013 21:45:09 +0200 (CEST) > > Juergen Lock wrote: > > > > > In article <20130830144218.0003446a@zeta.dino.sk> you write: > > > >On Fri, 30 Aug 2013 08:52:17 +0200 > > > >Hans Petter Selasky wrote: > > > > > > > >> On 08/29/13 21:42, Milan Obuch wrote: > > > >> > Hi, > > > >> > > > > >> > as now I can watch TV with my LV52T stick, I would like to > > > >> > find how to use remote controller. I think this part of > > > >> > stick presents itself as USB HID device, /dev/uhid0 gets > > > >> > created on attachment. > > > >> > > > > >> > As a blind shot I tried > > > >> > > > > >> > > > >> Hi, > > > >> > > > >> Usually webcamd will grab the remote part too. Have a look at > > > >> lircd. > > > > > > See if you get a /dev/input/eventX device node, if yes you can > > > test the remote with: > > > > > > ir-keytable -d /dev/input/event0 -t > > > > > > (or whatever one you get; ir-keytable belongs to > > > multimedia/v4l-utils.) If it works you can setup lirc, see it's > > > pkg-message. > > > > > > > When should /dev/input/event0 get created? > > By webcamd at the same time as /dev/dvb/adapterX/*. > > > I see no such file on my system. > > [ snip ] I did some more testing with some outcome... First I rebuild multimedia/webcamd port with DEBUG on. Then, starting webcamd I got debugging messages - I leave lines marked with DBG out for now, the rest was Linux video capture interface: v2.00 lirc_dev: IR Remote Control driver registered, major 14 IR NEC protocol handler initialized IR RC5(x) protocol handler initialized IR RC6 protocol handler initialized IR JVC protocol handler initialized IR Sony protocol handler initialized IR RC5 (streamzap) protocol handler initialized IR SANYO protocol handler initialized IR LIRC bridge handler initialized b2c2-flexcop: B2C2 FlexcopII/II(b)/III digital TV receiver chip loaded successfully uvcvideo: Unable to create debugfs directory USB Video Class driver (1.1.1) cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1 au0828 driver loaded pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner pvrusb2: Debug mask is 31 (0x1f) USBVision USB Video Device Driver for Linux : 0.9.11 Em28xx: Initialized (Em28xx dvb Extension) extension Attached to ugen4.2[0] INFO: : : found a 'ITE 9135(9006) Generic' in warm state INFO: : : will pass the complete MPEG2 transport stream to the software demuxer DVB: registering new adapter (ITE 9135(9006) Generic) it913x-fe: ADF table value :00 it913x-fe: Crystal Frequency :12000000 Adc Frequency :20250000 ADC X2: 01 it913x-fe: Tuner LNA type :51 INFO: : DVB: registering adapter 0 frontend 0 (ITE 9135(9006) Generic_1)... INFO: : : will pass the complete MPEG2 transport stream to the software demuxer DVB: registering new adapter (ITE 9135(9006) Generic) it913x-fe: ADF table value :00 it913x-fe: Crystal Frequency :12000000 Adc Frequency :20250000 ADC X2: 01 it913x-fe: Tuner LNA type :51 INFO: : DVB: registering adapter 1 frontend 0 (ITE 9135(9006) Generic_2)... INFO: : : 'ITE 9135(9006) Generic' successfully initialized and connected Creating /dev/dvb/adapter0/demux0 Creating /dev/dvb/adapter1/demux0 Creating /dev/dvb/adapter0/dvr0 Creating /dev/dvb/adapter1/dvr0 Creating /dev/dvb/adapter0/frontend0 Creating /dev/dvb/adapter1/frontend0 (sorry for some wrapping). There was DBG one line asking for some attention: DBG: : dvb_usbv2_remote_init: I found function mentioned (dvb_usbv2_remote_init) and with some added debug print I know where remote init fails. At line 147 in dvb_usb_core.c file there is a comment saying 'disable rc when there is no keymap defined'. So it looks like that's what I am missing - debug print after this point is not reached. > Can you test the remote on a (recent, possible live?) Linux, see > if you get a /dev/input/event node for it there? Maybe the driver > simply doesn't know about the remote yet... > Well, I would need a pointer to some image I could download and burn a CD with or put it to a USB flash to test... My system level linux knowledge is zero, so I need precise howto for this. Anyway, given the finding written above I feel the question now should be 'how will I define keymap for remote' assuming rc in mentioned comment means 'remote control'... Regards, Milan