Lirc isn´t working correctly with Kodi 17
#1
Hello!

Perhaps someone has an solution for me.
I have a problem to get lirc working correctly with my libreelec/kodi installation.
I use an XBOX one media remote.
when I create an new lirc.conf with 0.9.4 the remote does nothing anymore.

new lirc with 0.9.4
-----------------------------------------------------------------------------------------------
# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <[email protected]>
#
# This config file was automatically generated
# using lirc-0.9.4(default) on Fri Jul 8 09:26:36 2016
# Command line used: /storage/.config/lircd.conf
# Kernel version (uname -r): 4.7.0-rc6
#
# Remote name (as of config file): devinput
# Brand of remote device, the thing you hold in your hand:
# Remote device model nr:
# Remote device info url:
# Does remote device has a bundled capture device e. g., a
# usb dongle? :
# For bundled USB devices: usb vendor id, product id
# and device string (use dmesg or lsusb):
# Type of device controlled
# (TV, VCR, Audio, DVD, Satellite, Cable, HTPC, ...) :
# Device(s) controlled by this remote:

begin remote

name devinput
bits 32
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9086 4468
one 613 1644
zero 613 515
ptrail 613
repeat 9089 2211
gap 108680
toggle_bit_mask 0x0
frequency 38000

begin codes
KEY_POWER 0x011B26D9 0x00000000
KEY_TAB 0x011B7689 0x00000000
KEY_LIST 0x011BF609 0x00000000
KEY_UP 0x011B7887 0x00000000
KEY_LEFT 0x011B04FB 0x00000000
KEY_RIGHT 0x011B847B 0x00000000
KEY_DOWN 0x011BF807 0x00000000
KEY_OK 0x011B44BB 0x00000000
KEY_BACK 0x011BC43B 0x00000000
KEY_CONTEXT_MENU 0x011B649B 0x00000000
KEY_VOLUMEUP 0x011B08F7 0x00000000
KEY_VOLUMEDOWN 0x011B8877 0x00000000
KEY_MUTE 0x011B708F 0x00000000
KEY_CHANNELUP 0x011B48B7 0x00000000
KEY_CHANNELDOWN 0x011BC837 0x00000000
KEY_PLAY 0x011B0EF1 0x00000000
KEY_STOP 0x011B9867 0x00000000
KEY_REWIND 0x011BA857 0x00000000
KEY_FASTFORWARD 0x011B28D7 0x00000000
KEY_NEXT 0x011B58A7 0x00000000
KEY_PREVIOUS 0x011BD827 0x00000000
end codes

end remote
-------------------------------------------------------------------------------------------

With an old lirc Version/config (0.9.1) the remote is usable. but some buttons aren´t working anymore.

old lirc.conf
-------------------------------------------------------------------------------------------
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.1-git(default) on Fri May 15 17:35:06 2015
#
# contributed by powerpi.de
#
# brand: XBOX-ONE
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name "devinput"
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100

header 9086 4468
one 613 1644
zero 613 515
ptrail 613
repeat 9089 2211
pre_data_bits 16
pre_data 0x11B
gap 108680
toggle_bit_mask 0x0

begin codes
KEY_POWER 0x26D9
KEY_TAB 0x7689
KEY_LIST 0xF609
KEY_UP 0x7887
KEY_LEFT 0x04FB
KEY_RIGHT 0x847B
KEY_DOWN 0xF807
KEY_OK 0x44BB
KEY_BACK 0xC43B
KEY_CONTEXT_MENU 0x649B
KEY_VOLUMEUP 0x08F7
KEY_VOLUMEDOWN 0x8877
KEY_MUTE 0x708F
KEY_CHANNELUP 0x48B7
KEY_CHANNELDOWN 0xC837
KEY_PLAY 0x0EF1
KEY_STOP 0x9867
KEY_REWIND 0xA857
KEY_FASTFORWARD 0x28D7
KEY_NEXT 0x58A7
KEY_PREVIOUS 0xD827
end codes

end remote

--------------------------------------
this is the lircmap:
--------------------------------------
<lircmap>
<remote device="devinput">
<power>KEY_POWER</power>
<enter>KEY_TAB</enter>
<star>KEY_LIST</star>
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_OK</select>
<back>KEY_BACK</back>
<title>KEY_CONTEXT_MENU</title>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<mute>KEY_MUTE</mute>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<play>KEY_PLAY</play>
<stop>KEY_STOP</stop>
<skipplus>KEY_NEXT</skipplus>
<skipminus>KEY_PREVIOUS</skipminus>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
</remote>
</lircmap>


and this is what I get when I use putty --> irw (with the old lirc.conf); with the new one nothing happens.

67 0 KEY_UP devinput
67 0 KEY_UP_UP devinput
6c 0 KEY_DOWN devinput
6c 1 KEY_DOWN devinput
6c 0 KEY_DOWN_UP devinput
6a 0 KEY_RIGHT devinput
6a 1 KEY_RIGHT devinput
6a 0 KEY_RIGHT_UP devinput
69 0 KEY_LEFT devinput
69 1 KEY_LEFT devinput
69 0 KEY_LEFT_UP devinput
f 0 KEY_TAB devinput
f 1 KEY_TAB devinput
f 0 KEY_TAB_UP devinput
74 0 KEY_POWER devinput
74 1 KEY_POWER devinput
74 0 KEY_POWER_UP devinput
72 0 KEY_VOLUMEDOWN devinput
72 0 KEY_VOLUMEDOWN_UP devinput
73 0 KEY_VOLUMEUP devinput
73 0 KEY_VOLUMEUP_UP devinput

(i pushed every button only one time)

ps: with an old lirc version in libreelec everything was fine.
Reply
#2
I think you are on the wrong track, try setting up your remote like this http://nucblog.net/2014/01/mapping-the-b...e-control/
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
He's right.
Theres something wrong with lirc and Kodi 17.
Remote is working fine with v16.1 Jarvis.
After updating to 17 Krypton, only the left and right buttin on my remote are still working. No OK/Enter no Back....
Also checked with irw and the buttons are just not recognized anymore.
After that i tried to reprogram/remap my remote with the lirc version from Kodi 17 - no chance, just receiving errors

Went back to Jarvis and everything is fine.
Also reprograming/remapping wasn't a problem at all.

Please take a look on it. Smile
Thanks.
Reply
#4
You have to rename some of the buttons. The new version of lirc in Krypton evidently does not read the old built in xml file.

change KEY_OK to KEY_ENTER
KEY_CHANNELUP to KEY_PAGEUP

ETC. You may need to create a new lircd.conf if some keys don't send anything, if they are not named in the lircd.conf they won't be recognized.

Some keys that used to be mapped don't work anymore at all. I have a 45 button Hauppauge remote, the GUIDE button used to send CONTEXTMENU but now irw does not recognize the key at all, so even though irrecord does see the key I can't remap it. instead I remapped the RADIO button to (KEYBOARD c) CONTEXTMENU.

UPDATE: I did manage to rename the guide key to KEY_CONTEXT_MENU and make it work. I don't know why it would not work before.

lircd.conf now lives in /.config. and you need to add the dtoverlay line in the config.txt (dtoverlay=lirc-rpi for a GPIO on a RPI).
Reply

Logout Mark Read Team Forum Stats Members Help
Lirc isn´t working correctly with Kodi 170