I recently bought a variant of the MX3 'air mouse' remote, but the 'Back' and 'Home' buttons aren't working. The other main buttons do, like the 'OK' button and the arrow/cursor ring around it, so I can navigate into libraries and menus and make selections, but can't navigate back out of them again easily. The keyboard on the reverse also appears to be fully functional (albeit from limited search-related testing so far).
I'm running LibreELEC (Omega) 12.2.1 x86_64 on an Intel NUC (model DN2820FYK). I'm using the provided 2.4GHz USB transceiver that came with the remote, plugged into the front USB 2.0 port on the NUC. Within LibreELEC, I've manually installed the System Tools (12.2.0.11) add-on, but otherwise it's a stock 12.2.1 x86_64 image/install.
Connecting via ssh and running lsusb shows my MX3 'air mouse' to be a Nordic Semiconductor variant:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1915:1025 Nordic Semiconductor ASA USB Composite Device
Bus 001 Device 003: ID 0bc2:a013 Seagate RSS LLC Backup+ SL
Bus 001 Device 004: ID 8087:07dc Intel Corp. Bluetooth wireless interface
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Running evtest lists the following input devices:
Available devices:
/dev/input/event0: Sleep Button
/dev/input/event1: Lid Switch
/dev/input/event10: HDA Intel PCH Mic
/dev/input/event11: HDA Intel PCH Headphone
/dev/input/event12: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event2: Power Button
/dev/input/event3: Video Bus
/dev/input/event4: USB Composite Device USB Composite Device Consumer Control
/dev/input/event5: USB Composite Device USB Composite Device Keyboard
/dev/input/event6: USB Composite Device USB Composite Device Mouse
/dev/input/event7: ITE8713 CIR transceiver
/dev/input/event8: eventlircd
/dev/input/event9: HDA Digital PCBeep
Display More
Using evtest I was able to log key presses for the 'Home' and 'Back' buttons via event4 and event5.
Based on that logging, I've tried creating my own /storage/.config/hwdb.d/70-local-keyboard.hwdb file to remap those buttons to standard keyboard inputs as follows:
evdev:input:b0003v1915p1025*
KEYBOARD_KEY_c0224=backspace
evdev:input:b0003v1915p1025*
KEYBOARD_KEY_c0223=esc
I then ran systemd-hwdb update and udevadm trigger -s input to implement the above bindings, and whilst I can now see these button presses logging in evtest as KEY_BACKSPACE and KEY_ESC respectively, Kodi still isn't responding to them as expected. All other button presses on the remote appear to work exactly as before.
Is there something I've missed?