[linux-dvb] Re: remote controls for integrated ir-receivers

Markus Rechberger mrechberger at gmail.com
Mon Sep 18 14:43:58 CEST 2006


Hi,

On 9/18/06, Jan Schenk <jan.schenk at weltderwunder.de> wrote:
> On Monday 18 September 2006 14:07, you wrote:
> > Hi,
> >
> > did you try to enable debugging for the dvb-usb module?
> >
> > parm:           debug:set debugging level
> > (1=info,xfer=2,pll=4,ts=8,err=16,rc=32,fw=64 (or-able)). (debugging is
> > not enabled) (int)
> > parm:           disable_rc_polling:disable remote control polling
> > (default: 0). (int)
> >
> > modprobe dvb-usb debug=32 (for remote control debugging I guess)
>
> not yet, what does ist do? writing rc raw values to log?
> i'll try tonight ...
>

think it should print the values for the pressed keys yes..

> >
> > here are the current values for your remote control (dtt200u.c):
> > /* remote control */
> > /* key list for the tiny remote control (Yakumo, don't know about the
> > others) */ static struct dvb_usb_rc_key dtt200u_rc_keys[] = {
> >         { 0x80, 0x01, KEY_MUTE },
> >         { 0x80, 0x02, KEY_CHANNELDOWN },
> >         { 0x80, 0x03, KEY_VOLUMEDOWN },
> >         { 0x80, 0x04, KEY_1 },
> >         { 0x80, 0x05, KEY_2 },
> >         { 0x80, 0x06, KEY_3 },
> >         { 0x80, 0x07, KEY_4 },
> >         { 0x80, 0x08, KEY_5 },
> >         { 0x80, 0x09, KEY_6 },
> >         { 0x80, 0x0a, KEY_7 },
> >         { 0x80, 0x0c, KEY_ZOOM },
> >         { 0x80, 0x0d, KEY_0 },
> >         { 0x80, 0x0e, KEY_SELECT },
> >         { 0x80, 0x12, KEY_POWER },
> >         { 0x80, 0x1a, KEY_CHANNELUP },
> >         { 0x80, 0x1b, KEY_8 },
> >         { 0x80, 0x1e, KEY_VOLUMEUP },
> >         { 0x80, 0x1f, KEY_9 },
> > };
>
> yes, i found these lines. now would pasting
> ---snipp
> /* Hauppauge NOVA-T USB2 keys */
> static struct dvb_usb_rc_key haupp_rc_keys [] = {
>         { 0x1e, 0x00, KEY_0 },
>         { 0x1e, 0x01, KEY_1 },
>         { 0x1e, 0x02, KEY_2 },
>         { 0x1e, 0x03, KEY_3 },
>         { 0x1e, 0x04, KEY_4 },
>         { 0x1e, 0x05, KEY_5 },
>         { 0x1e, 0x06, KEY_6 },
>         { 0x1e, 0x07, KEY_7 },
>         { 0x1e, 0x08, KEY_8 },
>         { 0x1e, 0x09, KEY_9 },
>         { 0x1e, 0x0a, KEY_KPASTERISK },
>         { 0x1e, 0x0b, KEY_RED },
>         { 0x1e, 0x0c, KEY_RADIO },
>         { 0x1e, 0x0d, KEY_MENU },
>         { 0x1e, 0x0e, KEY_GRAVE }, /* # */
>         { 0x1e, 0x0f, KEY_MUTE },
>         { 0x1e, 0x10, KEY_VOLUMEUP },
>         { 0x1e, 0x11, KEY_VOLUMEDOWN },
>         { 0x1e, 0x12, KEY_CHANNEL },
>         { 0x1e, 0x14, KEY_UP },
>         { 0x1e, 0x15, KEY_DOWN },
>         { 0x1e, 0x16, KEY_LEFT },
>         { 0x1e, 0x17, KEY_RIGHT },
>         { 0x1e, 0x18, KEY_VIDEO },
>         { 0x1e, 0x19, KEY_AUDIO },
>         { 0x1e, 0x1a, KEY_MEDIA },
>         { 0x1e, 0x1b, KEY_EPG },
>         { 0x1e, 0x1c, KEY_TV },
>         { 0x1e, 0x1e, KEY_NEXT },
>         { 0x1e, 0x1f, KEY_BACK },
>         { 0x1e, 0x20, KEY_CHANNELUP },
>         { 0x1e, 0x21, KEY_CHANNELDOWN },
>         { 0x1e, 0x24, KEY_LAST }, /* Skip backwards */
>         { 0x1e, 0x25, KEY_OK },
>         { 0x1e, 0x29, KEY_BLUE},
>         { 0x1e, 0x2e, KEY_GREEN },
>         { 0x1e, 0x30, KEY_PAUSE },
>         { 0x1e, 0x32, KEY_REWIND },
>         { 0x1e, 0x34, KEY_FASTFORWARD },
>         { 0x1e, 0x35, KEY_PLAY },
>         { 0x1e, 0x36, KEY_STOP },
>         { 0x1e, 0x37, KEY_RECORD },
>         { 0x1e, 0x38, KEY_YELLOW },
>         { 0x1e, 0x3b, KEY_GOTO },
>         { 0x1e, 0x3d, KEY_POWER },
> };
> snapp---
> from nova-t-usb2.c make a nova-t remote work?

I'm not sure about the first value 0x80/0x1e the second one at least
looks like it identifies a key.
But in the end it should work if you modify that table as long as the
remote control protocol is supported by your device.

Markus



More information about the linux-dvb mailing list