[mythtv-users] updating a keymap

Mike Perkins mikep at randomtraveller.org.uk
Sun Nov 13 17:00:00 UTC 2016


On 13/11/16 12:26, Vincent McIntyre wrote:
> Hi folks
>
> ubuntu 16.04 LTS with ppa mythtv 0.28.
>
> I need a bit of help figuring out my remote.
> I've read https://www.mythtv.org/wiki/HID_Remotes,
> thanks to the people who wrote it - so helpful.
>
> I need to remap a few keys to scancodes less than 255.
> The wiki page above refers to /usr/src/<linux>/input.h
> but I can't find any header files that have that kind
> of data in it.
>
> Can anyone suggest how to find appropriate keycode names?
> I could cargo-cult the names given in the wiki page, but
> I'd prefer to understand what I am doing enough that
> I could then update the wiki page.
>
> Details:
>
> The remote is a little unusual. I have a
> 'DVICO FusionHDTV DVB-T Dual Digital 4'
> tuner card and the (IR) remote came with that.
> The sensor for the remote plugs into the card
> with a 3.5mm jack and I run the cable to the
> front of the computer to a spot where the remote
> can talk to it. Worked fine with LIRC on 14.04.
> Now I'm trying to leave LIRC behind.
>
> The good news is the remote mainly works.
> evtest sees the device (event15 in the list below)
> and ir-keytable will talk to it if I specify the device, ie
>   ir-keytable -t -d /dev/input/event15
> Both report the same keycodes when I press any key, including
> the ones that don't work in mythtv.
>
> The keytable I get from ir-keytable -r exactly matches
> the one in /lib/udev/rc_keymaps/dvico_mce.
>
> The odd thing is the device does not show up in /sys/class/rc/,
> only event10 and event16 do. So ir-keytable does not show the
> device by default. Can anyone explain why this occurs?
>
(snip)
>
I can't answer your basic problem but I can answer your last question. A "HID" device is basically 
any input device that resembles a keyboard or mouse (Human Interface Device). The label may also 
cover things like joysticks, etc. It does /not/ include remotes, so it seems, since "remote" can 
cover a wide variety of input devices.

Some remotes can emulate fully or partially keyboard keypresses which is why they can be treated as 
HID devices. Of course, not all the keys may be mapped correctly or at all.

-- 

Mike Perkins



More information about the mythtv-users mailing list