Linux Kodi 18 does not recognize my remote control (no LIRC)
#1
Hello,

I have a MediaPC with Ubuntu 18.04 / Kodi 18.1 and unfortunately a problem with my remote control.
I use the remote support of the kernel and not LIRC. The iMon remote also responds with the command ir-keytable -t to all keys.
Code:
sudo ir-keytable
/sys/class/rc/rc0/ gefunden (/dev/input/event6) mit:
Name: iMON Remote (15c2:0036)
Treiber: imon, Tabelle: rc-imon-pad
unterstützte Protokolle: other rc-6
Aktivierte Protokolle: other
bus: 3, Anbieter/Produkt: 15c2:0036, Version: 0x0003
Wiederholungsverzögerung = 500 ms, Wiederholungsperiode = 125 ms
So the signal input to the MediaPC works.
Code:
sudo ir-keytable -t
Ereignisse werden getestet. Bitte drücken Sie STRG-C, um abzubrechen.
138.580380: Ereignistyp EV_MSC(0x04): Scancode = 0x10002f1
138.580380: Ereignistyp EV_SYN(0x00).
138.612333: Ereignistyp EV_MSC(0x04): Scancode = 0x1008000
138.612333: Ereignistyp EV_KEY(0x01) key_runter: KEY_UP(0x0067)
138.612333: Ereignistyp EV_SYN(0x00).
Ereignistyp EV_KEY(0x01) key_hoch: KEY_UP(0x0067)
Unfortunately Kodi doesn't react to most of the keys (control pad works) and thinks he has a keyboard instead of a remote control. Here is an excerpt from the Kodi.log file.
Code:
NOTICE: Register - new imon device registered on usb->/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.3: iMON HID device (15C2:0036)
With the Kodi Plugin Keymap Editor I tried it and it works, but not correctly. It creates a gen.xml under .kodi/userdata/keymaps/ with the following content.
Code:

<keymap>
<global>
<keyboard>
<key id="61570">left</key>
<key id="61571">right</key>
<key id="61568">up</key>
<key id="61569">down</key>
<key id="61952">select</key>
</keyboard>
</global>
</keymap>
How can I make Kodi understand that I have a remote and no keyboard or that he is using the iMon remote to output the ir-keytable?
Reply
#2
Did you look here ( Kodi Leia Linux with LIRC remote )?
Reply
#3
Since a direct use of the remote kernel module with ir-keytable does not work for me, I have now installed LIRC after following the procedure of the bug report of Ubunutu 18.04
Code:
sudo apt purge ir-keytable lirc
sudo apt-get install -y lirc lirc-compat-remotes
sudo dpkg-reconfigure lirc
Then irw goes and displays an output, so Remote goes. After bug report I disabled the lirc.uinput service and changed the path to the device, restarted the service and checked if the device is there.
Code:
sudo irw
0000000080010190 00 KEY_YELLOW devinput-32
0000000080010001 00 KEY_ESC devinput-32
0000000080010001 01 KEY_ESC devinput-32
000000008001008b 00 KEY_MENU devinput-32
000000008001008b 01 KEY_MENU devinput-32
000000008001008b 02 KEY_MENU devinput-32
0000000080010067 00 KEY_UP devinput-32
0000000080010160 00 KEY_OK devinput-32
0000000080010160 01 KEY_OK devinput-32
sudo systemctl disable --now lircd-uinput.service
Removed /etc/systemd/system/multi-user.target.wants/lircd-uinput.service.
sudo nano /etc/lirc/lirc_options.conf
#output = /var/run/lirc/lircd
output = /dev/lircd
sudo systemctl restart lircd
ls -la /dev/lircd
srw-rw-rw- 1 root root 0 Feb 22 19:56 /dev/lircd
Now I copied the default Lircmap.xml from Kodi to .kodi/userdata/Lircmap.xml and threw everything out except the entries for devinput-32.
Code:
<lircmap>
<remote device="devinput-32">
<left>KEY_LEFT</left>
<right>KEY_RIGHT</right>
<up>KEY_UP</up>
<down>KEY_DOWN</down>
<select>KEY_ENTER</select>
<enter>KEY_ENTER</enter>
<clear>KEY_DELETE</clear>
<start>KEY_MEDIA</start>
<back>KEY_EXIT</back>
<record>KEY_RECORD</record>
<play>KEY_PLAY</play>
<pause>KEY_PAUSE</pause>
<stop>KEY_STOP</stop>
<forward>KEY_FASTFORWARD</forward>
<reverse>KEY_REWIND</reverse>
<volumeplus>KEY_VOLUMEUP</volumeplus>
<volumeminus>KEY_VOLUMEDOWN</volumeminus>
<pageplus>KEY_CHANNELUP</pageplus>
<pageminus>KEY_CHANNELDOWN</pageminus>
<skipplus>KEY_NEXT</skipplus>
<skipminus>KEY_PREVIOUS</skipminus>
<guide>KEY_EPG</guide>
<title>KEY_TITLE</title>
<subtitle>KEY_SUBTITLE</subtitle>
<language>KEY_LANGUAGE</language>
<info>KEY_INFO</info>
<display>KEY_ZOOM</display>
<mute>KEY_MUTE</mute>
<power>KEY_POWER</power>
<eject>KEY_EJECTCD</eject>
<eject>KEY_EJECTCLOSECD</eject>
<menu>KEY_DVD</menu>
<menu>KEY_MENU</menu>
<myvideo>KEY_VIDEO</myvideo>
<mymusic>KEY_AUDIO</mymusic>
<mypictures>KEY_CAMERA</mypictures>
<livetv>KEY_TUNER</livetv>
<mytv>KEY_TV</mytv>
<teletext>KEY_TEXT</teletext>
<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>
<star>KEY_NUMERIC_STAR</star>
<hash>KEY_NUMERIC_POUND</hash>
<red>KEY_RED</red>
<green>KEY_GREEN</green>
<yellow>KEY_YELLOW</yellow>
<blue>KEY_BLUE</blue>
<recordedtv>KEY_PVR</recordedtv>
<liveradio>KEY_RADIO</liveradio>
</remote>
</lircmap>
Then I started Kodi 18.1 and tried it. There are more keys than before e.g. Play, Pause, Stop, Menu. But what is not possible yet is the Enter, Ok button and this configuration is useless as well.

