Help with remote.xml (Adesso USB receiver)
#1
Hi,

I'm running LibreElec 10.0.4 in a PC. And I use a Harmony 700 with an Adesso USB receiver (I think it's from an ARC-1100) to control Kodi (version 19.5.0 - Matrix).

The Guide button is currently mapped to the (default) PVR guide, which I don't use. I'd like to re-map it to Kodi's context menu (same as "c" in the keyboard). I have re-mapped a couple of keys before, and it works fine, with the OBC's I've got from the debug log. However, for the Guide button, I don't get an OBC.

This is what I got from kodi.log:

Code:
2023-08-25 19:04:07.850 T:7060    DEBUG <general>: LIRC: - NEW 184 0 KEY_TEXT devinput (KEY_TEXT)
2023-08-25 19:04:07.852 T:7056    DEBUG <general>: HandleKey: 250 (0xfa, obc5) pressed, action is                         ->  This one works, I use it to bring up the subtitles dialog during video play
2023-08-25 19:04:09.882 T:7060    DEBUG <general>: LIRC: - NEW 16d 0 KEY_EPG devinput (KEY_EPG)
2023-08-25 19:04:09.918 T:7056    DEBUG <general>: HandleKey: two (0x32) pressed, action is ActivateWindow(TVGuide)        -> This one has no OBC
2023-08-25 19:04:09.918 T:7056    DEBUG <general>: Activating window ID: 10702

And this is my remote.xml:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
  <FullscreenVideo>
    <keyboard>
      <t>AudioNextLanguage</t>
    </keyboard>
    <universalremote>
      <obc5>ActivateWindow(osdsubtitlesettings)</obc5>
      <obc6>AudioNextLanguage</obc6>
    </universalremote>
  </FullscreenVideo>
  <global>
    <universalremote>
      <key id="50">ContextMenu</key>
    </universalremote>
  </global>
</keymap>

I also tried <g mod="ctrl"> instead of <key id="50">. No luck.

Would anyone tell me how to do it, or if it's even possible?

Thank you,

VMat
Reply
#2
Bump... Smile

(I hope this is the right forum)

VMat
Reply
#3
from your own snippet above "HandleKey: two (0x32) pressed" i would try variations instead of obc

since it says "two" and 0x32 from hex to str is "2"

<2></2>
or
<two></two>
Reply
#4
(2023-09-20, 23:07)jepsizofye Wrote: from your own snippet above "HandleKey: two (0x32) pressed" i would try variations instead of obc

since it says "two" and 0x32 from hex to str is "2"

<2></2>
or
<two></two>

Hey, I've just upgraded to LibreElec 11.0.3 / Kodi 20.2.0 to deal with another issue. And I have some different debug info now when I press the Guide button:

Code:
2023-09-20 17:26:24.197 T:10193   debug <general>: LIRC: - NEW 22 0 KEY_G devinput (KEY_G)
2023-09-20 17:26:24.209 T:10189   debug <general>: HandleKey: 0 (0x0, obc255) pressed, window 10025, action is

I tried obc255, but it didn't work. Also tried 2 and two before I noticed the new debug info, didn't work either.

Any other suggestions?

Thanks,

VMat
Reply
#5
if kod is receiving 0x0 from FLIRC then FLIRC is not configured as this is a default prior to configuration, i do not use FLIRC so i cannot help futher
Reply
#6
Digging a little more (e.g., here), I managed to translate the Guide key into "0" by creating this Lircmap.xml:

Code:
<lircmap>
  <remote device="devinput">
    <zero>KEY_G</zero>
  </remote>
</lircmap>

The debug log shows the key has been remapped:

Code:
2023-09-20 21:56:43.288 T:4943    debug <general>: LIRC: - NEW 22 0 KEY_G devinput (KEY_G)
2023-09-20 21:56:43.295 T:4939    debug <general>: HandleKey: 207 (0xcf, obc48) pressed, window 10025, action is Queue

However, I still can't override the behavior in remote.xml. Btw, the log above was generated while I had this in remote.xml:

Code:
  <global>
    <universalremote>
      <obc48>ContextMenu</obc48>
    </universalremote>
  </global>

I don't know what else to try.

Thanks,

VMat
Reply
#7
(2023-09-21, 06:04)jepsizofye Wrote: if kod is receiving 0x0 from FLIRC then FLIRC is not configured as this is a default prior to configuration, i do not use FLIRC so i cannot help futher

Looks like we were both typing at the same time. If you could take a look at my last post, I'd appreciate it.

Thanks again,

VMat
Reply
#8
I got it! I got it!

Lircmap.xml:

Code:
<lircmap>
  <remote device="devinput">
    <obc251>KEY_G</obc251>
  </remote>
</lircmap>

remote.xml:

Code:
  <global>
    <universalremote>
      <obc251>ContextMenu</obc251>
    </universalremote>
  </global>

I hope nothing else uses obc251. Otherwise, I'll have to choose another code until it doesn't interfere with anything else.

Thanks,

VMat
Reply
#9
(2023-09-21, 06:14)vmat Wrote: I got it! I got it!

right on, glad you got there
Reply
#10
A few references here in case someone needs them.

LIRC (wiki)
HOW-TO:Modify_keymaps (wiki)
List_of_keynames (wiki)
https://github.com/xbmc/xbmc/blob/master...slator.cpp

Cheers,

VMat
Reply

Logout Mark Read Team Forum Stats Members Help
Help with remote.xml (Adesso USB receiver)0