<div class="gmail_quote">On Wed, Apr 18, 2012 at 11:31 AM, Eric Sharkey <span dir="ltr">&lt;<a href="mailto:eric@lisaneric.org">eric@lisaneric.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Apr 17, 2012 at 9:10 PM, Larry K &lt;<a href="mailto:lunchtimelarry@gmail.com">lunchtimelarry@gmail.com</a>&gt; wrote:<br>
&gt; OK, I played around a bit with the edit keys menu.  What I&#39;m seeing is that,<br>
&gt; even though I have keys that are recognized by ir-keytable -t, many of them<br>
&gt; are not recognized by the mythtv edit keys menu when I push the remote<br>
&gt; button to program the mapping.  Some work, but many do not.  What is the<br>
&gt; path forward for keys that are apparently unrecognized?<br>
<br>
</div>It&#39;s a fundamental problem with X.  X.org currently has no way to<br>
handle multi-byte key codes (anything larger than 255) but the<br>
standard key tables shipped with ir-keytable use exactly such codes.<br>
They work on the console, but not in X.<br>
<br>
What I do is load a nonstandard remote keytable.   In<br>
/etc/init.d/rc.local I have:<br>
<br>
logger &quot;Setting IR Keymap...&quot;<br>
/usr/bin/ir-keytable -c -p RC-5,RC-6 -w /etc/rc_keymaps/rc6_mce<br>
<br>
And in /etc/rc_keymaps/rc6_mce I have:<br>
mythtered% cat /etc/rc_keymaps/rc6_mce<br>
# table rc6_mce, type: RC-6<br>
0x800f0400 KEY_KP0<br>
0x800f0401 KEY_KP1<br>
0x800f0402 KEY_KP2<br>
0x800f0403 KEY_KP3<br>
0x800f0404 KEY_KP4<br>
0x800f0405 KEY_KP5<br>
0x800f0406 KEY_KP6<br>
0x800f0407 KEY_KP7<br>
0x800f0408 KEY_KP8<br>
0x800f0409 KEY_KP9<br>
0x800f040a KEY_DELETE<br>
0x800f040b KEY_ENTER<br>
0x800f040c KEY_KPSLASH                # Power<br>
0x800f040d KEY_M                    # Left Meta, Start<br>
0x800f040e KEY_MUTE<br>
0x800f040f KEY_I                    # Info<br>
0x800f0410 KEY_PAGEUP                # Volume Up<br>
0x800f0411 KEY_PAGEDOWN                # Volume Down<br>
0x800f0412 KEY_CHANNELUP<br>
0x800f0413 KEY_CHANNELDOWN<br>
0x800f0414 KEY_Z                    # Fast forward<br>
0x800f0415 KEY_R                    # Rewind<br>
0x800f0416 KEY_PLAY<br>
0x800f0417 KEY_RECORD<br>
0x800f0418 KEY_PAUSE<br>
0x800f046e KEY_PLAYPAUSE<br>
0x800f0419 KEY_STOP<br>
0x800f041a KEY_NEXTSONG                # Skip Next<br>
0x800f041b KEY_PREVIOUSSONG            # Skip Previous<br>
0x800f041c KEY_NUMERIC_POUND<br>
0x800f041d KEY_NUMERIC_STAR<br>
0x800f041e KEY_UP<br>
0x800f041f KEY_DOWN<br>
0x800f0420 KEY_LEFT<br>
0x800f0421 KEY_RIGHT<br>
0x800f0422 KEY_ENTER                # Ok<br>
0x800f0423 KEY_ESC            # Back / Exit<br>
0x800f0424 KEY_DVD<br>
0x800f0425 KEY_TUNER<br>
0x800f0426 KEY_G<br>
0x800f0427 KEY_W<br>
0x800f043a KEY_BRIGHTNESSUP<br>
0x800f0446 KEY_TV<br>
0x800f0447 KEY_AUDIO<br>
0x800f0448 KEY_PVR<br>
0x800f0449 KEY_CAMERA<br>
0x800f044a KEY_VIDEO<br>
0x800f044c KEY_LANGUAGE<br>
0x800f044d KEY_T<br>
0x800f044e KEY_PRINT<br>
0x800f0450 KEY_RADIO<br>
0x800f045a KEY_SUBTITLE<br>
0x800f045b KEY_RED<br>
0x800f045c KEY_O                    # Green<br>
0x800f045d KEY_YELLOW<br>
0x800f045e KEY_Z                    # Blue<br>
0x800f0465 KEY_POWER2<br>
0x800f046e KEY_PLAYPAUSE<br>
0x800f046f KEY_MEDIA<br>
0x800f0480 KEY_BRIGHTNESSDOWN<br>
0x800f0481 KEY_PLAYPAUSE<br>
<br>
<br>
This mapping only covers the keys that I use and care about.  Some of<br>
the original mappings &gt; 255 are still in there (e.g. KEY_RED) but I<br>
just don&#39;t use those.  You can customize this table to your liking.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div>Looks like my MCE remote send mostly multi-byte key codes.  Not sure I can work around that.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">
Eric<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>
</div></div></blockquote></div><br>