I looked with irw what comes out when I press the OK key and he said KEY_ENTER, so I changed the entry in the Lircmap.xml under .kodi/userdata from select and enter to KEY_ENTER.
Unfortunately without success.

For this I would need help from the community again.
1. can i check if Kodi uses the custom Lircmap.xml? (the Kodi.log does not say anything about this)
2 What do I have to adjust to use the Ok button on my remote control?
Reply
#4
Thanks SirBoss I have read the post and changed my configuration to Lirc 0.10 from Ubuntu 18.04. Unfortunately it still doesn't work.
Reply
#5
Did you try this...
https://twosortoftechguys.wordpress.com/...ntu-18-04/

It was the only thing that worked for me and it was super easy.
Reply
#6
No, I didn't try to use the old LIRC version 0.90, because I read the bug report and was told there that it's not a bug and it works like that.
Did you try it without downgrading it according to the instructions of the bug report?
Reply
#7
(2019-02-23, 08:48)floe-de Wrote: so I changed the entry in the Lircmap.xml under .kodi/userdata from select and enter to KEY_ENTER.
Unfortunately without success.
If you edited your file.. did you restart Kodi after the change?

Originally I found Kodi didn't dynamically detect file changes so needed a restart to pick up any file amendments.  Not sure if that's changed at all.
Reply
#8
(2019-02-23, 16:25)UbuntuUser Wrote: Did you try this...
https://twosortoftechguys.wordpress.com/...ntu-18-04/

It was the only thing that worked for me and it was super easy.

This worked for me on 20.04.  Here's a more detailed write up of what I did in another thread I had bookmarked: https://forum.kodi.tv/showthread.php?tid...pid2944659
Reply
#9
Yeah, LIRC is not broken on 20.04 (or 18.04) but the configuration has moved from using /etc/lirc/hardware.conf to /etc/lirc/lirc_options.conf to configure the input device, driver etc.  /etc/lirc/lircd.conf is still used to load the remote map.

sql:
apt-cache policy lirc
lirc:
  Installed: 0.10.1-6.1
  Candidate: 0.10.1-6.1
  Version table:
 *** 0.10.1-6.1 500
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status


Works fine here for me.
Learning Linux the hard way !!
Reply
#10
(2020-04-27, 13:37)black_eagle Wrote: Yeah, LIRC is not broken on 20.04 (or 18.04) but the configuration has moved from using /etc/lirc/hardware.conf to /etc/lirc/lirc_options.conf to configure the input device, driver etc.  /etc/lirc/lircd.conf is still used to load the remote map.

sql:
apt-cache policy lirc
lirc:
  Installed: 0.10.1-6.1
  Candidate: 0.10.1-6.1
  Version table:
 *** 0.10.1-6.1 500
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status


Works fine here for me.

Good job. I could not get it to work after spending 6 hours looking at those same exact files you mentioned. And it took minutes after I remembered and found the "workaround".  They need to fix it so that it works just as well in the new version as just running the pkg configuration and walking away with a working remote system. More power to someone who is dead set on getting it working with 0.10.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 18 does not recognize my remote control (no LIRC)0