Keycodes for OSMC Remote Control

Hi,

I’ve bought one of the latest RF OSMC remotes. It’s working perfectly with OSMC & I’d like to use it with other Linux apps.

I’ve been using showkey to identify the keycodes that the remote generates. I’ve identified the codes for most of the keys (Arrows, OK, I, Vol- Vol+), but the other keys aren’t detected.

Is there a list of the keycodes for this remote? I believe that the Play button acts as a ‘standard’ multimedia keyboard since it will control Windows media playing.

Any help would be appreciated!

-Andy

I’ve not used showkey before – we usually use evtest to check key values.

Here are the original keymaps (based on this layout)

Key First Generation Second Generation Third Generation
1 KEY_HOME(102) KEY_HOME(102) KEY_ESC(1)
2 KEY_INFO(166) KEY_I(23) - mapped to KEY_INFO via eventlircd KEY_I(23)
3 KEY_UP(103) KEY_UP(103) KEY_UP(103)
4 KEY_LEFT(105) KEY_LEFT(105) KEY_LEFT(105)
5 KEY_ENTER(28) - mapped to KEY_OK via eventlircd KEY_ENTER(28) - mapped to KEY_OK via eventlircd KEY_ENTER(28)
6 KEY_RIGHT(106) KEY_RIGHT(106) KEY_RIGHT(106)
7 KEY_DOWN(108) KEY_DOWN(108) KEY_DOWN(108)
8 KEY_BACK(158) KEY_BACK(158) KEY_BACK(158)
9 KEY_CONTEXT_MENU(0x1b6) (mapped to KEY_TITLE via eventlircd) KEY_C(46) (mapped to KEY_TITLE via eventlircd) KEY_C(46)
10 KEY_PLAYPAUSE(146) KEY_PLAYPAUSE(164) KEY_PLAYPAUSE(164)
11 KEY_STOP(128) KEY_STOP(128) KEY_STOP(128)
12 KEY_REWIND (168) KEY_MINUS(12) (mapped to KEY_VOLUMEDOWN via eventlircd) KEY_MINUS(12)
13 KEY_FASTFORWARD (208) KEY_EQUAL(13) (mapped to KEY_VOLUMEUP via eventlircd) KEY_EQUAL(13)
LOWBAT N/A N/A KEY_F2(60)

Those key numbers in brackets come from the kernel, i.e. linux/input-event-codes.h at master · torvalds/linux · GitHub.

Hi Sam,

Thanks for the clear answer & a reference straight back to Torvalds :slight_smile: