OSMC remote with Ubuntu 20.10

Just to wrap this thing up I did a bit of testing with Linux Mint and this should be something that will work with all three versions of the OSMC remotes.

Make a file at /etc/udev/hwdb.d/osmcrf.hwdb with the following content…

evdev:input:b0003v2017p1689*
 KEYBOARD_KEY_c0226=x
 KEYBOARD_KEY_c00cd=p
 KEYBOARD_KEY_7002e=volumeup
 KEYBOARD_KEY_7002d=volumedown

evdev:input:b0003v2017p1688*
 KEYBOARD_KEY_7004a=esc
 KEYBOARD_KEY_c0060=i
 KEYBOARD_KEY_10084=c
 KEYBOARD_KEY_c0226=x
 KEYBOARD_KEY_c00cd=p
 KEYBOARD_KEY_7002e=volumeup
 KEYBOARD_KEY_7002d=volumedown

evdev:input:b0003v2252p1037*
 KEYBOARD_KEY_7004a=esc
 KEYBOARD_KEY_c0060=i
 KEYBOARD_KEY_10084=c
 KEYBOARD_KEY_c0226=x
 KEYBOARD_KEY_c00cd=p
 KEYBOARD_KEY_c00b3=f
 KEYBOARD_KEY_c00b4=r

…and then reboot for the remap to take effect. Please note that the file must NOT be set with an executable permission. Additionally, notice that there is a single space before each of the “KEYB…” lines and this is required for this to work.

If there is any Linux experts out there that know why when trying to remap to a keyboard multimedia keys “playpause” and “stop” don’t work and might have a solution then I would happy to hear it.

1 Like