How can I remove lirc interface (or any other unused mig interface)

I don’t use lirc for my HG install, but every second there is an entry in journalctl that was something like:
lircd[487]: lircd-0.9.4c[487]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]

…which makes a huge log with unnecessary entries.

What is the best way to totally disable / remove the lirc MIG software and dependency?

Note: I tried “apt-get remove lirc” but it has homegenie as an attached dependency.

Edit the system config xml file and remove the interface from within there. - edit: you will only have zwave, x10 and upnp iirc.

As for the dependency, the debian file lists lirc as a dependency so this should be raised as an issue, as it isnt a dependency for hg - but more so the interfaces / plugins…

I too have been trying to sort this issue. It does not appear to be affecting performance beyond filling syslog with entries every second. I am not sure of the exact date when this started, maybe a month ago. The Debian folks are aware of the issue, it dates back to early last year. The bug report was closed, because it was determined that something was triggering lirc and lirc was functioning normally. The bug was reopened, but I have not seen a resolution. There is a plan in place to release a fix with the next update. There are a number of threads out there just by pasting the log line of the error into google. BTW, I do not use IR at this time and the problem exists on my HG production machine. I should also note, the are no entries into homegenie.log that would indicate that lirc is being triggered.

There are three things I have been working on, so lumped all together.

  1. Set up a RPi as a wireless access point – Will running HG impact the access point?

Set up RPi using version of Stretch I downloaded back in December 2017. Did apt-get update. No upgrade. Used bridge-utils to create an access point. Checked syslog. No lirc errors found. Installed HG r526 without any issues. No changes to HG configutation. Syslog now shows errors. But, for this part there does not appear to be a loading problem for the access point.

  1. Following Trobleshooting clean install on Stretch with bkenobi. I am aware that apt-get upgrade is now a problem for HG. Wanted to set up a new instance of r526 on another RPi. Will HG run?

I am still following the bkenobi thread. However, cannot identify an issue with my install.

  1. Inspect RPi logs before and after installing HG. Are the lirc errors showing up without HG installed?

As above the lirc errors are not present until HG is installed.

Primary thread on bug report.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860551

Referencing message 35, stopped and disabled lircd. Error entries in syslog stopped. However, on reboot the entries resume. I tried apt-get purge lirc. HG failed after that. Installed lirc again, HG is OK, errors continue to show.

BEFORE
Mar 10 06:36:47 RPiHG1 lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Mar 10 06:36:48 RPiHG1 lircd[452]: lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Mar 10 06:36:48 RPiHG1 lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Mar 10 06:36:49 RPiHG1 lircd[452]: lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Mar 10 06:36:49 RPiHG1 lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]


Message #35 received at [email protected] (full text, mbox, reply):

From: Eriberto Mota [email protected]
To: [email protected]
Subject: Re: lircd-0.9.4c[845]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Date: Fri, 16 Jun 2017 17:32:55 -0300
Other approach (temporary solution) is disable the lircd daemon:

systemctl stop lircd

systemctl disable lircd

Regards,

Eriberto

SHUTDOWN
Mar 10 06:51:43 RPiHG1 lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Mar 10 06:51:44 RPiHG1 lircd[452]: lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Mar 10 06:51:44 RPiHG1 lircd-0.9.4c[452]: Error: Cannot glob /sys/class/rc/rc0/input[0-9]/event[0-9]
Mar 10 06:51:44 RPiHG1 lircd[452]: lircd-0.9.4c[452]: Notice: caught signal
Mar 10 06:51:44 RPiHG1 lircd[452]: lircd-0.9.4c[452]: Info: closing ‘auto’
Mar 10 06:51:44 RPiHG1 lircd-0.9.4c[452]: Notice: caught signal
Mar 10 06:51:44 RPiHG1 systemd[1]: Stopping Flexible IR remote input/output application support…
Mar 10 06:51:44 RPiHG1 lircd-0.9.4c[452]: Info: closing ‘auto’
Mar 10 06:51:44 RPiHG1 systemd[1]: Stopped Flexible IR remote input/output application support.
Mar 10 06:52:26 RPiHG1 systemd[1]: Reloading.
Mar 10 06:52:27 RPiHG1 systemd[1]: apt-daily.timer: Adding 49min 5.372451s random time.
Mar 10 06:52:27 RPiHG1 systemd[1]: apt-daily-upgrade.timer: Adding 26min 44.718267s random time.

Following this thread, systemconfig.xml is as installed. I have made no changes yet. Tried to find refernce to lirc. Not sure what to edit.
Systemconfig.xml

<?xml version="1.0" encoding="utf-8"?> Messaging.Email.Sender 2014-04-19T10:24:49.9710739Z Messaging.Email.SmtpServer 2014-04-19T10:24:49.9710739Z Messaging.Email.SmtpUserName 2014-04-19T10:24:49.9710739Z Messaging.Email.SmtpPassword 2014-04-19T10:24:49.9710739Z Messaging.Email.SmtpPort eJbaQytfgHp7xJPm8Z/eJA== 2018-03-12T13:34:53.680718Z Messaging.Email.SmtpUseSsl wO5wEfcHot5LVVYYRDaZ1w== 2018-03-12T13:34:53.681875Z 4d287d22-5383-4e39-a84c-8b04cf7e65af HAL { name: 'Rome, RM, Italia', latitude: 41.90278349999999, longitude: 12.496365500000024 } true

Sorry, I can not fix a specific date when the errors log entries started. I wonder if others are having this issue as well? Now I am chasing down glob to understand that better.

Not sure if this helps, but this lirc journalctl logging every second does not occur with the version 526 install (mono 4.6 installed)

I wonder what is different on my test set up? Mono 4.6.2.7 was installed by default and r526 is running. lirc errors as well.

I did manually remove lirc (carefully not to also remove the dependent HomeGenie app).

It’s annoying that the lirc interface is seen as a dependency.

Which app was removed?

I removed lyric

I think I did: sudo dpkg --remove lirc

But later I did a complete removal of mono and homegenie (after backing up my configuration)
Then re-install homegenie v526

I did sudo apt-get purge lirc. Maybe that is the difference. Purge killed HG.

Did not know that Honeywell Lyric was in HG. ?

Will try as yo did it. Are you using mono 4.6.2.7?

I removed mono, hg, lyric then reinstalled v526 that brings in mono (and any /etc/apt/sources.list.d/ mono-official.list) Used the install:

wget https://github.com/genielabs/HomeGenie/releases/download/v1.1-beta.526/homegenie-beta_1.1.r526_all.deb
sudo apt-get update
sudo apt-get install gdebi-core
sudo gdebi homegenie-beta_1.1.r526_all.deb

Here is the version:
mono -V
Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

1 Like