The hwdb file above should make any of the three OSMC remotes that have been released work in any current Debian based x11 distro. It will make it such that the buttons will produce the following key mappings…
(button) = (how Kodi sees it)
Home = escape
Info = i
Up = up
Down = down
Left = left
Right = right
OK = return
Back = browser_back
Menu = c
Play = p
Stop = x
Vol- = volume_down
Vol+ = volume_up
FF = f
RW = r
These keys all correspond to things that work with Kodi’s standard keymap. The Kodi keymap I posted above was only written to cover mappings with the native mappings of the remote and the one we are using in OSMC. I will update the keymap to cover this layout as well when I get some time.