v16 Kodi recognizes only certain keys from remote
#1
I'm running Kodi 16.1 on Ubuntu 16.04 on Intel NUC.
I've purged lirc and set up ir-keytable exactly the same way it used to work on my previous installation (Kodi 14.0 on Ubuntu 14.04) where everything worked perfectly.
The problem is that Kodi recognizes only certain keystrokes coming from remote: left, right, up, down, enter - that's about it.
It does not see any other keys, such as x, c, i, space, backspace, etc.
Here are snippets of my setup (on example of 'stop' button of remote mapped to 'x' key):

/etc/rc_keymaps/rc6_mce_kodi
Code:
...
0x800f0419 KEY_X
...

.kodi/userdata/keymaps/keyboard.xml
Code:
...
<x>Stop</x>
...

When I run 'sudo ir-keytable -t' and press 'stop' button on remote:
Code:
1464415890.920494: event type EV_MSC(0x04): scancode = 0x800f0419
1464415890.920494: event type EV_KEY(0x01) key_down: KEY_X(0x002d)
1464415890.920494: event type EV_SYN(0x00).
1464415891.171881: event type EV_KEY(0x01) key_up: KEY_X(0x002d)
1464415891.171881: event type EV_SYN(0x00).

When I run 'sudo showkey' and press 'stop' button on remote:
Code:
keycode  45 press
keycode  45 release

But Kodi's debug log shows nothing...

However, when I press 'x' on the physical keyboard 'sudo showkey' shows:
Code:
keycode  45 press
keycode  45 release
(exactly the same as when I pressed 'stop' button on remote)

and this time Kodi prints to debug log:
Code:
23:13:45 T:139903416695104   DEBUG: Keyboard: scancode: 0x35, sym: 0x0078, unicode: 0x0078, modifier: 0x0
23:13:45 T:139903416695104   DEBUG: OnKey: x (0xf058) pressed, action is Stop

Also, when I switch to desktop and start an editor (or terminal), it sees remote button presses as keys they are mapped to.
So, only Kodi does not want to see them... Sad

Any idea what is going on? Why does Kodi not recognize these keys coming from remote?
Reply
#2
I've just noticed the same issue you had back in 2016.  I'm running Kodi 17.6 on Linux Mint 18.1.  Did you find a solution to this?

So far, I feel I am making great progress.  I have an All-for-one remote working with an iMon LCD (in replacement of the Veris remote).  Linux is picking up all the keys (tested with ir-keytable), now it appears I am just stuck on the Kodi side.
Reply
#3
(2017-12-31, 20:53)danellisuk Wrote: I've just noticed the same issue you had back in 2016.  I'm running Kodi 17.6 on Linux Mint 18.1.  Did you find a solution to this?

So far, I feel I am making great progress.  I have an All-for-one remote working with an iMon LCD (in replacement of the Veris remote).  Linux is picking up all the keys (tested with ir-keytable), now it appears I am just stuck on the Kodi side.
 It turns out I just had to restart X after making the config changes to IR keymap.  Whoops!
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi recognizes only certain keys from remote0