Kodi Community Forum

Full Version: iMON PAD as universal remote
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm having some problems setting up my iMON PAD remote as an universal remote (I want to use all my buttons).

I'm using the lircd.conf provided with lirc for my remote (/usr/share/lirc/remotes/imon/lircd.conf.imon-pad) and every button works fine when tested with irw.

Following this guide I've created a $HOME/.xbmc/userdata/Lircmap.xml and a $HOME/.xbmc/userdata/keymaps/remote.xml.

However I can't get all buttons to work and if I check the log file I see the following:
Code:
21:22:57 T:139993613666368 M:4057264128    INFO: load keymapping
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/gamepad.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/joystick.Harmony.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/joystick.Logitech.RumblePad.2.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.Controller.S.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/joystick.Sony.PLAYSTATION(R)3.Controller.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/keyboard.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/keymaps/remote.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://masterprofile/keymaps/remote.xml
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window fullscreenobc48
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window videoobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window contextobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window scriptsdebugobc48
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window systemobc48
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window shutdownobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window subobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window pictureobc48
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://profile/keymaps/remote.xml
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window fullscreenobc48
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window videoobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window contextobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window scriptsdebugobc48
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window systemobc48
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window shutdownobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window subobc15
21:22:57 T:139993613666368 M:4057264128   ERROR: Window Translator: Can't find window pictureobc48
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://xbmc/system/Lircmap.xml
21:22:57 T:139993613666368 M:4057264128    INFO: Loading special://profile/Lircmap.xml

It compains about not finding some windows and I'm not sure what's wrong. And should it really load the Lircmap.xml after the remote.xml file?

Pressing the buttons shows that they do get read from lirc:
Code:
21:47:09 T:139993613666368 M:3966369792   DEBUG: LIRC: Update - NEW at 1451992:000000002b8595b7 00 Language iMON-PAD (Language)
21:47:10 T:139993613666368 M:3966369792   DEBUG: LIRC: Update - NEW at 1453004:00000000298595b7 00 Caption iMON-PAD (Caption)

Yet I can't change audio/subtitles with my remote. Can someone please tell me what I'm doing wrong? I can post a complete debug log if needed be.

I'm running XBMC svn revision 27423 and Arch Linux 64-bit.
from the looks of it you have done a search and replace of menu with obc15 and info with obc48.

resulting in lots of

<Videoobc15> <------- not a valid window which is what the log says
<universalremote>
<obc15>OSD</obc15>
<obc54>PreviousMenu</obc54>


Correct all instances in the log then worry about any other problems you may be having.
http://trac.xbmc.org/browser/trunk/syste...remote.xml
D'oh!

I needed a pair of fresh eyes to see what was wrong. I was just looking at the different <obc#> entries trying to figure out what it was complainging about. Thanks a lot!
Okay, with that sorted out it still doesn't use my mappings, it seems like the predefined remote.xml that comes with XBMC (which has some <remote> mappings for iMON-PAD) takes precedence over my config. Any ideas on how to stop it from doing that?

Or is it possible to mix using both predefined string and obc# in Lircmap.xml and remote.xml?

- EDIT -
Mixing worked just fine and now I have the buttons mapped as I wanted. :-D