How to get a seamless remote experience
(2013-05-14, 18:15)GreatEmerald Wrote: It's explained in the first post of this thread. Basically, you need to look for your remote keymap in `/etc/rc_keymaps/`.

The whole in-kernel LIRC works like this: the remote sends a scancode, the kernel catches it, it then parses the needed file in /etc/rc_keymaps/ to find out what scancode is supposed to represent what button. Then it submits the emulated keyboard event to the /dev/input system. All other applications bind to the /dev/input system and wait for keyboard events from there, that includes XBMC. Since the events are regular keyboard presses, the XMBC-specific bindings are controlled via Keyboard.xml.

Your workflow should be to edit the file in /etc/rc_keymaps so that every button is mapped to an actual keyboard key. Ideally, you shouldn't touch XBMC configuration at all, and just adapt the keymap to what is default in XMBC. Only once everything is set to a real keyboard key you can additionally tweak XBMC bindings to your liking (by using the actual keyboard key names, not some codes).

But are you limited to whatever amount of scancodes are in the original keymap files? For example I copied the imon_mce keymap file to /etc/rc_keymaps and then edited to get it working properly. I have full functionality of standard MCE buttons. Wink

However if I want to add new custom buttons I have to use one of the existing unused MCE buttons in the imon_mce keymap file. For example I was able to change KEY_RED to be KEY_O instead and now the red button brings up the diagnostic info.

However it seems you cannot add in your own new scancodes to the keymap file? For example if I teach my Harmony remote control the keyboard command Ctrl+Alt+1 if I run irkeytable -t it does show a scancode for this, I tried adding this new scancode in to the keymap file and assigning a keyboard button to it and then ensuring in keyboard.xml that, that keyboard button would do the XBMC function I wanted. However it does not work.

So once I have used up all the spare MCE buttons like Red, Green, Yellow etc then what ?

I wrote about it all here in much more detail.

Cheers
Reply


Messages In This Thread
[No subject] - by darkscout - 2011-06-29, 20:11
[No subject] - by LB06 - 2011-06-29, 20:27
[No subject] - by gazrat - 2011-06-30, 00:09
[No subject] - by Anastrophe - 2011-06-30, 16:48
[No subject] - by gazrat - 2011-06-30, 21:48
[No subject] - by LB06 - 2011-06-30, 22:34
[No subject] - by gazrat - 2011-07-04, 18:28
[No subject] - by LB06 - 2011-07-04, 18:59
[No subject] - by gazrat - 2011-07-04, 23:52
[No subject] - by LB06 - 2011-07-04, 23:58
[No subject] - by gazrat - 2011-07-05, 00:28
[No subject] - by LB06 - 2011-07-05, 01:17
[No subject] - by wsnipex - 2011-07-05, 09:37
[No subject] - by darkscout - 2011-07-05, 10:23
[No subject] - by LB06 - 2011-07-05, 10:37
[No subject] - by gazrat - 2011-07-05, 20:45
[No subject] - by LB06 - 2011-07-05, 22:11
[No subject] - by gazrat - 2011-07-05, 22:31
[No subject] - by LB06 - 2011-07-05, 23:10
[No subject] - by gazrat - 2011-07-05, 23:16
[No subject] - by SirHc - 2011-07-07, 22:07
Nesting actions? - by konti - 2011-07-08, 12:19
[No subject] - by SirHc - 2011-07-08, 12:45
[No subject] - by LB06 - 2011-07-08, 13:30
[No subject] - by LB06 - 2011-07-08, 13:33
[No subject] - by mason - 2011-07-08, 13:51
[No subject] - by SirHc - 2011-07-08, 20:22
[No subject] - by teeedubb - 2011-07-10, 11:47
[No subject] - by LB06 - 2011-07-10, 13:02
[No subject] - by LB06 - 2011-07-10, 13:55
[No subject] - by teeedubb - 2011-07-10, 14:10
[No subject] - by LB06 - 2011-07-10, 14:56
[No subject] - by gazrat - 2011-07-12, 19:40
[No subject] - by LB06 - 2011-07-12, 22:20
[No subject] - by blubyu - 2011-07-13, 03:03
[No subject] - by teeedubb - 2011-07-14, 05:21
[No subject] - by toliman - 2011-07-27, 14:58
[No subject] - by LB06 - 2011-07-27, 16:16
[No subject] - by Jayphen - 2011-08-24, 06:27
[No subject] - by recluce - 2011-08-24, 19:16
[No subject] - by LB06 - 2011-08-24, 19:19
[No subject] - by Jayphen - 2011-08-25, 00:42
[No subject] - by LB06 - 2011-08-25, 00:57
[No subject] - by Jayphen - 2011-08-25, 01:18
[No subject] - by recluce - 2011-08-25, 01:21
[No subject] - by LB06 - 2011-08-25, 01:27
[No subject] - by LB06 - 2011-08-25, 01:29
[No subject] - by Jayphen - 2011-08-25, 01:30
[No subject] - by LB06 - 2011-08-25, 01:31
[No subject] - by Jayphen - 2011-08-25, 01:33
[No subject] - by LB06 - 2011-08-25, 01:52
[No subject] - by recluce - 2011-08-25, 01:57
[No subject] - by Jayphen - 2011-08-25, 02:10
[No subject] - by LB06 - 2011-08-25, 10:25
[No subject] - by koekiemonster - 2011-09-15, 23:29
RE: - by GreatEmerald - 2013-03-11, 20:57
[No subject] - by stefanwa - 2011-09-20, 16:50
RE: [Linux] How-to get a seamless remote experience - by cw-kid - 2013-05-15, 10:33
Logout Mark Read Team Forum Stats Members Help
How to get a seamless remote experience9