Posts by Shoog

    OK folks,
    I love this build and it works great for me - apart from my remote control.
    I have a dvbsky s850 card which is supported by this build nicely. However the way I had my remote setup previously when I was running Lubuntu under kodi was to use a simple ir-keytables configuration to take the raw keypresses and translate them into Kodi keyboard controls. Worked like a dream on my old system. I tried simply copying over my autostart.sh and my remote config file and only a few keys worked.
    Turns out that the KERNEL now supports my remote using rc-dvbsky.c. This means that it uses a complex chain from ir-keytable to LIRC so even disabling LIRC on boot fails to get my setup working or to override the KERNEL driver. Bummer.


    I have been advised that the best way to get this working is to go back to the original sources and modify the KERNEL remnote driver directly before doing a recompile. However in order to do this mammoth task (for me since I have never compiled a KERNEL before) I cannot modify the plain vanilla KERNEL, I need to modify the dvbdriver version of the KERNEL sources.


    So where could I find these sources ???


    Stephen


    File is in linux kernel like build.LibreELEC-Generic.x86_64-8.0-devel/linux-4.8.12/drivers/media/rc/keymaps/rc-dvbsky.c.


    Thanks for that, but it still leaves me in a situation where I need to find the source code of Libreelec_dvb and recompile it.
    Let me also point out that though I am a competent user of Linux I have never compiled a KERNEL in my life.


    Stephen
    [hr]
    So I tried blacklisting the dvbsky driver but could not identify which one it was so no success.


    Next I tried the following autostart.sh file:

    Code
    1. # Kill lirc remote services
    2. systemctl stop eventlircd.service
    3. #start ir-keytable
    4. ir-keytable -c -p RC-5,RC-6 -w/storage/.config/rc_keymaps/myremote


    Unfortunately it seems to kill the ir-keytable functionality as well.
    However ir-keytable -t does in fact detect the raw codes been issued by my remote but doesn't seem to translate them into keypresses corresponding to my myremote file.


    Executing sh autostart.sh produces:

    Code
    1. Read Myremote table
    2. Old keytable cleared
    3. Wrote 32 keycode(s) to driver
    4. Protocols changed to rc-5 rc-6


    Which seems to indicate that ir-keytable is reading myremote, but when I then ask ir-keytable what it is interpreting it still says that it is working with :

    Code
    1. Found /sys/class/rc/rc0/ (/dev/input/event6) with:
    2.     Driver cx88xx, table rc-dvbsky
    3.     Supported protocols: lirc rc-5 jvc sony nec mce-kbd rc-6
    4.     Enabled protocols: rc-5 rc-6
    5.     Name: cx88 IR (Bestunar PS8312 DVB-S/
    6.     bus: 1, vendor/product: 14f1:8312, version: 0x0001
    7.     Repeat delay = 1000 ms, repeat period = 125 ms


    This is obviously not how ir-keytable should work and it seems that despite killing lirc the KERNEL is still loading its prefered driver, however LIRC has to be involved along the chain somewhere since killing LIRC disables the little bit of remote functionality I had.


    Stephen

    Since I am running an already modified version of the source code, and I am not certain that I will be able to find the source code for this specific version, it seems a big step to try to resolve my problem by building a modified version of Libreelec over the top of a modified version. Is there another simpler method to achieve what I need ?


    Stephen

    I did a full system search of my install using find. and it produced no results.


    I have a suspicion that this code is somehow embedded into the Kernel and so is inaccessible to the user. If this is the case the question becomes how do you disable or override this kernel based functionality since my attempts to disable the lircd deamon and introduce a direct ir-keytable pathway has failed so far.
    Could I map the lircd output to a final keyboard minic of my choice ?


    Stephen

    Hi all,
    I have just migrated from a PC based Lubuntu based Kodi box. I am using a dvb-s card from dvbsky and when I had it running on the Lubuntu build I had it setup to use the IR-remote with IR_keytable. I found this very satisfactory and it worked fine after the hassle of setting it up.
    When I migrated and got the card working with the dvb-special build of Libreelec I simply transfered over my autostart.sh file and my remote.config file for the remote from my Lubuntu build. However I found that only a few of the buttons worked out of the box. What seems to be happening is that it is ignoring my ir-keytable setup and automatically setting up a lirc service with the driver;

    Code
    1. Registered IR keymap rc-dvbsky
    2. [    9.837046] input: cx88 IR (Bestunar PS8312 DVB-S/ as /devices/pci0000:00/0000:00:10.0/0000:04:05.2/rc/rc0/input10
    3. [    9.837334] rc0: cx88 IR (Bestunar PS8312 DVB-S/ as /devices/pci0000:00/0000:00:10.0/0000:04:05.2/rc/rc0
    4. [    9.850341] input: MCE IR Keyboard/Mouse (cx88xx) as /devices/virtual/input/input11
    5. [    9.851791] rc rc0: lirc_dev: driver ir-lirc-codec (cx88xx) registered at minor = 0


    So I found out that this is a preconfigured keytable with the following contents;


    So it seems that all I should need to do is modify this file to for my required Kodi keymaps as defined in my Ir-keytable file and the remote should just work as before. Simple.


    However the issue is I do not have a clue as to where this "rc-dvbsky.c - Keytable for DVBSky Remote Controllers" is to be found on the Libreelec file system. Anyone got any understanding of how Lirc is setup within Libreelec ??


    Stephen