Sadly I can’t really decide:
I want to control kodi by IR, AND I want to run irexec to do some other tasks (e.g. start/stop kodi by IR). That worked fine within buster and fails now within bullseye.
I’ve digged a little bit within bullseye’s filesystem. To my surprise there exists already the file /lib/systemd/system/irexec.service. But that one can’t work since it tries to start the not existing /usr/sbin/irexec - I guess that it is originally provided from the lirc developers. I have created my own /etc/systemd/system/irexec.service as suggested by the internet community:
[Unit]
Description=IR Remote irexec
After=eventlircd.service
Wants=eventlircd.service
[Service]
ExecStartPre=/bin/sh -c “cd /usr/var/run/lirc; rm -f lircd; ln -s /var/run/lirc/lircd”
ExecStart=/usr/bin/irexec --daemon /etc/lirc/lircrc
Type=forking
[Install]
WantedBy=multi-user.target
It automatically fixes a known bug within irexec relying on the /usr… path towards the lircd socket (still present within bullseye, I did validate that).
I see some spurious errors from lircd (but probabely not directly related to my issue):
● lircd.service - Flexible IR remote input/output application support
Loaded: loaded (/lib/systemd/system/lircd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-09-22 08:43:32 CEST; 46s ago
Docs: man:lircd(8)
LIRC - Linux Infrared Remote Control
Main PID: 12800 (lircd)
Tasks: 1 (limit: 975)
CPU: 84ms
CGroup: /system.slice/lircd.service
└─12800 /usr/sbin/lircd --nodaemon
Sep 22 08:43:32 imurr9 lircd[12800]: lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TOOL_PEN
Sep 22 08:43:32 imurr9 lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TOOL_PEN
Sep 22 08:43:32 imurr9 lircd[12800]: lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER
Sep 22 08:43:32 imurr9 lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER
Sep 22 08:43:32 imurr9 lircd[12800]: lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER_HAPPY1
Sep 22 08:43:32 imurr9 lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_TRIGGER_HAPPY1
Sep 22 08:43:32 imurr9 lircd[12800]: lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_WHEEL
Sep 22 08:43:32 imurr9 lircd-0.9.4c[12800]: Notice: /usr/etc/lirc/lircd.conf.d/devinput.lircd.conf: devinput-32: Multiple values for same code: BTN_WHEEL
Sep 22 08:43:32 imurr9 lircd[12800]: lircd-0.9.4c[12800]: Notice: lircd(devinput) ready, using /var/run/lirc/lircd
Sep 22 08:43:32 imurr9 lircd-0.9.4c[12800]: Notice: lircd(devinput) ready, using /var/run/lirc/lircd
The messages from lircd CHANGE when I fire up mediacenter. Thus I assume that as part of starting kodi the lircd/eventlircd are reconfigured being disturbed by the running irexec. Since all IR tools rely on sharing the lircd communication socket spurious errors might occur if that socket is changed unexpectedly.
Regarding your question: I’d like to run my remote kernel based and avoid ir-keytable. That should work out-of-the-box, AND it should not prevent irexec from working.
Final question: Is my observation true that kodi somehow restarts lircd? And if yes it is somehow possible to respect running irexec?
Regards, Michael