New remote with airmouse keymappings.

  • Hello,


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

    ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1


    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: - Pastebin.com


    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:

    [ [email protected]] input: 2.4G 2.4G Wireless Device as /devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-2/1-2:1.0/0003:0C45:5101.0005/input/input7

    [ [email protected]] hid-generic 0003:0C45:5101.0005: input,hidraw0: USB HID v1.01 Keyboard [2.4G 2.4G Wireless Device] on usb-xhci-hcd.0.auto-2/input0

    [ [email protected]] input: 2.4G 2.4G Wireless Device as /devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-2/1-2:1.1/0003:0C45:5101.0006/input/input8

    [ [email protected]] hid-generic 0003:0C45:5101.0006: input,hidraw1: USB HID v1.01 Mouse [2.4G 2.4G Wireless Device] on usb-xhci-hcd.0.auto-2/input1

    [ [email protected]] hid-generic 0003:0C45:5101.0007: hiddev0,hidraw2: USB HID v1.10 Device [2.4G 2.4G Wireless Device] on usb-xhci-hcd.0.auto-2/input2

    [ [email protected]] input: 2.4G 2.4G Wireless Device as /devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-2/1-2:1.3/0003:0C45:5101.0008/input/input9

    [ [email protected]] hid-generic 0003:0C45:5101.0008: input,hidraw3: USB HID v1.01 Gamepad [2.4G 2.4G Wireless Device] on usb-xhci-hcd.0.auto-2/input3


    What to do next`?


    Thanks

    derdigge

  • 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:

    Code
    1. # RF Remote
    2. evdev:input:b0003v0C45p5101*
    3. KEYBOARD_KEY_070065=c

    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.