2016-05-28, 08:21
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
.kodi/userdata/keymaps/keyboard.xml
When I run 'sudo ir-keytable -t' and press 'stop' button on remote:
When I run 'sudo showkey' and press 'stop' button on remote:
But Kodi's debug log shows nothing...
However, when I press 'x' on the physical keyboard 'sudo showkey' shows:
(exactly the same as when I pressed 'stop' button on remote)
and this time Kodi prints to debug log:
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...
Any idea what is going on? Why does Kodi not recognize these keys coming from remote?
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
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...
Any idea what is going on? Why does Kodi not recognize these keys coming from remote?