New remote with airmouse keymappings.

  • Hello,

    i have bought a new remote because i did not like the stock one.


    It works great and nearly everything is working fine. But how do i customize the key mappings.?

    i was able with evtest to grep the in input:

    No device specified, trying to scan all of /dev/input/event* Available devices: -

    and keys were recognized by evtest:

    I want to map the KEY_COMPOSE to submenu of kodi. So i tried to customize Lircmap.xml as this file is the only i could find containing KEY_DOWN for example but i did not succeed.

    Maybe it is threaded like a keyboard or gamepad? dmesg output is:

    [ 1369.788829@3] input: 2.4G 2.4G Wireless Device as /devices/c9000000.dwc3/…05/input/input7

    [ 1369.790313@3] hid-generic 0003:0C45:5101.0005: input,hidraw0: USB HID v1.01 Keyboard [2.4G 2.4G Wireless Device] on

    [ 1369.798221@3] input: 2.4G 2.4G Wireless Device as /devices/c9000000.dwc3/…06/input/input8

    [ 1369.800142@3] hid-generic 0003:0C45:5101.0006: input,hidraw1: USB HID v1.01 Mouse [2.4G 2.4G Wireless Device] on

    [ 1369.806419@2] hid-generic 0003:0C45:5101.0007: hiddev0,hidraw2: USB HID v1.10 Device [2.4G 2.4G Wireless Device] on

    [ 1369.820586@2] input: 2.4G 2.4G Wireless Device as /devices/c9000000.dwc3/…08/input/input9

    [ 1369.823148@2] hid-generic 0003:0C45:5101.0008: input,hidraw3: USB HID v1.01 Gamepad [2.4G 2.4G Wireless Device] on

    What to do next`?



  • Have you found the solution? I also recently bought the same Air mouse, but no luck on Libreelec. Works perfectly on Android & Windows.

    Though, I am able to use the mouse feature, but none of the keys work. Will try to post the debug log soon.

  • derdigge, create file "/storage/.config/hwdb.d/99-rf_remote.hwdb" containing this:

    # RF Remote

    You can map any other key same way (line 3) using normalized scancodes (in hex lowercase) from evtest output, and normalized keycodes (in lowercase with the "key_" prefix removed) from here. Don't lose the obligatory leading space character at keymap rules.