[mythtv-users] updating a keymap
Vincent McIntyre
vincent.mcintyre at gmail.com
Sun Nov 13 12:26:38 UTC 2016
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?
Thanks for any help
Vince
# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Sleep Button
/dev/input/event1: Power Button
/dev/input/event2: Microsoft Microsoft Wheel Mouse Optical®
/dev/input/event3: Dell Dell USB Entry Keyboard
/dev/input/event4: iMON Panel, Knob and Mouse(15c2:ffdc)
/dev/input/event5: HDA Intel Rear Mic
/dev/input/event6: HDA Intel Front Mic
/dev/input/event7: HDA Intel Line
/dev/input/event8: HDA Intel Line Out
/dev/input/event9: HDA Intel Front Headphone
/dev/input/event10: iMON Remote (15c2:ffdc)
/dev/input/event11: HDA NVidia HDMI/DP,pcm=3
/dev/input/event12: HDA NVidia HDMI/DP,pcm=7
/dev/input/event13: HDA NVidia HDMI/DP,pcm=8
/dev/input/event14: HDA NVidia HDMI/DP,pcm=9
/dev/input/event15: IR-receiver inside an USB DVB receiver
/dev/input/event16: Leadtek WinFast DTV Dongle Dual
Select the device event number [0-16]: 15
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0xfe9 product 0xdb78 version 0x827b
Input device name: "IR-receiver inside an USB DVB receiver"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 2 (KEY_1)
Event code 3 (KEY_2)
Event code 4 (KEY_3)
Event code 5 (KEY_4)
Event code 6 (KEY_5)
Event code 7 (KEY_6)
Event code 8 (KEY_7)
Event code 9 (KEY_8)
Event code 10 (KEY_9)
Event code 11 (KEY_0)
Event code 15 (KEY_TAB)
Event code 28 (KEY_ENTER)
Event code 103 (KEY_UP)
Event code 105 (KEY_LEFT)
Event code 106 (KEY_RIGHT)
Event code 108 (KEY_DOWN)
Event code 113 (KEY_MUTE)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 116 (KEY_POWER)
Event code 128 (KEY_STOP)
Event code 134 (KEY_OPEN)
Event code 139 (KEY_MENU)
Event code 141 (KEY_SETUP)
Event code 158 (KEY_BACK)
Event code 163 (KEY_NEXTSONG)
Event code 164 (KEY_PLAYPAUSE)
Event code 165 (KEY_PREVIOUSSONG)
Event code 167 (KEY_RECORD)
Event code 168 (KEY_REWIND)
Event code 208 (KEY_FASTFORWARD)
Event code 212 (KEY_CAMERA)
Event code 352 (KEY_OK)
Event code 356 (KEY_POWER2)
Event code 358 (KEY_INFO)
Event code 364 (KEY_FAVORITES)
Event code 365 (KEY_EPG)
Event code 371 (KEY_ANGLE)
Event code 372 (KEY_ZOOM)
Event code 377 (KEY_TV)
Event code 386 (KEY_TUNER)
Event code 389 (KEY_DVD)
Event code 391 (KEY_MP3)
Event code 402 (KEY_CHANNELUP)
Event code 403 (KEY_CHANNELDOWN)
Properties:
Testing ... (interrupt to exit)
# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event10) with:
Driver imon, table rc-imon-mce
Supported protocols: rc-6
Enabled protocols: rc-6
Name: iMON Remote (15c2:ffdc)
bus: 3, vendor/product: 15c2:ffdc, version: 0x0000
Repeat delay = 500 ms, repeat period = 125 ms
Found /sys/class/rc/rc1/ (/dev/input/event16) with:
Driver dvb_usb_af9035, table rc-empty
Supported protocols: nec
Enabled protocols:
Name: Leadtek WinFast DTV Dongle Dual
bus: 3, vendor/product: 0413:6a05, version: 0x0200
Repeat delay = 500 ms, repeat period = 125 ms
More information about the mythtv-users
mailing list