It seems that Keyboard.xml is not active
#1
Hi,

I'm trying to get extra functions out of my Logitech Harmony 525 by adding a keyboard XML to Kodi 16 Alpha 4. I have added the file in this directory:

C:\Users\USERNAME\AppData\Roaming\Kodi\userdata\keymaps

The file consists of the following for test:

<keymap>
<global>
<keyboard>
<9 mod="ctrl">ActivateWindow(home)</9>
<1 mod="ctrl">ActivateWindow(pictures)</1>
</keyboard>
</global>
</keymap>

For now I am trying to get the keymapping working directly on my keyboard. When it Works there I will implement it on the Harmony.

But it is NOT working on the keyboard. When I enable logging it just tells me that the keys have been pressed but with no action:

21:34:03 T:6340 DEBUG: Keyboard: scancode: 0x1d, sym: 0x0132, unicode: 0x0000, modifier: 0x40
21:34:03 T:6340 DEBUG: CInputManager::OnKey: ctrl-leftctrl (0x1f0d0) pressed, action is
21:34:03 T:6340 DEBUG: ------ Window Deinit (Pointer.xml) ------
21:34:04 T:6340 DEBUG: Keyboard: scancode: 0x0a, sym: 0x0039, unicode: 0x0000, modifier: 0x40
21:34:04 T:6340 DEBUG: CInputManager::OnKey: ctrl-nine (0x1f039) pressed, action is
21:34:04 T:6340 DEBUG: Keyboard: scancode: 0x1d, sym: 0x0132, unicode: 0x0000, modifier: 0x40
21:34:04 T:6340 DEBUG: CInputManager::OnKey: ctrl-leftctrl (0x1f0d0) pressed, action is
21:34:05 T:6340 DEBUG: Keyboard: scancode: 0x1d, sym: 0x0132, unicode: 0x0000, modifier: 0x40
21:34:05 T:6340 DEBUG: CInputManager::OnKey: ctrl-leftctrl (0x101f0d0) pressed, action is
21:34:05 T:6340 DEBUG: Keyboard: scancode: 0x1d, sym: 0x0132, unicode: 0x0000, modifier: 0x40
21:34:05 T:6340 DEBUG: CInputManager::OnKey: ctrl-leftctrl (0x101f0d0) pressed, action is
21:34:05 T:6340 DEBUG: Keyboard: scancode: 0x1d, sym: 0x0132, unicode: 0x0000, modifier: 0x40
21:34:05 T:6340 DEBUG: CInputManager::OnKey: ctrl-leftctrl (0x101f0d0) pressed, action is
21:34:05 T:6340 DEBUG: Keyboard: scancode: 0x1d, sym: 0x0132, unicode: 0x0000, modifier: 0x40
21:34:05 T:6340 DEBUG: CInputManager::OnKey: ctrl-leftctrl (0x101f0d0) pressed, action is
21:34:05 T:6340 DEBUG: Keyboard: scancode: 0x1d, sym: 0x0132, unicode: 0x0000, modifier: 0x40
21:34:05 T:6340 DEBUG: CInputManager::OnKey: ctrl-leftctrl (0x101f0d0) pressed, action is
21:34:05 T:6340 DEBUG: Keyboard: scancode: 0x02, sym: 0x0031, unicode: 0x0000, modifier: 0x40
21:34:05 T:6340 DEBUG: CInputManager::OnKey: ctrl-one (0x1f031) pressed, action is

It seems that Kodi is not reading the keyboard.xml - should it somehow be activated?

Hope someone can help
Reply
#2
Did you restart Kodi once you'd put the file in the keymaps folder?
Reply
#3
Yes I did. I edited the .XML without having Kodi open.

I also tried the Kodi Keyboard Editor, which creates the .XML alright, but it still not Works.

I have tried it on 2 different machines with both 15.2 and 16 Alpha 4.
Reply
#4
I have debugged a bit further and discovered this in the log:

16:42:08 T:7772 ERROR: Error loading keymap: special://masterprofile/keymaps/keyboard.xml, Line 4
Error reading end tag.
16:42:08 T:7772 ERROR: Error loading keymap: special://profile/keymaps/keyboard.xml, Line 4
Error reading end tag.

I don't understand that. As far as I can tell the end tag is as it should be: </9>
Reply
#5
Ah, I think you need the word not the number, ie

<one>
<nine>

See

http://kodi.wiki/view/List_of_keynames
Reply
#6
Ahhh - Of course. I will try that tonight.

Thank you.
Reply
#7
I can confirm it is working. Thank you very much.
Reply
#8
(2015-11-05, 20:41)dazzledk Wrote: I can confirm it is working. Thank you very much.

Nice one, glad you got it sorted out.
Reply

Logout Mark Read Team Forum Stats Members Help
It seems that Keyboard.xml is not active0