[mythtv-users] holtek keyboard mappings not recognised

Corona Sensei coronasensei at gmail.com
Wed Apr 3 22:40:29 UTC 2013


On 4/04/2013 8:20 AM, Mike de Plume wrote:
> 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.
>>>
Hi Mike,
I've also got a cheap IR remote that reports itself as Holtek.
After battling with it's various key combinations previously, I went 
looking for a different solution when moving the remote to a new slave 
frontend and stumbled upon this: http://rtr.ca/sapphire_remote/

It's basically a replacement hid driver that's customised for remotes, 
and allows you to map any keypress to any button, including choosing to 
have modifyers (ctrl/alt) if you want them.
Even better it lets you have a separate keypress for a long button hold, 
and custom repeat rates for different keys. This means for instance that 
I can have the power button normally mapped to esc, but then if I hold 
it down for > 1 second send a different key that's macro'd to a script 
to send the pc to sleep. It's a very flexible driver.

I modified the driver and scripts to recognise my HOLTEK remote rather 
than the original sapphire one and set up most of the keys on my remote 
(it has different button keycodes to the sapphire one), as well as 
figuring out settings to add to udev to run the script to set the driver 
automatically when plugging the usb remote in.
Unfortunately I haven't written up my modifications yet, and the pc that 
it's all on isn't remotely accessible at the moment, so I'll have to get 
back to you later if you're interested.

Alternately, you can always use lirc with devinput to take over the 
remote and stop X from seeing it as a keyboard. This is a really decent 
solution that's probably better supported really, and should let you 
remap the buttons to any keypress you want. There's some links down the 
bottom of the sapphire page that might help with that.

Cheers,
Andrew


More information about the mythtv-users mailing list