Hi,
I have Kodi running on Ubuntu 16.04 with a MythTV backend. Using an imon-pad remote, but Kodi doesn’t appear to be recognising all of my keys. For instance, Enter, Escape or Back don’t work. “TV” , “Music” and “Video” work, but the “mypictures” (KEY_IMAGES) does not.
irw reports all keypresses correctly, and I think that means Lirc is working correctly…
# ps -aux | grep lirc
root 3241 0.0 0.0 33720 2336 ? Ss 21:54 0:00 /usr/sbin/lircd --output=/run/lirc/lircd --driver=devinput --device=/dev/input/by-id/usb-15c2_0036-event-if00
My /etc/lirc/hardware.conf:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Linux input layer (/dev/input/eventX)"
REMOTE_MODULES=""
REMOTE_DRIVER="devinput"
#REMOTE_DEVICE="/dev/input/by-path/pci-0000:00:1a.0-usb-0:1.1:1.0-event"
REMOTE_DEVICE="/dev/input/by-id/usb-15c2_0036-event-if00"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally. Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
Kodi is running under user fred
root@Myth:/home/fred/.kodi/userdata/keymaps# ll
total 12
drwxr-xr-x 2 fred fred 4096 Nov 3 22:13 ./
drwxr-xr-x 9 fred fred 4096 Oct 31 20:21 ../
-rw-rw-r-- 1 fred fred 1620 Nov 3 21:54 Lircmap.xml
Contents:
<lircmap>
<remote device="devinput">
<pause>KEY_PLAY</pause>
<stop>KEY_STOP</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_ENTER</select>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<back>KEY_ESC</back>
<menu>KEY_MENU</menu>
<play>KEY_PLAY</play>
<info>KEY_COMPOSE</info>
<skipplus>KEY_NEXT</skipplus>
<skipminus>KEY_PREVIOUS</skipminus>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<title>KEY_CONTEXT_MENU</title>
<display>KEY_ZOOM</display>
<tab>KEY_SCREEN</tab>
<home>KEY_EXIT</home>
<teletext>KEY_CYCLEWINDOWS</teletext>
<myvideo>KEY_VIDEO</myvideo>
<guide>KEY_MEDIA</guide>
<mypictures>KEY_IMAGES</mypictures>
<mytv>KEY_TV</mytv>
<subtitle>KEY_SUBTITLE</subtitle>
<language>KEY_LANGUAGE</language>
<one>KEY_NUMERIC_1</one>
<two>KEY_NUMERIC_2</two>
<three>KEY_NUMERIC_3</three>
<four>KEY_NUMERIC_4</four>
<five>KEY_NUMERIC_5</five>
<six>KEY_NUMERIC_6</six>
<seven>KEY_NUMERIC_7</seven>
<eight>KEY_NUMERIC_8</eight>
<nine>KEY_NUMERIC_9</nine>
<zero>KEY_NUMERIC_0</zero>
</remote>
</lircmap>
What am I missing?
Possible red herring: I do have some unknown keypress messages in my syslog:
Nov 3 22:33:20 Myth kernel: [ 148.593471] imon 1-1.1:1.0: imon_incoming_packet: unknown keypress, code 0x10007f2
Nov 3 22:33:20 Myth kernel: [ 148.633476] imon 1-1.1:1.0: imon_incoming_packet: unknown keypress, code 0x1000df2