[RPi3] OK Button doesn't work on H1 Remote

  • I have a new MX3 style remote, that is working fine on Windows, but Kodi on LibreELEC 12.0.2 does not recognise the multimedia keys. All other keys are working fine, but e.g. vol+/vol-, ffwd/rev etc. don't work.
    In the Kodi keymapper addon there are not codes received when I press any of those keys.

    Vendor ID is 1915 product ID is 1025.

    I tried adding to 51-these-are-not-joysticks-rm.rules, but no change (and it seems like it was properly recognised as a keyb/mouse anyway.

    Trying to follow post #9 instructions I get stuck since evtest is not found. And maybe that wouldn't work over ssh anyway?


    Any tips?

  • Thanks!
    These are linked to a seperate 'event' from the regular keys. In rough order of appearance on the remote:
    KEY_REWIND
    KEY_FASTFORWARD
    KEY_PREVIOUSSONG
    KEY_NEXTSONG

    KEY_SEARCH
    KEY_PLAYPAUSE
    KEY_ZOOMIN
    KEY_ZOOMOUT

    KEY_HOMEPAGE
    KEY_BACK
    KEY_VOLUMEUP
    KEY_VOLUMEDOWN
    KEY_MUTE

    KEY_CONFIG
    KEY_MAIL
    KEY_WWW

    I guess all of these are not recognised by Kodi and there is recent discussion on that: https://github.com/xbmc/xbmc/issues/26884

    It's clear to me if there is a timeline on the fix yet. So I'll get back to post #9. I'll report back how far I get...

  • It looks similar to wha is described in posts #20-#25, however this is on a Kodi/libreelec install straight from the official page. The remote is linked to 3 events: 1 for the mouse, #4 for the regular (working) keys and #3 for the 'multimedia' keys.

    supposedly kodi can see all:

    Code
    Wyse5070:~/.config/hwdb.d # lsof |grep /dev/input
    506     /usr/lib/systemd/systemd-logind 10      /dev/input/event4
    506     /usr/lib/systemd/systemd-logind 16      /dev/input/event1
    506     /usr/lib/systemd/systemd-logind 17      /dev/input/event0
    506     /usr/lib/systemd/systemd-logind 18      /dev/input/event3
    2438    /usr/lib/kodi/kodi.bin  17      /dev/input/event2
    2438    /usr/lib/kodi/kodi.bin  18      /dev/input/event3
    2438    /usr/lib/kodi/kodi.bin  19      /dev/input/event4
    2438    /usr/lib/kodi/kodi.bin  20      /dev/input/event5

    but the log shows no presses for event3 (it does for event4):

    https://paste.libreelec.tv/valued-panther.log

    At the end I pressed the '1', '2', '3' keys (which show) and then a bunch of the multimedia keys (but they don't show up).

  • I created the 70-local-keyboard.hwdb file:

    Code
    evdev:input:b0003v1915p1025*
     KEYBOARD_KEY_c00b4=enter

    and then abit modified from post #9 (deprecated command):

    Code
    systemd-hwdb update
    udevadm trigger -s input

    now the KEY_REWIND shows up as KEY_ENTER:

    Code
    Event: time 1751810063.011279, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00b4
    Event: time 1751810063.011279, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0

    but Kodi still ignores it.

    However here it seems to think event3 is mouse? I somehow can't get proper output from the command, it messes with the console

    udevadm info /dev/input/event3

  • I guess the problem is this maybe?

    from the output of udevadm info /dev/input/event3:

    Code
    E: ID_INPUT=1
    E: ID_INPUT_TABLET=1
    E: ID_INPUT_TABLET_PAD=1
    E: ID_INPUT_KEY=1

    but I don't know how to fix that.