<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans Condensed'; font-size:18px}</style>
</head>
<body><div>On Sat Apr 14 15:59:15 UTC 2012,&nbsp; Ian Evans &lt;dheianevans at gmail.com &gt; wrote:</div><div><br></div><div>&gt; On Sat, Apr 14, 2012 at 11:39 AM, Larry K &lt;lunchtimelarry at gmail.com&gt; wrote:<br>
&gt; 
&gt; Let me try this again with perhaps a more clear, direct question:<br>
&gt; 
&gt; In the absence of lirc, how can I tell what keystrokes are being received on<br>
&gt; 
&gt; my MCE USB IR receiver?  For lirc, I use irw to determine this.<br>
&gt; 
&gt; Once I know what keystrokes are being received, again, in the absence of<br>
&gt; 
&gt; lirc, how do these get mapped to commands that myth understands?  For lirc,<br>
&gt; 
&gt; I set this up the ~/.mythtv/lircrc file.<br><br>
&gt; 
That's exactly where I am now. My coffee-deprived brain just wants to<br>
&gt; 
know what to expect when I reboot the first time after moving to<br>
&gt; 
11.04. Will my remote work at all? Will most commands work except<br>
&gt; 
some? And how do I fix it? unfortunately I've seen so many emails,<br>
&gt; 
blog entries, and the like about different methods that my head is<br>
&gt; 
spinning especially as some go back a few months and things have<br>
&gt; 
changed. Don't want to install a horse and buggy when everyone's gonna<br>
&gt; 
be in a car. :-)</div><div><br></div><div>I agree there's too much 'helpful' info out there. Allow me to add my own....</div><div><br></div><div>I set this up last week on Mythbuntu 11.10 and it's actually pretty easy. This page inspired me to experiment;-</div><div><br></div><div><a href="http://wyliecoyoteuk.wordpress.com/2012/01/30/how-to-forget-lirc-for-mythtv-remotes/">http://wyliecoyoteuk.wordpress.com/2012/01/30/how-to-forget-lirc-for-mythtv-remotes/</a></div><div><br></div><div>Essentially /etc/rc_maps.cfg determines the keytable to load (equivalent of lircd.conf) and the keytable translates the remote scancodes into keycodes (equivalent of lircrc).</div><div><br></div><div>You'll probably find that /lib/udev/rc_keymaps/rc6_mce already lists all your scan codes. Otherwise you can determine them using "ir-keyable -t". If you create a keytable from scratch I gather the first line comment is important. I simply copied the appropriate one to /etc/rc_keymaps, changed rc_maps.cfg to pick it up and started hacking. There's no need for udev rules etc.<br><br></div><div>The keycode symbols used by the keytables puzzled me for a while but the full list is defined in /usr/include/linux/input.h. Some keys work out of the box (for example, numbers, UP/DOWN, VOLUME for me), many don't (OK, AUDIO, RED etc). I've no idea why; I guess it's a new evolving standard. Simply edit them to suit your Myth hotkeys, as you would lircrc.</div><div><br></div><div>I guess sending modified keycodes (ie. ALT+T) aren't possible because they lie above the 255 limit mentioned by others. On my remote I only needed 6 hotkeys where the Myth default used a modifier (Home, TV, Video, Music, Pictures, Status). I also had a problem with Mute. So I just send function keys and added then as Myth hotkeys via Edit Keys. One of the great things about Myth is that you can define multiple hotkeys for each function so adding a new one won't screw anything else up.</div><div><br></div><div>When editing your keytable it's not necessary to reboot. Save it, run "sudo ir-keytable -vc -w &lt;your keytable file&gt;" and test the key in Myth. It shouldn't take long to do.</div><div><br></div><div>I hope that answers your questions and encourages you to have a go.&nbsp;</div><div><br></div><div>Here's my keytable for a Hauppuage NovaT 500 (snowboard) remote as an example. I use every button except Power. The comments describe the remote button</div><div><br></div><div># table dib0700_rc5, type: RC5<br>0x1e00 KEY_0<br>0x1e01 KEY_1<br>0x1e02 KEY_2<br>0x1e03 KEY_3<br>0x1e04 KEY_4<br>0x1e05 KEY_5<br>0x1e06 KEY_6<br>0x1e07 KEY_7<br>0x1e08 KEY_8<br>0x1e09 KEY_9<br>0x1e0a KEY_i                        &nbsp; &nbsp; &nbsp; &nbsp; # asterisk<br>0x1e0b KEY_W                        &nbsp; &nbsp; &nbsp; # red<br>0x1e0c KEY_F7                        &nbsp; &nbsp; &nbsp;# radio<br>0x1e0d KEY_M                        &nbsp; &nbsp; &nbsp; # menu<br>0x1e0e KEY_GRAVE                <br>0x1e0f KEY_F9                        &nbsp; &nbsp; &nbsp; # mute<br>0x1e10 KEY_VOLUMEUP<br>0x1e11 KEY_VOLUMEDOWN<br>0x1e12 KEY_H                        &nbsp; &nbsp; &nbsp; # prev channel<br>0x1e14 KEY_UP<br>0x1e15 KEY_DOWN<br>0x1e16 KEY_LEFT<br>0x1e17 KEY_RIGHT<br>0x1e18 KEY_F4                        &nbsp; &nbsp; &nbsp;# video<br>0x1e19 KEY_F5                        &nbsp; &nbsp; &nbsp;# music<br>0x1e1a KEY_F6                        &nbsp; &nbsp; &nbsp;# pictures<br>0x1e1b KEY_S                        &nbsp; &nbsp; &nbsp; &nbsp;# epg<br>0x1e1c KEY_F3                        &nbsp; &nbsp; &nbsp; # tv<br>0x1e1e KEY_END                        &nbsp; &nbsp;# next<br>0x1e1f KEY_ESC                        &nbsp; &nbsp; # exit<br>0x1e20 KEY_CHANNELUP<br>0x1e21 KEY_CHANNELDOWN<br>0x1e24 KEY_HOME                        &nbsp;# last<br>0x1e25 KEY_ENTER                # ok<br>0x1e29 KEY_U                        &nbsp; &nbsp; &nbsp; &nbsp; # blue<br>0x1e2e KEY_K                        &nbsp; &nbsp; &nbsp; &nbsp; # green<br>0x1e30 KEY_P                        &nbsp; &nbsp; &nbsp; &nbsp; # pause<br>0x1e32 KEY_PAGEUP                # rewind<br>0x1e34 KEY_PAGEDOWN                # ffwd<br>0x1e35 KEY_P                        &nbsp; &nbsp; &nbsp; &nbsp; # play<br>0x1e36 KEY_O                        &nbsp; &nbsp; &nbsp; &nbsp;# stop<br>0x1e37 KEY_R                        &nbsp; &nbsp; &nbsp; &nbsp; # record<br>0x1e38 KEY_J                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# yellow<br>0x1e3b KEY_F8                        &nbsp; &nbsp; &nbsp; # home<br>0x1e3d 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # power</div><div><br></div></body></html>