Kodi Community Forum

Full Version: Remote and key mapping files inter-relationship
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
XBMC and Linux Nubie….

CuBox (Solid-Run) with a new installation of XBMC from the end of March.

I am having difficulty with getting my remote to work properly… and sometime to work at all. There are several forum entries, guides, wiki pages, websites, and suggestions ranging over several years and spanning several software changes. I think I may have gotten a bit lost in my information travels.

I have a Harmony Remote that I have programmed with the Harmony software.
Using the magical “ir-keytable –t” command, I have the list of button generated codes.
I created a file “Logitech_Harmony_Custom” that has my generated codes mapped to a key value.

File: Logitech_Harmony_Custom
----
# table Logitech_Harmony_Custom, type: RC6
0x800f0420 KEY_LEFT
0x800f0421 KEY_RIGHT
[…lots of keys in-between]
0x800f0447 MYMUSC
----

I created a ‘lircd.conf’ file using the instruction from the lircd website.
----
begin remote

name Logitech_Harmony_Custom
bits 16
flags RC6|CONST_LENGTH

[…lots of lines in-between]

begin codes
Menu 0x800f0426
Exit 0x800f0423
Info 0x800f040f
[…lots of keys in-between]
MYMUSC 0x800f0447
end codes
----

I have the “lircmap.xml” updated with my keys.
----
<lircmap>
<remote device="Logitech_Harmony_Custom">
<play>Play</play>
<pause>Pause</pause>
[…lots of keys in-between]
<mymusic>MYMUSC</mymusic>
</remote>

</lircmap>
----

And finally I have the ‘remote.xml” updated with the universal remote values.
---
<keymap>
<global>

<universalremote>
<- Added 4/9/2013 - GSN ->
<obc117>XBMC.UpdateLibrary(video)</obc117>
<obc71>XBMC.UpdateLibrary(music)</obc71>
<weather>XBMC.ReplaceWindow(weather)</weather>
<obc76>XBMC.ReplaceWindow(filemanager)</obc76>
<obc90>XBMC.RestartApp</obc90>
<obc80>XBMC.Reboot</obc80>
<obc144>XBMC.CleanLibrary(video)</obc144>
<obc176>XBMC.CleanLibrary(music)</obc176>
<mytvshows>XBMC.ActivateWindow(10004)</mytvshows>
<- End Add ->
</universalremote>

<remote>
<play>Play</play>
[…lots of default values in-between]
<mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
---
I have a ‘change-rc’ file that has the following value
---
#!/bin/sh

#KEYMAPS="Logitech_Harmony_Custom"
[…additional lines not shown]
---

Some of the basic functions work, none of the custom functions work.

File locations:
~/.xbmc/Userdata/Lircmap.xml
~/.xbmc/userdata/keymaps/remote.xml
/etc/rc_keymaps/ Logitech_Harmony_Custom
/etc/lirc/lircd.conf
/usr/bin/change-rc


Here are my questions:

1) Is the inter-relationship between these files correct?
Logitech_Harmony_Custom: contains the remote-generated code and a key-name
Lircd.conf: contains the [how is this name different?] key-name and the remote-generated code
Lircmap.xml: maps the [Logitech_Harmony_Custom?] key-name to the XBMC_button
Remote.xml: is the map between the Lircmap.xml XBMC_button and the XBMC action

2) which, if any, of these keys, buttons, values are case-sensitive?
3) In my file: Logitech_Harmony_Custom. Are the key values, such as “KEY_STOP” and “KEY_INFO” are predefined somewhere in XBMC or can they be arbitrary.

and lastly,

4) I can get the basic remote functions to work, play, stop, etc. after a reboot, only if I stop XBMC, run the following lines, and then restart XBMC.

ir-keytable -c
ir-keytable -w /etc/rc_keymaps/Logitech_Harmony_Custom
ir-keytable –t

Suggestions? Clarifications? Comments? Beatings?

At this point, anything would help.

GSN