Kodi Community Forum

Full Version: Keymapping/remotemapping help.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get xbmc to respond to my remote control. I'm using a remote from an old Panasonic VCR and my HDHomerun as ir reciever.

I've followed the instructions on http://www.silicondust.com/hdhomerun/ins...ons/mythtv the lirc section and gotten that to work, so now when I press the arrow and ok buttons on my remote, IRW says:

000040040d00a1ac 00 KEY_UP thomas6
000040040d00616c 00 KEY_DOWN thomas6
000040040d00111c 00 KEY_RIGHT thomas6
000040040d00414c 00 KEY_OK thomas6
000040040d00e1ec 00 KEY_LEFT thomas6

Thomas6 is the name of the config file I created with irrecord, my name is Thomas and I got it working in the sixth try..

Question is, how do I get xbmc to respond to the remote?
I'm frustrated beyond words with this crap..

I got hold of an usb ir reciever to see if it was the udp connection to the hdhomerun that was messing up things.

I uninstalled lirc and installed it again to get a fresh start, when it came to picking reciever and transmitter I chose "custom" as my transciever wasn't on the list.

Step by step I did the following:

1) sudo /etc/init.d/lirc stop (to stop lirc)
2) sudo mode2 -d /dev/lirc0 (to test the connection, worked fine)
3) sudo irrecord -d /dev/lirc0 panaremote (worked like a charm, added KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT and KEY_OK just to have something to work with)
4) Made a dir called /usr/share/lirc/remotes/panaremote and copied my new panaremote config file there
5) Copied my new panaremote config file to /etc/lirc/lircd.conf too
6) sudo /etc/init.d/lirc start (to start lirc again)
7) Tried irw but it gave me a "no such file or directory" error
8) sudo lircd -d /dev/lirc0
9) Tried irw again and it gave me lines like:
0000000000000001 00 KEY_UP panaremote
0000000000000001 01 KEY_UP panaremote
0000000000000002 00 KEY_DOWN panaremote
..and so on..

I terminated irw and continued with:

10) sudo gedit /usr/share/xbmc/system/Lircmap.xml, copied the mceusb section, changed the name to panaremote and modified some of the strings like this:

<lircmap>
<remote device="panaremote">
<play>Play</play>
<pause>Pause</pause>
<stop>Stop</stop>
<forward>Forward</forward>
<reverse>Rewind</reverse>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_OK</select>
<pageplus>ChanUp</pageplus>
<pageminus>ChanDown</pageminus>

So far, so good, but my XBMC couldn't care less..

..any suggestions? Do I need to add my commands to a keymap file somewhere or is that taken care of by Lircmap.xml ??

My XBMC version is 9.11 R26018 and it's running on Ubuntu 10.04 LTS
And apparently you guys couldn't care less either..

I managed to solve the problem, but I guess it's now my time not to care enough to post the solution..
Strandvasker Wrote:I managed to solve the problem, but I guess it's now my time not to care enough to post the solution..

Classy...
fasteddy Wrote:Classy...

Whoohoo, a response! Guess the forum isn't completely dead anyway.. Laugh

I view of this recent discovery of life in the forum, I've reconsidered and decided to post the solution to my problem..

The thing that gave me a hard time was /etc/lirc/hardware.conf. Even though I'd made a custom remote file, hardware.conf still loaded the one for mceusb.

My current and now functioning hardwrae.conf looks like this:

Quote:# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Windows Media Center Transceivers/Remotes (all)"
REMOTE_MODULES="lirc_mceusb"
REMOTE_DRIVER="default"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="Microsoft Windows Media Center V2 (usb) : Direct TV Receiver"
TRANSMITTER_MODULES="lirc_dev lirc_mceusb2"
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE="/dev/lirc1"
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF="directtv/general.conf"
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

I hope it's of use to others in a similar situation..