v16 Lynec C120 Remote Remap
#1
Hi all, i'm hoping this is the correct place to post. I recently put together a RPi3 running OSMC and Kodi 16.1. I'm using the Lynec C120 remote, however the Home and Menu/context keys on the remote don't operate as expected.

I've checked the log to see what corresponds to the key presses i want to re-map:

13:39:27 53.341717 T:1956320176 WARNING: CLinuxInputDevice::RelEvent: Unknown rel event code: 9
13:39:27 53.421650 T:1956320176 WARNING: Previous line repeats 5 times.
13:39:27 53.421730 T:1956320176 DEBUG: ProcessMouse: trying mouse action rightclick
AND
13:39:32 58.986740 T:1956320176 WARNING: CLinuxInputDevice::RelEvent: Unknown rel event code: 14
13:39:32 58.986935 T:1956320176 DEBUG: Keyboard: scancode: 0x7f, sym: 0x0137, unicode: 0x0000, modifier: 0x0
13:39:32 58.987076 T:1956320176 DEBUG: OnKey: leftwindows (0xf0d6) pressed, action is

Now i added a keyboard.xml file with the following in the hope it will remap those keys to the operations i want. It's currently not working (logs are still coming up the same as above). Keymap.xml file i put in the userdata folder contains the following:
<keymap>
<global>
<keyboard>
<key id='9'>Menu</key>
<key id='14'>ContextMenu</key>
</keyboard>
</global>
</keymap>

I'm obviously not getting the correct codes and probably not even using the correct XML elements and attributes. And guidance would be greatly appreciated!

Cheers...
Reply
#2
Bit more on this, i'm still getting those messages in the log file, but the key presses are now working as expected. Maybe it needed time to pickup the custom keyboard.xml file? I'll report back after i investigate more.

EDIT: The home/back button still not working as expected. It seems i was premature. It is functioning differently when in a few addons/setting screens which is strange as i'm setting the global element. The button must have a program mapping in the system keyboard.xml file somewhere..
Reply

Logout Mark Read Team Forum Stats Members Help
Lynec C120 Remote Remap0