Solved Remote keymaps
#1
Hi,

I have two issues, first my system:

Arch Linux x64 running KODI 14.2-4 with an IMON remote running through Lirc devinput with all keys mapped and working.

My first issue is this, I am trying to get one of the keys on the remote to take me back to the Home Window.

Debug output shows this:

Code:
23:29:02 T:140020646819840   DEBUG: OnKey: 213 (0xd5) pressed, action is FullScreen
23:29:02 T:140020646819840   DEBUG: LIRC: Update - NEW at 51436:00000000800100ae 00 KEY_EXIT devinput (KEY_EXIT)
23:29:02 T:140020646819840   DEBUG: OnKey: 213 (0xd5) pressed, action is FullScreen
23:29:03 T:140020646819840   DEBUG: LIRC: Update - NEW at 52020:00000000800100ae 00 KEY_EXIT devinput (KEY_EXIT)
23:29:03 T:140020646819840   DEBUG: OnKey: 213 (0xd5) pressed, action is FullScreen
23:29:03 T:140020646819840   DEBUG: LIRC: Update - NEW at 52536:00000000800100ae 00 KEY_EXIT devinput (KEY_EXIT)
23:29:03 T:140020646819840   DEBUG: OnKey: 213 (0xd5) pressed, action is FullScreen
23:29:04 T:140020646819840   DEBUG: LIRC: Update - NEW at 53537:00000000800100ae 00 KEY_EXIT devinput (KEY_EXIT)
23:29:04 T:140020646819840   DEBUG: OnKey: 213 (0xd5) pressed, action is FullScreen
23:29:05 T:140020646819840   DEBUG: LIRC: Update - NEW at 54153:00000000800100ae 00 KEY_EXIT devinput (KEY_EXIT)
23:29:05 T:140020646819840   DEBUG: OnKey: 213 (0xd5) pressed, action is FullScreen
23:29:07 T:140020646819840   DEBUG: LIRC: Update - NEW at 56036:000000008001001c 00 KEY_ENTER devinput (KEY_ENTER)

and here are my files:

Lircmap.xml

Code:
<lircmap>
        <remote device="devinput">
                <livetv>KEY_TV</livetv>
                <power>KEY_POWER</power>
                <myvideo>KEY_VIDEO</myvideo>
                <mymusic>KEY_AUDIO</mymusic>
                <mypictures>KEY_IMAGES</mypictures>
                <reverse>KEY_REWIND</reverse>
                <play>KEY_PLAY</play>
                <forward>KEY_FASTFORWARD</forward>
                <skipminus>KEY_PREVIOUS</skipminus>
                <skipplus>KEY_NEXT</skipplus>
                <stop>KEY_STOP</stop>
                <pause>KEY_PAUSE</pause>
                <record>KEY_RECORD</record>
                <back>KEY_BACKSPACE</back>
                <up>KEY_UP</up>
                <left>KEY_LEFT</left>
                <right>KEY_RIGHT</right>
                <down>KEY_DOWN</down>
                <select>KEY_ENTER</select>
                <menu>KEY_MENU</menu>
                <volumeplus>KEY_VOLUMEUP</volumeplus>
                <volumeminus>KEY_VOLUMEDOWN</volumeminus>
                <mute>KEY_MUTE</mute>
                <channelplus>KEY_CHANNELUP</channelplus>
                <channelminus>KEY_CHANNELDOWN</channelminus>
                <pageplus>KEY_CHANNELUP</pageplus>
                <pageminus>KEY_CHANNELDOWN</pageminus>
                <one>KEY_NUMERIC_1</one>
                <two>KEY_NUMERIC_2</two>
                <three>KEY_NUMERIC_3</three>
                <four>KEY_NUMERIC_4</four>
                <five>KEY_NUMERIC_5</five>
                <six>KEY_NUMERIC_6</six>
                <seven>KEY_NUMERIC_7</seven>
                <eight>KEY_NUMERIC_8</eight>
                <nine>KEY_NUMERIC_9</nine>
                <zero>KEY_NUMERIC_0</zero>
                <star>KEY_NUMERIC_STAR</star>
                <hash>KEY_NUMERIC_POUND</hash>
                <language>KEY_LANGUAGE</language>
                <guide>KEY_MEDIA</guide>
                <subtitle>KEY_SUBTITLE</subtitle>
                <display>KEY_SCREEN</display>
                <xbox>KEY_EXIT</xbox>
                <blue>KEY_ZOOM</blue>
        </remote>
