Remote Mappings not working (kinda solved)

Hi, I recently switched from LibreELEC to OSMC, because it has more freedom. Under LibreELEC my remote was working fine, but under OSMC I have a little problem. Under \OSMC\osmc.kodi\userdata\keymaps I pasted in my remote.xml and under \OSMC\osmc.kodi\userdata I pasted my old Lircmap.xml. I am using a Xbox One remote, so instead of using my lircd.conf (I could not find the path were it should be) I just installed the Xbox One remote directly in OSMC. I also added dtoverlay=lirc-rpi to my config.txt. The remote works, but the keymappings do not work. I tried the keymap editor addon, too, but no success even after restart. What am I doing wrong?

Select the Xbox One remote under My OSMC -> Remotes should do the trick.

Thanks for the fast reply :slight_smile: I have done this already (and again 1 minute ago), the remote is working, but the mappings are the problem.

The easiest way to edit keymaps is using Keymap Editor.

I’m not familiar with LE/OE’s remote pathway now, as they made a few changes in their latest release that seem to deprecate LIRC to an extent where using ir-keytable is considered more favourable.

The problem is that the keymap editor does not work either :confused: I have the files uploaded that have probably been created by the addon. Could you take a look?

I’m not sure – we’ve never tested the Xbox One remote, it was submitted by a user. It’s possible you need to run irrecord to record the buttons properly. This would be a better approach than editing XML files.

Ok I understand what you mean, but where is the remote saved? Under LibreELEC there is lircd.conf, how is it called under OSMC? And will remote.xml and Lircmap.xml work?

You can record any configuration and select it from My OSMC.

Ok, it seems like Lircmap is not working, I went to myosmc -> remote -> browse and took my lircd.conf, and activated myosmc -> hardware -> enable lirc. I put remote.xml under \OSMC\osmc.kodi\userdata\keymaps and did not use lircmap.xml then everything was fine. If someone wants to do this I would try to avoid lircmap.xml I had problems with it.
My working lircd.conf:
begin remote

  name  XBOX-ONE
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9086  4468
  one           613  1644
  zero          613   515
  ptrail        613
  repeat       9089  2211
  pre_data_bits   16
  pre_data       0x11B
  gap          108680
  toggle_bit_mask 0x0

  begin codes
      KEY_POWER                0x26D9
      KEY_RECORD               0x7689
      KEY_LANGUAGE             0xF609
      KEY_UP                   0x7887
      KEY_LEFT                 0x04FB
      KEY_RIGHT                0x847B
      KEY_DOWN                 0xF807
      KEY_OK                   0x44BB
      KEY_BACK                 0xC43B
      KEY_YELLOW               0x649B
      KEY_VOLUMEUP             0x08F7
      KEY_VOLUMEDOWN           0x8877
      KEY_MUTE                 0x708F
      KEY_SUBTITLE             0x48B7
      KEY_BLUE                 0xC837
      KEY_PLAY                 0x0EF1
      KEY_STOP                 0x9867
      KEY_REWIND               0xA857
      KEY_FASTFORWARD          0x28D7
      KEY_NEXT                 0x58A7
      KEY_PREVIOUS             0xD827
  end codes

end remote

My remote.xml:

<keymap>
<global>
<remote>
<record>CodecInfo</record>
<yellow>CodecInfo</yellow>
<blue>ShowSubtitles</blue>
</remote>
</global>
</keymap>

Restore all the files you’ve changed to what they were; then try again.

Hi, I tried it like you said with Lircmap.xml in \OSMC\osmc.kodi\userdata, but the key mappings did not work. I will just leave it without Lircmap.xml, after changing my lircd.conf and remote.xml I have everything I need, thanks for your time :slight_smile: I really like OSMC and the freedom it brings to the user :slight_smile:

Since the last 10 posts of you I wonder if you just write the folder wrong in the post or you actually putting the file in the wrong folder? The folder for userdata on OSMC is /home/osmc/.kodi/userdata

I think it should be the right folder, I copied the path from Windows (I pasted the Lircmap.xml it into the folder with Samba). The path has already been there and my working remote.xml is in there, too (in keymaps).

If you are using \ in the file name, that is incorrect for linux. You can’t copy the path from Windows (Not only is the \ incorrect, so is the location)