Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2013 21:45:09 +0200 (CEST)
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        freebsd-multimedia@dino.sk
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: ITE Technologies, Inc. DVB-T TV Stick, part 2 - remote
Message-ID:  <201309081945.r88Jj9JW076848@triton8.kn-bremen.de>
In-Reply-To: <20130830144218.0003446a@zeta.dino.sk>
References:  <20130829214227.3a6b88ab@zeta.dino.sk> <52204121.90301@bitfrost.no>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20130830144218.0003446a@zeta.dino.sk> you write:
>On Fri, 30 Aug 2013 08:52:17 +0200
>Hans Petter Selasky <hps@bitfrost.no> 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.

>> Not sure if it supports /dev/uhidX . You could also try uhidd.
>> 
 I think I played once with an uhid remote and couldn't get repeat
to work at least with lirc...  (I then patched the vdr remote plugin
for this as vdr handles repeat differently.)

>> dd if=/dev/uhidX bs=1
>> 
>> --HPS
>> 
>
>I tried dd but nothing happened. Still
>
>0+0 records in
>0+0 records out
>0 bytes transferred
>
>when I press ^T, no matter how many times I press buttons on remote.
>
 Well then the driver probably didn't setup the uhid part and expects
you to use /dev/input instead...  At least I see af9035_rc_query as
well as it913x_rc_query in

	work/webcamd-3.11.0.2/media_tree/drivers/media/usb/dvb-usb-v2/af9035.c

and

	work/webcamd-3.11.0.2/media_tree/drivers/media/usb/dvb-usb-v2/it913x.c

respectively (not quite sure which one your tuner uses, you could
build webcamd with the DEBUG knob enabled and look at the log when
starting it manually to find out, and while you're at it also look
for logs containing "ir_mode=" and "ir_type=" if its af9035.)

>I think there is something missing or I do not understand it
>completely, or both :)
>
 ..or the Linux code doesn't support your tuner's remote or (kinda
less likely) there's still code missing in webcamd.

>Regards,
>Milan

 HTH, and sorry for the late reply...
	Juergen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309081945.r88Jj9JW076848>