<p>I wonder if the restart of X is a bug in X or if its designed to work that way...</p>
<p>It reminds me of how the design of OpenWRT and its ability to apply all changes except modifying the switch vlan settings.. only upon reboot...ugh.</p>
<p>Definitely less than 2 cents but i couldnt help but think that this may not be the way X is supposed to work.  I&#39;ll attempt to figure that out, and file an xorg bug report if i cant find documentation detailing this aspect anywhere. </p>
<p>Mike</p>
<div class="gmail_quote">On Sep 25, 2014 6:56 PM, &quot;Tyler T&quot; &lt;<a href="mailto:tylernt@gmail.com">tylernt@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I just set up my FE with a USB MCE RC6 remote. I had a hard time<br>
figuring out how to get LIRC to work, as there are 1,001 Myth/LIRC<br>
tutorials out there on the &#39;net, most of which are out of date and the<br>
rest which disagree with each other. So after struggling for a while,<br>
I decided to just give up and use the kernel&#39;s built-in IR remote<br>
support, which works great. This website has pretty good<br>
documentation: <a href="http://atterer.org/mythtv-xmbc-remote-control-without-lirc" target="_blank">http://atterer.org/mythtv-xmbc-remote-control-without-lirc</a><br>
<br>
However, I have one important observation. That is that after running<br>
ir-keytable -w, you MUST restart X for any newly added keys to be<br>
recognized by X! (Modified keys will be recognized as their new<br>
assignments without a restart.) This cost me a long evening of<br>
frustration until I figured it out.<br>
<br>
I used this as a reference to map MCE remote codes to valid keyboard<br>
codes the kernel/X/Myth would recognize:<br>
<a href="http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/include/linux/input.h?v=2.6.11.8" target="_blank">http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/include/linux/input.h?v=2.6.11.8</a>.<br>
Remember that if you want to use remote buttons with default codes<br>
&gt;255 (&gt;0xFF hex), remap them to something &lt;255 from input.h. And<br>
restart X!<br>
<br>
I have reproduced my keymap here in case it helps other MCE RC6 remote<br>
users. Most keys are the default Myth keybindings, there are only a<br>
handful of custom keys I needed to add into Myth&#39;s keybindings in the<br>
FE setup (I bound Prev/Next as TimestretchDEC/INC and the Asterisk as<br>
ToggleAspect after removing it from ArbSeek). The original default<br>
assignments are listed in comments.<br>
<br>
scancode 0x800f0400 = KEY_0 (0x200) # NUMERIC_0<br>
scancode 0x800f0401 = KEY_1 (0x201) # (etc...)<br>
scancode 0x800f0402 = KEY_2 (0x202)<br>
scancode 0x800f0403 = KEY_3 (0x203)<br>
scancode 0x800f0404 = KEY_4 (0x204)<br>
scancode 0x800f0405 = KEY_5 (0x205)<br>
scancode 0x800f0406 = KEY_6 (0x206)<br>
scancode 0x800f0407 = KEY_7 (0x207)<br>
scancode 0x800f0408 = KEY_8 (0x208)<br>
scancode 0x800f0409 = KEY_9 (0x209)<br>
scancode 0x800f040a = KEY_DELETE (0x6f)<br>
scancode 0x800f040b = KEY_RESERVED (0x1c) # ENTER<br>
scancode 0x800f040c = KEY_SLEEP (0x8e)<br>
scancode 0x800f040d = KEY_M (0xe2) # MEDIA<br>
scancode 0x800f040e = KEY_MUTE (0x71)<br>
scancode 0x800f040f = KEY_I (0x166) # INFO<br>
scancode 0x800f0410 = KEY_VOLUMEUP (0x73)<br>
scancode 0x800f0411 = KEY_VOLUMEDOWN (0x72)<br>
scancode 0x800f0412 = KEY_PAGEUP (0x192) # CHANNELUP<br>
scancode 0x800f0413 = KEY_PAGEDOWN (0x193) # CHANNELDOWN<br>
scancode 0x800f0414 = KEY_DOT (0xd0) # FASTFORWARD<br>
scancode 0x800f0415 = KEY_COMMA (0xa8) # REWIND<br>
scancode 0x800f0416 = KEY_P (0xcf) # PLAY<br>
scancode 0x800f0417 = KEY_RECORD (0xa7)<br>
scancode 0x800f0418 = KEY_P (0x77) # PAUSE<br>
scancode 0x800f0419 = KEY_STOP (0x80)<br>
scancode 0x800f041a = KEY_F13 (0x197) # NEXT<br>
scancode 0x800f041b = KEY_F14 (0x19c) # PREVIOUS<br>
scancode 0x800f041c = KEY_W (0x20b) # NUMERIC_POUND<br>
scancode 0x800f041d = KEY_KPASTERISK (0x20a) # NUMERIC_STAR<br>
scancode 0x800f041e = KEY_UP (0x67)<br>
scancode 0x800f041f = KEY_DOWN (0x6c)<br>
scancode 0x800f0420 = KEY_LEFT (0x69)<br>
scancode 0x800f0421 = KEY_RIGHT (0x6a)<br>
scancode 0x800f0422 = KEY_ENTER (0x160) # OK<br>
scancode 0x800f0423 = KEY_ESC (0xae) # EXIT<br>
scancode 0x800f0424 = KEY_DVD (0x185)<br>
scancode 0x800f0425 = KEY_TUNER (0x182)<br>
scancode 0x800f0426 = KEY_EPG (0x16d)<br>
scancode 0x800f0427 = KEY_ZOOM (0x174)<br>
scancode 0x800f0432 = KEY_MODE (0x175)<br>
scancode 0x800f0433 = KEY_PRESENTATION (0x1a9)<br>
scancode 0x800f0434 = KEY_EJECTCD (0xa1)<br>
scancode 0x800f043a = KEY_BRIGHTNESSUP (0xe1)<br>
scancode 0x800f0446 = KEY_TV (0x179)<br>
scancode 0x800f0447 = KEY_AUDIO (0x188)<br>
scancode 0x800f0448 = KEY_PVR (0x16e)<br>
scancode 0x800f0449 = KEY_CAMERA (0xd4)<br>
scancode 0x800f044a = KEY_VIDEO (0x189)<br>
scancode 0x800f044c = KEY_LANGUAGE (0x170)<br>
scancode 0x800f044d = KEY_TITLE (0x171)<br>
scancode 0x800f044e = KEY_PRINT (0xd2)<br>
scancode 0x800f0450 = KEY_RADIO (0x181)<br>
scancode 0x800f045a = KEY_SUBTITLE (0x172)<br>
scancode 0x800f045b = KEY_RED (0x18e)<br>
scancode 0x800f045c = KEY_GREEN (0x18f)<br>
scancode 0x800f045d = KEY_YELLOW (0x190)<br>
scancode 0x800f045e = KEY_BLUE (0x191)<br>
scancode 0x800f0465 = KEY_POWER2 (0x164)<br>
scancode 0x800f046e = KEY_PLAYPAUSE (0xa4)<br>
scancode 0x800f046f = KEY_PLAYER (0x183)<br>
scancode 0x800f0480 = KEY_BRIGHTNESSDOWN (0xe0)<br>
scancode 0x800f0481 = KEY_PLAYPAUSE (0xa4)<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div>