IR Remote control stopped working after update

Hi all, after the last update I did in, I believe November, my infrared remote control stopped working for OSMC on my raspberry pi.

Checking the status through putty with systemctl status lircd.service returns Unit lircd.service could not be found.

When trying to reinstall LIRC i get following error:

root@osmc:~# sudo apt-get install lirc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libftdi1-2 libjack-jackd2-0 liblirc-client0 liblirc0 libopus0 libportaudio2 libusb-1.0-0
Suggested packages:
  jackd2 opus-tools lirc-compat-remotes lirc-drv-irman lirc-doc lirc-x setserial
Recommended packages:
  gir1.2-vte-2.91 python3-yaml
The following packages will be REMOVED:
  armv7-eventlircd-osmc armv7-lirc-osmc armv7-remote-osmc rbp2-device-osmc
The following NEW packages will be installed:
  libftdi1-2 libjack-jackd2-0 liblirc-client0 liblirc0 libopus0 libportaudio2 libusb-1.0-0 lirc
0 upgraded, 8 newly installed, 4 to remove and 0 not upgraded.
Need to get 0 B/1251 kB of archives.
After this operation, 3192 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 37165 files and directories currently installed.)
Removing rbp2-device-osmc (1.5.7) ...
WARNING: You have tried to remove a package that is essential to OSMC's operation.
To undo these changes, run 'sudo apt-get -f install'.
dpkg: error processing package rbp2-device-osmc (--remove):
 installed rbp2-device-osmc package pre-removal script subprocess returned error exit status 1
dpkg: armv7-lirc-osmc: dependency problems, but removing anyway as you requested:
 armv7-remote-osmc depends on armv7-lirc-osmc.
 armv7-eventlircd-osmc depends on armv7-lirc-osmc.

Removing armv7-lirc-osmc (0.9.4-6) ...
dpkg: armv7-remote-osmc: dependency problems, but removing anyway as you requested:
 rbp2-device-osmc depends on armv7-remote-osmc.

Removing armv7-remote-osmc (1.2.4) ...
Removing 'diversion of /etc/lirc/lircd.conf to /etc/lirc/lircd.conf.distributed by armv7-remote-osmc'
Removing armv7-eventlircd-osmc (1.4.6) ...
Errors were encountered while processing:
 rbp2-device-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea what’s going on and how i can fix it ?

OSMC provides its own version of LIRC.

If you install the Debian version as you did above this is not supported.

Thanks for your understanding.

So what do i have to do to have it working again ? :slight_smile: Or at least test if it works through terminal ?

Apparently my IR module was gone from the boot/config.txt. After adding this again it worked.
dtoverlay=gpio-ir,gpio_pin=17

Also removed the debian version as this is not needed anymore.

You should be setting it in boot/config-user.txt, as the /boot/config.txt can be overwritten by OSMC updates.