Comment 26 for bug 1788235

Revision history for this message
Alec Leamas (leamas-alec) wrote :

> Kodi definitely works with the latest versions of Lirc and the problem i
> is very easy to fix so stop downgrading your systems to an older version of
> Lirc!!!!

Right.

> The problem is Kodi defaults to looking for a Lirc socket at /dev/lircd which
> doesn’t exist anymore.

Has anyone cared to file a bug against kodi on this?

> 3. Modify the /lib/systemd/system/lircd.service to create a symlink
> from /dev/lircd to /var/run/lirc/lircd each time the lircd.service or
> system is restarted:

Please, no. The files in /lib/systemd/system should not be tampered with, they are
replaced on package update without mercy. Instead, copy /lib/systemd/system/lircd.service
to /etc/systemd/system and modify that copy (it overrides the /lib/systemd one).

Also note that lirc_options.conf supports code: stanzas which are executed as
root before lircd is launched. Linking could be done here instead of patching the service
file.

And, finally: the /dev directory is just not aimed for this kind of files, it's supposed
to be handled by udev. So, creating links here should be avoided if at all possible.

> e.g: sudo systemctl disable lircd-uinput.service

Indeed. Debian upstream by default disables this service in last update. Using
'systemctl disable --now lircd-uinput.service' is probably the best to both stop and disable.

> What I still cannot get working is the lirc-setup app (which replaces dpkg-reconfigure lirc)

Also this is fixed in debian upstream. Until it trickles down, the dirty work-around is
something like:

    # libdir=/usr/lib/x86_64-linux-gnu/python3.6/site-packages
    # cp /usr/share/lirc/python-pkg/config.py $libdir/lirc
    # ln -s $libdir/lirc /usr/lib/python3/dist-packages/
    # ln -s $libdir/lirc-setup /usr/lib/python3/dist-packages/