"I guess you forgot about the time you and Bravo company left my black ass for dead, huh? But I remember. I remember everything. I remember Vietnam like it was yesterday. I remember that village in Tainan that we cut down. It was a massacre. All the dead Chinamen we left in our tracks. I remember the faces, the children. This one child I'll never forget. Poor little bastard was still alive. His little Chinese legs were blown clean off! Still see his little shins & feet hanging from the ceiling fan across the hut. He was charred from his head down to his little Chinese knees. He tried to get up, but he fell over when what was left of his right leg broke off. As he laid there, flat on his face, he looked up at me. His little Chinese eyes burned right into my stomach, deep into my soul. He said something to me in Chinese like, 'Boo coo sow!', sounded like some cartoon shit. But I understood it to be a question that he was asking me. And I don't have to know how to speak Chinese to know what that question was. 'Why, Black Dynamite? Why?'"
2011-02-18
Previously I have described how I got my AIM RC118 MCE remote working with XBMC and my Harmony One. Today I decided it was time to put the final touches on it all.
A few things have been bugging me so I made a list of what I'd like sorting out:
So it doesn't seem like a lot to ask but it just took me over a couple of hours to sort out.
...
Top Row Buttons
The problem I had was that XBMC seemed to ignore the top row of buttons buttons. I use IR Server Suite (as described in my last post) so I loaded up its Debug Client which lets me check which buttons have been pressed. That showed that all the remotes buttons were being read correctly. This led me to believe the problem was with XBMC. I should mention that at this point I left the Harmony One out of the equation and just used the AIM remote.
The first thing I did was research how to manually tweak the remote controls key assignments within XBMC. This is handled via some external XML files. I'm currently using XBMC v10.0.0 which seems to have a different config XML setup than earlier versions, at least that is the impression I get from most of the online docs which refer to a single "keymap.xml" file. In v10 it has been split into several files. The one of interest is called "remote.xml". Before I get into the changes I made I should point out that changing this on its own did not solve my first problem and is in fact what took up most of my time.
Before editing remote.xml it is time to open the IRSSmap.xml file. For me this was located at:
C:\Program Files\XBMC\system\IRSSmap.xml
This file is has two key mapping regions. The first is for remotes that send keyboard commands, the AIM RC6 remote does not do this. The second, "Abstract" section is for us. I left most of the file as it was and just added my own buttons at the bottom. I left the number keys in the following so you can get an idea of where I made the changes. I've also attached the complete IRSSmap.xml file to this post.
<eight>Number8</eight>
<nine>Number9</nine>
<zero>Number0</zero>
<mytv>Radio</mytv>
<mymusic>Music</mymusic>
<mypictures>Pictures</mypictures>
<myvideo>Videos</myvideo>
<red>Red</red>
<green>Green</green>
<yellow>Yellow</yellow>
<blue>Blue</blue>
<teletext>Teletext</teletext>
Prior to this change the "mytv", "mymusic", "mypictures" and "myvideo" actions were assigned to the four color keys and the teletext key was not setup at all. Now that the remote keys have been properly bound it is time to actually configure them for XBMC usage. The first step is to copy the following file:
C:\Program Files\XBMC\system\keymaps\remote.xml
Place it here, there more than likely will be no files in that directory until you paste the copied one there. Files in this location overrite files in the main application directory so you can leave those there as backups. Those ones also get replaced when you install an update whilst the copies in the user directory do not get replaced:
C:\Documents and Settings\[YOUR_USERNAME]\Application Data\XBMC\userdata\keymaps\remote.xml
Here are the contents of my remote.xml file:
<keymap>
<global>
<remote>
<myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
<mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
<mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
<mytv>XBMC.ActivateWindow(Home)</mytv>
</remote>
</global>
</keymap>
As you can see, the only keys in there are my overrides. I left out remapping the color buttons since I don't need any extra keys at the moment.
Restarting XBMC with a button press
This was really simple to setup:
The End
The final step was to learn the new key from my DVD remote and then reconfigure the button setup on my Harmony One. That's it, now the top row of buttons works and I can restart XBMC with a single button press.