[mythtv-users] holtek keyboard mappings not recognised

Mike de Plume mike at mikedeplume.com
Wed Apr 3 21:20:22 UTC 2013


On Wed, 2013-04-03 at 21:36 +0100, Mike de Plume wrote:
> On Mon, 2013-04-01 at 23:10 +0100, Mike de Plume wrote:
> > I have a box that comes with a IR interface that reports itself as a
> > HOLTEK keyboard. Not a problem - I read the wiki entry
> > http://www.mythtv.org/wiki/Generic_HID_%22MCE%22_Remotes and created a
> > setxxkbmap as described. 
> > 
> > I remap a number of keys, but, as an example, I want to remap the rewind
> > key from Ctrl-Alt-B to '<'
> > 
> > I run the resulting command file and use 'xev' to see what is coming
> > through from the remote and it works pretty much as expected. I still
> > get the Ctrl and Alt, but the basic character code is what I want.
> > 
> > I go into Mythfrontend (MythTV 0.25) and try to set the sticky fast
> > forward key. Pressing the remote rewind key produces Ctrl-Alt-B instead
> > of the remapped value.
> > 
> > Just to be sure, I dig around (Mythubuntu) and make sure that my
> > remapping command file is executed automatically on startup.
> > 
> > Same problem.
> > 
> > How do I get the frontend to recognise the new mapping? 
> > 
> > or
> > 
> > Why does the frontend see the default mapping instead of the device
> > specific one that xenv clearly sees?
> > 
> 
> Update to this. I tried a separate keylogger (pykeylogger) and this also
> shows the same problem (the mapping I set is ignored). So, probably not
> a MythTV problem.
> 
> Any clues to further action welcome, but I accept that this is probably
> not the right forum.

OK, I spoke too soon. The issue is that the remote sends modifiers
(Ctrl, Shift, etc) with many of the keys. Rewind comes with Ctrl +
Shift. The keyboard map needs to extend far enough to map all the
possible levels, so I needed 4 entries in the map for rewind.

My partial keyboard map now looks like:

xkb_symbols "remote" {
    key <AB05> { [ comma, comma, comma, comma ]  };
    key <AD10> { [ P, P, P, P ] };
    key <AC04> { [ period, period, period, period ]  };
    key <PGUP> { [ Up ]  };
    key <FK08> { [ F9 ]  };
    key <PGDN> { [ Down ]  };
    key <AD05> { [ t, T, T ]  };
    key <AC05> { [ g, G, I ]  };
};

I have used Myth frontend settings to use Ctrl+Shift+comma for rewind.
The only problem I now have is that the front end is not recognising
that combination at all, even if I enter it from the normal keyboard.

So, basic mapping problem is solved, sort of, but I now have to work out
why I'm not getting a response.
 
Cheers

Mike S.





More information about the mythtv-users mailing list