Kodi Community Forum

Full Version: Choosing the right action for Lircmap.xml
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The other day I finally got around to recording my remote control into lirc (irrecord).

I got the remote working and things like irw work:
Code:
$ irw
000000037fcb7ba3 00 KEY_OK zotac.conf
000000037fcb7ba3 00 KEY_OK zotac.conf
000000037fcb7ba3 01 KEY_OK zotac.conf
000000037fcb7b7c 00 KEY_BACK zotac.conf
000000037fcb7b7c 01 KEY_BACK zotac.conf

I also found a Lircmap.xml that seems to be working, a little snippet:
Code:
<lircmap>
    <remote device="zotac.conf">
        [...]
        <select>KEY_OK</select>
        [...]
        <back>KEY_BACK</back>
        [...]
        <enter>KEY_ENTER</enter>
    </remote>
</lircmap>

Before I got this all working I just used a usb ir-receiver that translated the remote into regular keyboard strokes. That to worked fairly well, but rendered me unable to configure which key does what. Also quite alot of keys had no useful binding at all, so I like the new solution better.

One little annoyance though is that the OK-button used to simulate the enter key of the keyboard, giving me an easy way to access the OSD while playing videos. The 'select' action on the other hand, works fine to select things in the menus, but during playback it changes the video resolution instead of bringing up the OSD.

A similar change happened to the BACK-button. It used to simulate the escape key, which would get me back to the menu if pushed during playback. Now all it does is rewind the current video.

Are there better suited actions I can bind to in Lircmap.xml to get the old behaviours back?

EDIT:
I have tried reading https://github.com/xbmc/xbmc/blob/master...slator.cpp, it is non-trivial.
How I installed: http://forum.xbmc.org/showthread.php?tid=116996
My hardware: http://www.zotacusa.com/zbox-nano-ad10.html

EDIT2:
The changed behaviour of the back button was not that big of a deal once I figured out that I can just use the 'stop'-button instead.
The lack of OSD during videoplayback however is still cumbersome.
Got the OSD back! Big Grin

Didn't need to change Lircmap.xml at all. Added a new binding to Keymap.xml instead.

.xbmc/userdata/keymaps/Keymap.xml
Code:
<keymap>
  <global>
    <remote>
        <enter>OSD</enter>
    </remote>
  </global>
</keymap>

The enter key was unused anyway, so I don't think I'll miss it.