<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 12pt; "><pre>On 10/11/10 05:58, Bob Burgess wrote:
&gt;<i> Dear Users,
</i>&gt;<i>
</i>&gt;<i> I've recently installed MythTV onto a system running Ubuntu 10.4. I 
</i>&gt;<i> then purchased a Windows Media Center remote. It was a very generic 
</i>&gt;<i> cheap one, as I only bought it for the IR receiver, I'm using a 
</i>&gt;<i> Logitech Harmony Remote and it's learnt the commands from the cheap 
</i>&gt;<i> remote. I was trying to install LIRC as per the instructions, but I 
</i>&gt;<i> constantly was running into the error
</i>&gt;<i>
</i>&gt;<i> lircd: can't open or create /var/run/lirc/lircd.pid
</i>&gt;<i> lircd: Permission denied
</i>You need to create the /var/run/lirc directory
&gt;<i>
</i>&gt;<i> Whenever I tried to run it. irw also didn't work with a similar 
</i>&gt;<i> problem. I then noticed that some commands on my remote were working 
</i>&gt;<i> anyway. I have removed LIRC and sure enough the remote is still 
</i>&gt;<i> working. It looks like the remote is simply being recognised as a 
</i>&gt;<i> keyboard where each button on the remote is a keystroke, or a 
</i>&gt;<i> combination of keystrokes. I then went into the MythTV frontend and 
</i>&gt;<i> into the Edit Keys menu, and I can simply map the keystrokes coming in 
</i>&gt;<i> from the remote to do whatever I want. I don't know how this works, 
</i>&gt;<i> but it does.
</i>&gt;<i>
</i>&gt;<i> My remote does not seem to have a key that maps to the escape key, so 
</i>&gt;<i> I mapped the backspace key to the "Escape" MythTV shortcut... The 
</i>&gt;<i> problem is that this workaround works fine for browsing through the 
</i>&gt;<i> menus, but won't work to stop watching TV or a Video. Whether I press 
</i>&gt;<i> backspace on my keyboard or on my remote, it won't stop watching the 
</i>&gt;<i> Video. The only way to stop watching was to press the Escape key on my 
</i>&gt;<i> keyboard, which I left bound to the Escape shortcut. I even tried 
</i>&gt;<i> unbinding the Escape key from the Escape shortcut, but that didn't 
</i>&gt;<i> help. All that meant was that I wasn't able to stop watching the TV at 
</i>&gt;<i> all.  Is there some reason why binding the Backspace key to Escape 
</i>&gt;<i> works for everything else, but not leaving Videos? Is there some way I 
</i>&gt;<i> can work around this? Any help would be great.
</i>The binding in mythtv is a bit messy, I think you can tell mythtv to use 
a different key to escape (not part of mythcontrol) but tbh I don't know 
where.

You can remap you keyboard (remote) using xbindkeys with xmacro 
(<a href="https://help.ubuntu.com/community/KeyboardShortcuts">https://help.ubuntu.com/community/KeyboardShortcuts</a>). I never tested it

Xavier</pre><pre><br></pre><pre>Thanks Xavier, that xbindkeys with xmacro seems to be exactly what I need.&nbsp;</pre><pre>I think this is going to turn into a key-mixing mess by the end, but oh well.</pre><pre>Thanks Again</pre><pre><br></pre><pre>Bob</pre></span>                                               </body>
</html>