From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 23 21:41:53 2013 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 781309BB for ; Mon, 23 Sep 2013 21:41:53 +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 F1EBB2C19 for ; Mon, 23 Sep 2013 21:41:52 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 4BB511E007B9; Mon, 23 Sep 2013 23:41:45 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.5/8.14.4) with ESMTP id r8NLeSeV076487; Mon, 23 Sep 2013 23:40:28 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.5/8.14.3/Submit) id r8NLeSY6076486; Mon, 23 Sep 2013 23:40:28 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Mon, 23 Sep 2013 23:40:28 +0200 To: Milan Obuch Subject: Re: ITE Technologies, Inc. DVB-T TV Stick, part 2 - remote Message-ID: <20130923214027.GA75944@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> <20130919095337.6124b56f@wind.dino.sk> <20130919185348.GA82263@triton8.kn-bremen.de> <20130922175932.35562b55@zeta.dino.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130922175932.35562b55@zeta.dino.sk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org, Juergen Lock 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: Mon, 23 Sep 2013 21:41:53 -0000 On Sun, Sep 22, 2013 at 05:59:32PM +0200, Milan Obuch wrote: > On Thu, 19 Sep 2013 20:53:48 +0200 > Juergen Lock wrote: > > > On Thu, Sep 19, 2013 at 09:53:37AM +0200, Milan Obuch wrote: > > [ snip ] > > > > 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. > > > > > Ok that sounds plausible, the keytable is missing. > > > > > > 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. > > > > > I just looked which live isos I have here and this one seems to > > use a 3.10 Linux kernel which should be new enough to have the > > it913x driver: > > > > http://test.siduction.org/iso/siduction/paintitblack/rqt/amd64_2013-09-09_23-23/siduction-13.1.1-paintitblack-rqt-amd64-201309092323.iso > > > > sha256: > > > > http://test.siduction.org/iso/siduction/paintitblack/rqt/amd64_2013-09-09_23-23/siduction-13.1.1-paintitblack-rqt-amd64-201309092323.iso.sha256 > > > > Help pages: > > > > http://manual.siduction.org/en/welcome-en.htm > > > > I think it's a hybrid iso so should work dd'd to an usb key too. > > If you boot it and open a terminal and the remote works, pressing > > digits on the remote should end up putting the digits in the > > terminal window like if entered from the keyboard. (Yes this is > > different from how webcamd on FreeBSD handles remotes.) > > > > I dd'ed this image to USB flash and booted it on amd64 system. When I > plug DVB stick, /dev/input/event8 is created along with /dev/input/ir > symlink pointing to it. However, pressing keys on remote does not > produce keystrokes... and it does work this way on windows as soon as > the driver is installed. So this means either it does not work > currently or I did something wrong. > > > You could also check lsmod when booted from the iso to see which > > modules got loaded, I think it913x.c would be dvb-usb-it913x. > > > > Yes, that's right. This module is listed in lsmod output once DVB stig > is plugged in. > I meanwhile asked on #linuxtv and was told dvb_usb_it913x keytable missing is a know issue, and also that it's somewhat complicated to fix and that the maintainer for that driver apparently stopped working on it... :( Best, Juergen > > > 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'... > > > > > Yeah I'm not sure what's exactly missing there as I see > > RC_MAP_IT913X_V* entries for all the devices in > > drivers/media/usb/dvb-usb-v2/it913x.c... > > > > Someone else has any idea what to test here? Or how to define required > and missing keymap? > > Regards, > Milan