LibreELEC Krypton/Leia/Agile build for Odroid C2, Rock64, WeTek Hub, WeTek Play2

  • GDPR-1

    I was just wondering if the ok button on your remote worked. I get no response when I press it.

    I found this error in the kodi log file when I press OK:

    Code
    CLinuxInputDevice::KeyEvent: TranslateKey returned XBMCK_UNKNOWN from code(352)

    But if I drop out of kodi, and look at the ir-keytable test I see:

    Code
    LibreELEC:~/.kodi/temp # ir-keytable -s rc1 -t
    Testing events. Please, press CTRL-C to abort.
    1514244056.683666: event type EV_MSC(0x04): scancode = 0x800f0422
    1514244056.683666: event type EV_KEY(0x01) key_down: KEY_OK(0x0160)
    1514244056.683666: event type EV_SYN(0x00).
    1514244056.841609: event type EV_MSC(0x04): scancode = 0x800f0422
    1514244056.841609: event type EV_SYN(0x00).
    1514244057.091590: event type EV_KEY(0x01) key_up: KEY_OK(0x0160)
    1514244057.091590: event type EV_SYN(0x0


    Update:

    Looks like this might need to be updated at the code level.

    I found this git where they did it for the wii mote with a similar issue.

    Add mapping codes for the wiimote by tirithen · Pull Request #13139 · xbmc/xbmc · GitHub

    Would you consider adding these three keycodes?

    It would give the remote a lot of functionality.

    + { 352 , XBMCK_RETURN }, // OK

    + { 226, XBMCK_HOME }, // Home (windows button)

    + { 174, XBMCK_ESCAPE }, // Back

    Edited once, last by wizardknight (December 26, 2017 at 1:16 AM).

  • wizardknight I'm aware of the problem that Kodi has limited keymapping. Normally this works cause of eventlircd. Is it running?

    We don't need to patch anything btw. Just use a different rc-maps:

    Copy your keytable and edit KEY_OK to KEY_ENTER for instance. No need to patch anything.

  • GDPR-1

    The D pad on the remote works fine, so I don't think eventlircd is having issues.

    First I copied the keymap:

    Code
    cp /usr/lib/udev/rc_keymaps/rc6_mce /storage/.config/rc_keymaps/rc6_mce

    Second I edited it.

    I fixed the play/pause button, OK, and back.

    Here is my keymap if anyone wants to use it rather than reinventing the wheel.

    Just put it in /storage/.config/rc_keymaps/ or \\LIBREELEC\Configfiles\rc_keymaps if you have samba running.

    It has all the basics working. Volume, mute, D-pad, OK, back, zombie release, play/pause, fast forward, reverse.

    Edited 2 times, last by wizardknight (December 27, 2017 at 6:01 AM).

  • Does anyone have Harmony Bluetooth working with this build? When I enable, it keeps flipping between showing the Harmony Keyboard as paired and "no devices found". I tried resetting the hub to see if it would force a re-pair, but no joy.

  • WOW is fast boot and speeder thanck you GDPR-1 and vdr is work

    but Some remote buttons not work . i have wetek play2

    The new builds are based on Amlogic Nougat kernel. The mapping is done in dtb now IIRC. I hope I can fix meson-ir soon so we can move away from amremote and lirc.

  • Well, I have a strange 'error' , with build 22:

    I'm using lcdproc together with xbmc plugin.

    The problem is, when the screensaver enters, instead of showing the time (wit appropriate variables) it shows 00:00).

    It might be a kodi issue, though...