2017-09-11, 12:59
Hi,
I'm setting up a HTPC with Kodi for a friend and have a problem with his infrared (IR) remote. I have LIRC installed and running, and most keys work. Some however don't work correctly (most notably the back key) and some not at all. The former show up if I try with irw and they even show up in kodi.log as LIRC input, but they don't cause any action. The nonworking ones shall be ignored for the moment as they're not really important (yellow, blue buttons and such).
Thus, I figured I had to set up a custom ~/.kodi/userdata/keymaps/keymap.xml, and have done so like this:
irw shows me when I press the back key multiple times:
If I start Kodi, go to the settings screen and press the back key multiple times, nothing happens. kodi.log however indicates the input is received:
I'm clueless on what to do now. Information on the system:
What do I need to do to make the back key work?
I'm setting up a HTPC with Kodi for a friend and have a problem with his infrared (IR) remote. I have LIRC installed and running, and most keys work. Some however don't work correctly (most notably the back key) and some not at all. The former show up if I try with irw and they even show up in kodi.log as LIRC input, but they don't cause any action. The nonworking ones shall be ignored for the moment as they're not really important (yellow, blue buttons and such).
Thus, I figured I had to set up a custom ~/.kodi/userdata/keymaps/keymap.xml, and have done so like this:
Code:
<keymap>
<global>
<remote>
<back>PreviousMenu</back>
</remote>
</global>
</keymap>
irw shows me when I press the back key multiple times:
Code:
falko@htpc:~/.kodi/temp$ irw
000000008001009e 00 KEY_BACK devinput
000000008001009e 00 KEY_BACK devinput
000000008001009e 00 KEY_BACK devinput
000000008001009e 00 KEY_BACK devinput
000000008001009e 00 KEY_BACK devinput
000000008001009e 00 KEY_BACK devinput
000000008001009e 00 KEY_BACK devinput
000000008001009e 00 KEY_BACK devinput
^C
If I start Kodi, go to the settings screen and press the back key multiple times, nothing happens. kodi.log however indicates the input is received:
Code:
12:28:48.569 T:140308100778368 DEBUG: LIRC: Update - NEW at 21103:000000008001009e 00 KEY_BACK devinput (KEY_BACK)
12:28:49.331 T:140308100778368 DEBUG: LIRC: Update - NEW at 21865:000000008001009e 00 KEY_BACK devinput (KEY_BACK)
12:28:49.996 T:140308100778368 DEBUG: LIRC: Update - NEW at 22530:000000008001009e 00 KEY_BACK devinput (KEY_BACK)
I'm clueless on what to do now. Information on the system:
- OS: Ubuntu 16.04 Xenial Xerus, up to date as of 2017-09-11.
- Kodi version: 2:17.4+git20170822.1009-final-0xenial
- Full kodi log: https://pastebin.com/6QLwyLsZ
- uname -a: Linux htpc 4.10.0-33-generic #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- Kodi was installed via the team-xbmc/ppa PPA.
- There are two addons installed. Keymap Editor and TVHeadend PVR. I have deleted anything Keymap editor generated in ~/.kodi/userdata/keymaps before I obtained the above information and before I added my own keymap.xml.
- The IR remote is a cheap one found on ebay. It identifies to lsusb like this: Bus 001 Device 002: ID 0471:0613 Philips (or NXP) Infrared Transceiver
- The IR remote is listed in /dev as /dev/input/by-id/usb-PHILIPS_MCE_USB_IR_Receiver-_Spinel_plus-event-ir and is configured in LIRC via the generic Linux devinput driver.
What do I need to do to make the back key work?