</lircmap>

and remote.xml

Code:
<keymap>
        <global>
                <remote>
                        <left>Left</left>
                        <right>Right</right>
                        <up>Up</up>
                        <down>Down</down>
                        <select>Select</select>
                        <back>ParentDir</back>
                        <menu>ContextMenu</menu>
                        <play>Play</play>
                        <pause>Pause</pause>
                        <reverse>Rewind</reverse>
                        <forward>FastForward</forward>
                        <skipplus>SkipNext</skipplus>
                        <skipminus>SkipPrevious</skipminus>
                        <stop>Stop</stop>
                        <power>XBMC.ActivateWindow(ShutDownMenu)</power>
                        <xbox>XBMC.ActivateWindow(Home)</xbox>
                        <mymusic>XBMC.ActivateWindow(MyMusic,musicdb://genres/)</mymusic>
                        <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
                        <myvideo>XBMC.ActivateWindow(MyVideos,videodb://movies/titles/)</myvideo>
                        <livetv>XBMC.ActivateWindow(10615)</livetv>
                        <language>AudioNextLanguage</language>
                        <volumeplus>VolumeUp</volumeplus>
                        <volumeminus>VolumeDown</volumeminus>
                        <channelplus>PageUp</channelplus>
                        <channelminus>PageDown</channelminus>
                        <pageplus>PageUp</pageplus>
                        <pageminus>PageDown</pageminus>
                        <mute>Mute</mute>
                        <subtitle>ShowSubtitles</subtitle>
                        <display>FullScreen</display>
                </remote>
        </global>

The key in question without any "user defined" config performs the same operation as the "Backspace" key so it's kind of a duplicate.

Running irw I have all the key codes so that is fine, I am just wondering why the debug output keeps saying that it is trying to go "FullScreen"?? When that is mapped to a completely different key!

- could this be a bug?


Also I am trying to work out how to be able to cycle through "PVR Channel Groups"...

I am reading through these:

http://kodi.wiki/view/keymap

http://kodi.wiki/view/Window_IDs

http://kodi.wiki/view/Opening_Windows_and_Dialogs

http://kodi.wiki/view/Action_IDs

https://github.com/opdenkamp/xbmc/blob/m...remote.xml

http://kodi.wiki/view/HOW-TO:Use_any_IR_...h_OpenELEC


Virtually I would like to map the:

Code:
SkipNext
SkipPrevious

keys to:

Code:
NextChannelGroup
PreviousChannelGroup

when in the TV Channel window, so that I can simply cycle through various groups rather then having to activate the left "Blade" menu and scroll down to 'groups' then change all the time.

Is this possible, or if not what would be an alternate or similar method to achieve the same goal?


Thanks
Reply
#2
Ok, that is interesting....

I managed to resolve the first issue!!

It seems that the <display> variable is somehow responsible for the (Home) screen not working?? I am not sure if it's hard coded or a bug but these changes have rectified the issue:

Lircmap.xml

Code:
<snip>
                <guide>KEY_MEDIA</guide>
                <subtitle>KEY_SUBTITLE</subtitle>
                <yellow>KEY_SCREEN</yellow>
                <xbox>KEY_EXIT</xbox>
                <blue>KEY_ZOOM</blue>
        </remote>
</lircmap>

keymap.xml

Code:
<snip>
                        <xbox>XBMC.ActivateWindow(Home)</xbox>
<snip>
                        <yellow>FullScreen</yellow>
                </remote>
        </global>

Unless this behavior is expected, I find it quite weird....

So now I just need help with the second issue of flicking through PVR Channel Groups then I will be set for now :-)
Reply

Logout Mark Read Team Forum Stats Members Help
Remote keymaps0