HID Remote Setup

  • Hello,

    I used an USB IR to HID receiver based on IRMP for years, initially on X86 machines and then on ARM based devices. It used the "hid_mapper" tool to test, map and decode the IR stream.

    Now I have a new machine with the latest LibreELEC, but the remote doesn't work anymore: The device is recognized, but hid_mapper can't seem to find it.

    After a few searches, I discovered that newer LibreELEC handle the decoding internally; I've been able to set up a (partially) working remote, however I have a lot of problems:

    I'm getting a lot of ghost presses, sometimes the remote is stuck (LE receives the same key continuously) and generally it doesn't work as good as it used to be with "hid_mapper".


    So, I have a few requests:

    Is there an help page on how to set-up an HID based remote?

    Is it possible to make "hid_mapper" work again? Failing that, can someone tell me how to fix the ghost presses/stuck inputs?

    Thanks

  • That's for Apple devices? But I have (had) a different problem.

    Anyway, I think I found the problem and a solution.:)

    The IR-receiver is correctly detected:

    [2.277718] hid-generic 0003:16C0:05DF.0003: hiddev96,hidraw2: USB HID v1.01 Device [www.dvbviewer.info USB IR Remote Receiver] on usb-0000:00:14.0-2.4/input0

    And in the past I used this command in the autostart.sh:

    Code
    hid_mapper64 --manufacturer 'www.dvbviewer.info' --product 'USB IR Remote Receiver' --map 'remote.map' --disable-repetition

    Unfortunately the hid_mapper tool doesn't work anymore, but by activating the "Enable HID remote" in the libreELEC settings, this command is automatically launched:

    Code
    /usr/bin/hid-remote --lookup-id --manufacturer 16c0 --product 05df --map /storage/.config/hid_remote/remote.map

    Note the missing "--disable-repetition". Without that option I get ghost button presses and erratical behavior.

    I've disabled the "Enable HID remote" setting and put the command below in the autostart.sh and now it works correctly.

    Code
    /usr/bin/hid-remote --lookup-id --manufacturer 16c0 --product 05df --map /storage/.config/hid_remote/remote.map --disable-repetition &


    A couple more questions:

    How do I disable eventlircd?
    How can I change the "Enable Hid remote" so that the disable repetition flag is set?