Need help with Imon Pad remote
#1
Hi Guys,

I've been a lurker here for a while, but finally came across an issue I can't figure out. I have a Origen Ae case that has a Imon Pad remote and VFD display. I've managed to get both working in Xbmc without too many problems, but the one issue i have is the imon remote doesn't have the "ContextMenu" or "c" keyboard key mapped to any buttons (Like my old MCE remote does)

For the life of me I can't figure out how to remap buttons with lirc and keymap xml files. I've tried and nothing ever works or gets reassigned and that's after looking at the wiki for instructions.

All I need to do is map the menu button on the Imon pad remote to "ContextMenu"... Can anyone help me?

-Quincy
Reply
#2
Hi.

I believe what you are looking for is the <title>some_lirc_key_here</title> on the file Lircmap.xml. That key provides the context menu.

Lircmap.xml distributed with XBMC looks like this:
Code:
<lircmap>
    <remote device="iMON-PAD">
        <power>Power</power>
        <record>Record</record>
        <play>Play</play>
        <reverse>Rewind</reverse>
        <pause>Pause</pause>
        <stop>Stop</stop>
        <forward>FastForward</forward>
        <left>Left</left>
        <right>Right</right>
        <up>Up</up>
        <down>Down</down>
        <select>Enter</select>
        <pageplus>Ch+</pageplus>
        <pageminus>Ch-</pageminus>
        <back>Esc</back>
        <back>Backspace</back>
        <menu>Multimon</menu>
        <title>MouseMenu</title>
        <info>SelectSpace</info>
        <skipplus>NextChapter</skipplus>
        <skipminus>PrevChapter</skipminus>
        <display>FullScreen</display>
        <start>MultiMon</start>
        <volumeplus>Vol+</volumeplus>
        <volumeminus>Vol-</volumeminus>
        <mute>Mute</mute>
        <myvideo>MyMovie</myvideo>
        <mymusic>MyMusic</mymusic>
        <mypictures>MyPhoto</mypictures>
        <mytv>MyTV</mytv>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
    </remote>
</lircmap>

I used to own such a remote and in time made a few changes that best suited my needs:
Code:
<lircmap>
    <remote device="iMON-PAD">
        <power>Power</power>
        <record>Record</record>
        <play>Play</play>
        <forward>FastForward</forward>
        <pause>Pause</pause>
        <reverse>Rewind</reverse>
        <skipminus>PrevChapter</skipminus>
        <stop>Stop</stop>
        <skipplus>NextChapter</skipplus>
        <up>Up</up>
        <down>Down</down>
        <left>Left</left>
        <right>Right</right>
        <select>Enter</select>
        <back>Escape</back>
        <start>AppLauncher</start>
        <title>MultiMon</title>
        <info>TaskSwitcher</info>
        <mute>Mute</mute>
        <volumeplus>Vol+</volumeplus>
        <volumeminus>Vol-</volumeminus>
        <pageplus>Ch+</pageplus>
        <pageminus>Ch-</pageminus>
        <one>1</one>
        <two>2</two>
        <three>3</three>
        <four>4</four>
        <five>5</five>
        <six>6</six>
        <seven>7</seven>
        <eight>8</eight>
        <nine>9</nine>
        <zero>0</zero>
        <star>Star</star>
        <hash>Hash</hash>
        <myvideo>MyMovie</myvideo>
        <mymusic>MyMusic</mymusic>
        <mypictures>MyPhoto</mypictures>
        <mytv>MyTV</mytv>
        <display>FullScreen</display>
        <menu>Eject</menu>
    </remote>
</lircmap>

Can you see the difference?

In any case, please test your output codes with 'sudo irw /dev/lircd' command. From time to time, different lirc builds give different codes...

Make a proper Lircmap.xml and put it under ~/.xbmc/userdata

hudo
Reply
#3
Thanks! That worked and i can change button functions! however i can't seem to find the button function for the keyboard "c" key. any idea how to remap it?
Reply
#4
Hi. Glad to help.

I'm currently at work, but I'll investigate further when I get home. In the mean time, please read the wiki on keyboard mapping:

http://wiki.xbmc.org/index.php?title=Global_Keyboard
and
http://wiki.xbmc.org/index.php?title=Def...ce_in_XBMC

On the first link you'll find that 'c' keyboard key provides context menu.
That, to the best of my knowledge, is the same key as <title>some_lirc_key_here</title> on Lircmap.xml.

Than again, I never had a keyboard attached to my XBMC box and need to test it to best advise you.

hudo
Reply
#5
Okidoki!

Just checked the 'c' key function on keyboards and it's the same as <title>some_lirc_key_here</title> on Lircmap.xml. It provides the ContextMenu as you wish. On my Lircmap.xml config, <title>MultiMon</title> is what you want.

Please let us know how it went.

hudo
Reply
#6
Hi I just tired it again, and in my Lircmap.xml I changed " <start>AppLauncher</start> " to be " <contextmenu>AppLauncher</contextmenu> " and when i test it in XBMC the button does nothing. I would have used the multimon button, but I don't think that one works on my remote.
Reply
#7
OK...

Can you please post an image of your Imon remote? I want to see your if your remote is identical to the one I owned. If it's an Imon PAD it should work as mine.

BTW, AFAIK <contextmenu>lirc_key</contextmenu> isn't a valid Lircmap.xml action. Look on the wiki for that.

I believe you are confusing keys with actions. Please, oh please, read doc's again _and_ start over. Configure lirc to work with your remote. Use 'sudo irw /dev/lircd' to see commands/keys being sent by your remote, record that on your lircd.conf and make that file available and _then_ customize Lircmap.xml.
Reply
#8
Hi Hudo,

This is the remote I have:

Image

I probably am confusing keys with actions. This so far is the only thing I've had trouble figuring out when it comes to installing and messing around in linux. I don't know why but I find this part of the wiki terribly confusing, as there's so many different things that can be changed and in looking through the wiki I just can't find the right key that will perform the same function as my older windows remote ( that had this function mapped to a key by default in XBMC.)

I'll look through it again and see if I can get it all nailed down.
Reply
#9
It's the same remote I owned.

Try my config and change key <title> in Lircmap.xml to whatever key you want.
Reply
#10
using 'irw' in the terminal is helpful when configuring remotes. It'll tell you if the button is registering and what title it has. You can then make sure you have the right title in you lircmap.
Reply
#11
Yap!

A simple irw /dev/lircd... forgot about that, lol!
Reply
#12
OK I have everything working after checking all the remote codes with IRW. my only problem is setting up the action for "Context menu" still a little confused after looking at the wiki on this subject.
Reply

Logout Mark Read Team Forum Stats Members Help
Need help with Imon Pad remote0