Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Remote Plugin/DVB-Driver problem



Joerg Schneide wrote:
> Oliver Endriss wrote:
> > Recent drivers use only 6 data bits for the keycode (0..0x3f).
> > For maximum backward compatibilty all address bits are ignored by
> > default, i.e. the driver listens to *all* addresses.
> >
> > Pass the '-a' parameter to av7110_loadkeys and the driver will
> > listen to the specified address only.
>
> In the meantime I found a README refering to the mentioned
> DVB/apps/av7110_loadkeys/README, downloaded the driverpackage
> (because this is not included in the MLD-Plugins), and took a look on
> it.
>
> For my codes beginning at 0x40 up to 0x7f it should be '-a 1', right?

As I wrote before, the old driver ignores the 3 upper address bits.
There are 5 address bits = 32 possible values for the -a option (0..31).
If your codes were in the range 0x40..0x7f, the correct values for 
-a might be 1,5,9,13,17,21,25 or 29.

You have to fix your keymap, too:
All codes must be in the range 0..0x3f:
- For old codes 0x40..0x7f, subtract 0x40.
- For old codes 0x80..0xbf, subtract 0x80.
- For old codes 0xc0..0xff, subtract 0xc0.
 
> After finding out how to pass this parameter I tried it, but with no
> effect at all, adress bits are ignored. Other adress values make no
> difference.

See above. If nothing helps, enable debugging in the driver (add option 
'av7110_ir_debug=1' when loading dvb-ttpci.o) and check the debug 
output: 'addr' is the address value sent by the transmitter.

> In the config.rc file wich controls some settings for the plugins I
> changed this lines
>
> # VDR Remote Plugin Options
> REMOTE_PLUGIN_OPTS="-i /dev/input/event0"
> REMOTE_KEYMAP=/video/haupneu1.rc5
>
> to this
>
> # VDR Remote Plugin Options
> REMOTE_PLUGIN_OPTS="-i /dev/input/event0"
> REMOTE_KEYMAP="-a 1 /video/haupneu1.rc5"

Looks ok.

> 'REMOTE_KEYMAP=-a 1 /video/haupneu1.rc5' did not work: "unknown
> file/directory")

This cannot work.

> The "install" file of the DVB driver plugin:
> ----------------------------------------------
> #!/bin/sh
> . /etc/rc.d/rc.functions
> . /etc/rc.config
>
> KRNL_VER=`uname -r`
>
> cat /tmp/modules.dep >> /lib/modules/$KRNL_VER/modules.dep
> rm /tmp/modules.dep
> cat /tmp/modules.conf >> /etc/modules.conf
> rm /tmp/modules.conf
>
> if [ "$logs" = "1" ];then
>    echo -n "Loading DVB drivers: ";/usr/sbin/rcdvbload;check_status
> else
>    echo -n "Loading DVB drivers: ";/usr/sbin/rcdvbload > /dev/null
> 2>/dev/null;check_status fi
>
> if [ -n "$REMOTE_KEYMAP" ];then
>    av7110_loadkeys $REMOTE_KEYMAP > /proc/av7110_ir
> fi
> -------------------------------------------------
>
> Dont know what all this means, it is possible that the "-a" parameter
> is stripped from the line in the config.rc?
> I get no error message and the /video/haupneu1.rc5 is definetly in
> use. Hope this "linux shell script stuff" is not too off topic.

I think it will work if you fix your keymap and specify the correct 
address value.

Oliver


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index