LIRC Help needed - LIRS is running but not in Kodi
#1
Hello,

I am completely new to Kodi and just installed Kodi (Starting Kodi (18.8 (18.8.0) Git:20201002-nogitfound). Platform: Linux x86 64-bit) via flatpak from flathub.
System: Linux vdr1 4.19.0-13-amd64 #1 SMP Debian Buster 4.19.160-2 (2020-11-28) x86_64 GNU/Linux

I have problems to get my Remote-IR (Hauppauge_350) running with Kodi. It is working with a VDR-System.
Lircd is running, the IR is working via vdr-sxfe --lirc just like it should and vdr itself, which is running in the background does not uses lirc, because the remote is connected via the vdr-sxfe frontend on frontend start.

irw shows (vdr-sxfe and kodi is stopped):
shell:

vdr@vdr1:~$ irw
00000000000017bb 00 Go Hauppauge_350
00000000000017bd 00 Power Hauppauge_350
0000000000001794 00 Up Hauppauge_350
0000000000001795 00 Down Hauppauge_350
0000000000001796 00 Left Hauppauge_350
0000000000001797 00 Right Hauppauge_350


Lirdc.conf:
shell:

begin remote

  name  Hauppauge_350
  bits           13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           969   811
  zero          969   811
  plead        1097
  gap          114605
  toggle_bit      2


      begin codes
          Go                       0x00000000000017BB
          Power                    0x00000000000017BD
          Up                       0x0000000000001794
          Left                     0x0000000000001796
          Right                    0x0000000000001797
          Down                     0x0000000000001795


I created Lircmap.xml (https://kodi.wiki/view/LIRC):
shell:

<lircmap>

  <remote device="Hauppauge_350">

    <left>Left</left>
    <right>Right</right>
    <up>Up</up>
    <down>Down</down>
    <select>OK</select>
    <back>Back/Exit</back>


an put it in: ~/.var/app/tv.kodi.Kodi/data/userdata

but Kodi does not recognize any keypress on the remote.

What am I doing wrong?

~/.var/app/tv.kodi.Kodi/data/temp/kodi.log tells me that:

021-01-17 15:47:53.437 T:140346546076288  NOTICE: special://masterprofile/ is mapped to: /home/vdr/.var/app/tv.kodi.Kodi/data/userdata

so Lircmap.xml sould be at the right place.

LIRC is running, irw shows the right codes, lircd.conf is up and other applications using the remote like vdr-sxfe are working with the remote.

lircd listen on: /var/run/lirc/lircd
and in dev there is: /dev/lirc0

kodi itself is started via: /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=kodi tv.kodi.Kodi

In the kodi.log there is no string connected with lirc found.
Is thereperhaps a command option missing to activate lirc on kodi startup?

All other config xml files are unmodified at there base location under:
/var/lib/flatpak/app/tv.kodi.Kodi/x86_64/stable/75a8cbf685c9d1c1b35e30853f45a7590bc8882404bb44888efb5bc21f51aabc/files/share/kodi/system

Any help would be great to get my working remote-IR running with kodi.

Best regards,
Bernd
Reply
#2
No hints? No clue, what's wrong with Kodi and the lirc/remote?
Reply
#3
(2021-01-18, 18:16)berni123 Wrote: No hints?

In order to get hints users are usually asked to provide a Debug Log
Reply
#4
https://forum.kodi.tv/showthread.php?tid=233369
Reply
#5
I have similar system, Ubuntu Mate 20.10 running Kodi, VDR and Steam.

LIRC worked right away for me. Although later I changed it to approach where LIRC is disabled in Kodi, and instead I use irexec to map remote to keyboard buttons. Then I can use remote in the Mate launcher, to select what app I want to launch.

One thing I notice in your Lircmap.xml is that is missing the closing tags </remote> and </lircmap> .. I don't know if they are needed, but that's easy to try.

I'm actually having some LIRC problem myself too. LIRC just randomly dies when I'm using the remote, especially if pressing the buttons very quickly. Restarting lircd fixes it. Doesn't happen very often. I'm using the audio_alsa soundcard input..

BTW, you should try using VDR with the Kodi PVR plugin. It is perfect that way, no need to use VDR directly. Smile
Reply
#6
(2021-01-19, 10:13)Zuikkis Wrote: I have similar system, Ubuntu Mate 20.10 running Kodi, VDR and Steam.

LIRC worked right away for me. Although later I changed it to approach where LIRC is disabled in Kodi, and instead I use irexec to map remote to keyboard buttons. Then I can use remote in the Mate launcher, to select what app I want to launch.

One thing I notice in your Lircmap.xml is that is missing the closing tags </remote> and </lircmap> .. I don't know if they are needed, but that's easy to try.

I'm actually having some LIRC problem myself too. LIRC just randomly dies when I'm using the remote, especially if pressing the buttons very quickly. Restarting lircd fixes it. Doesn't happen very often. I'm using the audio_alsa soundcard input..

BTW, you should try using VDR with the Kodi PVR plugin. It is perfect that way, no need to use VDR directly. Smile
Thanks for your reply.

It seems to me, that the flatpak version of kodi does not recognize either /var/run/lirc/lircd or /dev/lirc0.
The kodi log shows nothing about lirc, no loading of Lircmap.xml (btw. obove is only an excerpt, so the closing tags are present in the original file).
irexec is not installed, because lircd is set up via /etc/lircd.conf.d/hauppauge_350.conf as shown above and irw dumping from /var/run/lirc/lircd show the correct codes from the remote.

I was looking for a documentation how lirc is implemented in kodi but had not the time to look through the source code. Perhaps I have to compile it from scratch from the master code of tag 18.8 or 18.9 from github,
which I wanted to avoid using the sandboxed flatpak version 18.8, because Debian 10 Buster only have 17.x in the base tree.

In the meantime I am using the keypad while running kodi on my vdr, giving up to send hours of debugging the running lirc installation ...

Btw I have installed the vdr-plugin-vnsi and installed the kodi addon PVR-VDR, running fine, but I am missing my NG-Skin of VDR - so I love to switch between kodi and vdr-sxfe.

Best regards and thanks for all help ...

Bernd
Reply
#7
This probably has to do either with flatpack sandboxing (flatpack application must be explicitly allowed to access host filesystems/devices)
or maybe flatpack version was built without lirc support at all.

Ask the person(s) who provided flatpack package for support.

An alternative would be to use ir-keytable to configure your remote without lirc, the remote will behave as if it was a keyboard.
Search the forums for tips about how to do it.
Reply
#8
See https://github.com/flathub/tv.kodi.Kodi/...i.Kodi.yml I don't see LIRC listed as dependency.
Open a ticket at https://github.com/flathub/tv.kodi.Kodi/issues for support.
Reply
#9
(2021-01-20, 14:56)berni123 Wrote: irexec is not installed, because lircd is set up via /etc/lircd.conf.d/hauppauge_350.conf as shown above and irw dumping from /var/run/lirc/lircd show the correct codes from the remote.

Maybe try irexec? I'm very happy with my current setup where LIRC is disabled in Kodi, and irexec converts remote to key presses. This has the added benefit that you can edit irexec conf while Kodi is running, very easy to add a key if you notice that something is missing during video playback etc. Smile

I don't know how it will work together with VDR, though.

I guess you could also use ir-keytable, but irexec is perhaps easier to setup.
Reply

Logout Mark Read Team Forum Stats Members Help
LIRC Help needed - LIRS is running but not in Kodi0