LIRCD / Remote Problem since Updating to Version 8

  • hi!

    i have a
    - ONEFORALL URC 7962 and a
    - zbox nano.

    everything worked fine until the update.

    i checked

    mediacenter:/dev/input # ir-keytable
    Found /sys/class/rc/rc1/ (/dev/input/event13) with:
    Driver em28xx, table rc-pinnacle-pctv-hd
    Supported protocols: rc-5 nec rc-6
    Enabled protocols: rc-5
    Name: 2-5: em28178#0 IR
    bus: 3, vendor/product: 2013:025f, version: 0x0001
    Repeat delay = 500 ms, repeat period = 125 ms
    Found /sys/class/rc/rc0/ (/dev/input/event4) with:
    Driver nuvoton-cir, table rc-rc6-mce
    Supported protocols: unknown other lirc rc-5 rc-5-sz jvc sony nec sanyo mce-kbd rc-6 sharp xmp
    Enabled protocols: lirc
    Name: Nuvoton w836x7hg Infrared Remote
    bus: 25, vendor/product: 1050:00c5, version: 0x0062
    Repeat delay = 500 ms, repeat period = 125 ms

    mediacenter:/dev/input # ir-keytable -t -d /dev/input/event4
    Testing events. Please, press CTRL-C to abort.
    nothing happens when pressing keys on the remote.

    dmesg:
    [ 3.008765] nuvoton-cir 00:07: found NCT6779D or compatible: chip id: 0xc5 0x62
    [ 3.043319] Registered IR keymap rc-rc6-mce
    [ 3.043479] input: Nuvoton w836x7hg Infrared Remote Transceiver as /devices/pnp0/00:07/rc/rc0/input7
    [ 3.044471] rc rc0: Nuvoton w836x7hg Infrared Remote Transceiver as /devices/pnp0/00:07/rc/rc0
    [ 3.046472] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops 0xffffffff81d31440)
    [ 3.054433] lirc_dev: IR Remote Control driver registered, major 245
    [ 3.059184] IR LIRC bridge handler initialized
    [ 3.063650] rc rc0: lirc_dev: driver ir-lirc-codec (nuvoton-cir) registered at minor = 0
    [ 3.063699] nuvoton-cir 00:07: driver has been successfully loaded

    this looks quite ok!?

    i have no idea where to start searching.
    any ideas?

    thanks

  • Hi,

    same for me, with version 7 work flawless.

    I have a mac mini with an harmony.

    not sure what i have to check but:


    Code
    LibreELEC (official) Version: 8.0.0
    Lemini:~ # ir-keytable
    /sys/class/rc/: No such file or directory
    Lemini:~ # cd /dev/input/
    Lemini:/dev/input # ls
    event0 event1 event2 event3 event4 event5 mice

    so seems that LE can't see the remote interface.

    But if I configure the Harmony to act as apple remote it works.

    So any hint? Should i provide some logs?

    I try to rollback to 7 and works, again clean install from USB to 8 (so not upgrade) and again not work... 7 again with HDD format and it works, upgrade to 8 nothing.

    I downloaded the log files but i don't know what i have to share (all?)

    Edited once, last by zemaree (February 25, 2017 at 6:51 PM).


  • Could you upload the full dmesg (just do "dmesg | paste" and post the URL) and lsmod output?

    Are you using userspace lirc (i.e. have you create a lircd.conf in the .config dir)? Are you running ir-keytable or other commands via http://autostart.sh/udev rules/... to setup a custom remote configuration? Which protocol/configuration are you using on your oneforall remote, is it MCE?

    If you are using the nuvoton IR receiver (of your zbox) and the remote configured to (rc6) MCE protocol could you try running "ir-keytable -p rc-6 /sys/class/rc/rc0/" (double check if rc0 really is the nuvoton, it could also be rc1 since you have 2 IR receivers installed) and test if you get any events via "ir-keytable -t"?

    It's quite odd that on the nuvoton IR the only enabled protocol is lirc and not lirc + rc-6. The kernel should enable the rc-6 protocol from loading the rc-rc6-mce keymap. But there's also a kernel bug, even if it enables the rc-6 protocol it didn't load the rc-6 protocol decoder - so decoding doesn't work. Manually enabling the protocol (eg via ir-keytable -p) triggers protocol decoder loading and decoding works fine again. I've already reported that bug and it was confirmed: Bug: decoders referenced in kernel rc-keymaps not loaded on boot — Linux media

    so long,

    Hias

  • Hi Hias,

    THANKS!

    in .config there actually really is a
    -rw-r--r-- 1 root root 0 Feb 2 2016 lircd.conf
    but its empty.

    your command produced a strange output
    mediacenter:~/.config # ir-keytable -p rc-6 /sys/class/rc/rc0/
    ir-keytable: Too many arguments
    Try `ir-keytable --help' or `ir-keytable --usage' for more information.
    Protocols changed to rc-6

    seems it set rc-6 for all devices.

    but nevertheless: good WORKaround

    Thank you
    [hr]
    created a

    /storage/.config/autostart.sh with
    #!/bin/bash
    # added temporarily for libreelec 8.0.0
    ir-keytable -p rc-6

    works. will check again with new version of libreelec.

    Edited once, last by P3pp3Rde (March 2, 2017 at 5:53 PM).


  • in .config there actually really is a
    -rw-r--r-- 1 root root 0 Feb 2 2016 lircd.conf
    but its empty.


    Then better remove it :)

    Quote


    your command produced a strange output
    mediacenter:~/.config # ir-keytable -p rc-6 /sys/class/rc/rc0/
    ir-keytable: Too many arguments


    ah, sorry, that should have been

    Code
    ir-keytable -p rc-6 -s rc0


    Quote


    created a

    /storage/.config/autostart.sh with
    #!/bin/bash
    # added temporarily for libreelec 8.0.0
    ir-keytable -p rc-6

    works. will check again with new version of libreelec.

    Could you disable the autostart.sh and test if this 8.0.1 preview build works:
    LibreELEC-Generic.x86_64-8.0.1.tar

    so long,

    Hias

  • @HiassofT
    I have the same problem (my remote being "dead" after upgrading to 8.0)
    I tried your build and there has been no change. The system still does not respond to the remote control.

  • I also just freshly installed 8.0 on a X86_64 platform and don't get lirc to work.

    I use a lirc-server in the network and starting lirc from autostart like this helps to get irw showing me all the keypresses:
    mkdir -p /var/run/lirc
    /usr/sbin/lircd -c infrared-pi -O /storage/.config/lirc/lircd_options.conf /storage/.config/lirc/lircd.conf

    ..just kodi is not picking it up, it used to work for me like that.


  • I use a lirc-server in the network and starting lirc from autostart like this helps to get irw showing me all the keypresses:
    mkdir -p /var/run/lirc
    /usr/sbin/lircd -c infrared-pi -O /storage/.config/lirc/lircd_options.conf /storage/.config/lirc/lircd.conf

    ..just kodi is not picking it up, it used to work for me like that.

    You also need to run lircd-uinput (adding the --uinput option of lircd might still work, but this is deprecated). See for example the lircd start script of LE:
    LibreELEC.tv/lircd_helper at libreelec-8.0 · LibreELEC/LibreELEC.tv · GitHub

    so long,

    Hias

    Edited once, last by HiassofT (March 20, 2017 at 7:53 PM).