Wow, thanks HiassofT !
Alas, I don't think I've made any progress.
I've followed most of the instructions in [xbmcbuntu] [SOLVED] some buttons not working PHILIPS MCE USB IR Receiver-Spinel plus - starting from Step 5, intermixed with your notes above.
5. "InputClass" section added to /usr/share/X11/xorg.conf.d/10-evdev.conf by copying /usr/share/X11/xorg.conf.d to /storage/.config/, adding to 10-evdev.conf; then bind mounting /storage/.config/xorg.conf.d to /usr/share/X11/xorg.conf.d. Followedup by a systemctl restart xorg && systemctl restart kodi
6. Replaced with 99-zotac.rules from above Noting the , RUN+="/sbin/initctl --quiet emit --no-wait ir-ready" is missing from above
6. - Config files - Omitted /etc/lirc/hardware.conf. lirc_options.conf amended as above; lircd.conf copied from referenced thread.
Rebooted; and repeated Step 5 (since the bind mount will disappear over the reboot).
Step 5 definitely got Xorg to ignore the devices: - from /var/log/Xorg.0.log:
[ 794.241] (II) config/udev: Adding input device PHILIPS MCE USB IR Receiver- Spinel plus Consumer Control (/dev/input/event7)
[ 794.241] (**) PHILIPS MCE USB IR Receiver- Spinel plus Consumer Control: Ignoring device from InputClass "PHILIPS MCE USB IR Receiver- Spinel plus"
[ 794.243] (II) config/udev: Adding input device PHILIPS MCE USB IR Receiver- Spinel plus Keyboard (/dev/input/event5)
[ 794.243] (**) PHILIPS MCE USB IR Receiver- Spinel plus Keyboard: Ignoring device from InputClass "PHILIPS MCE USB IR Receiver- Spinel plus"
[ 794.245] (II) config/udev: Adding input device PHILIPS MCE USB IR Receiver- Spinel plus System Control (/dev/input/event6)
[ 794.245] (**) PHILIPS MCE USB IR Receiver- Spinel plus System Control: Ignoring device from InputClass "PHILIPS MCE USB IR Receiver- Spinel plus"
The /dev/remote sylink is definitely there:
# ls -l /dev/remote
lrwxrwxrwx 1 root root 11 Apr 8 16:26 /dev/remote -> usb/hiddev1
lircd seemed to be having a fit:
# journalctl -x -u lircd |head
-- Logs begin at Wed 2020-04-08 16:41:59 AEST, end at Wed 2020-04-08 16:53:16 AEST. --
Apr 08 16:49:05 XBMC lircd_helper[327]: lircd-0.10.1[327]: Error: (zotac_repeat) too many repetitions
Apr 08 16:49:05 XBMC lircd-0.10.1[327]: Error: (zotac_repeat) too many repetitions
Apr 08 16:49:05 XBMC lircd_helper[327]: lircd-0.10.1[327]: Info: closing '/dev/remote'
Apr 08 16:49:05 XBMC lircd-0.10.1[327]: Info: closing '/dev/remote'
<< repeats infinitely >>
... which was fixed with
# systemctl restart lircd
# journalctl -xe -u lircd
Apr 08 16:57:27 XBMC systemd[1]: Started Flexible IR remote input/output application support.
Apr 08 16:57:27 XBMC lircd-0.10.1[3127]: Info: lircd: Opening log, level: Info
Apr 08 16:57:27 XBMC lircd-0.10.1[3127]: Notice: Version: lircd 0.10.1
Apr 08 16:57:27 XBMC lircd-0.10.1[3127]: Notice: System info: Linux XBMC 5.1.16 #1 SMP Sun Mar 22 21:08:09 CET 2020 x86_64 GNU/Linux
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Info: Initial device: /dev/remote
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Info: Initial device: /dev/remote
Apr 08 16:57:28 XBMC lircd_helper[3127]: lircd-0.10.1[3127]: Info: lircd: Opening log, level: Info
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: driver: zotac
Apr 08 16:57:28 XBMC lircd_helper[3127]: lircd-0.10.1[3127]: Notice: Using systemd fd
Apr 08 16:57:28 XBMC lircd_helper[3127]: lircd-0.10.1[3127]: Warning: Running as root
Apr 08 16:57:28 XBMC lircd_helper[3127]: lircd-0.10.1[3127]: Info: Using remote: zotac.conf.
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: output: /run/lirc/lircd.socket
Apr 08 16:57:28 XBMC lircd_helper[3127]: lircd-0.10.1[3127]: Notice: /storage/.config/lircd.conf: zotac.conf: Multiple values for same code: KEY_ENTER
Apr 08 16:57:28 XBMC lircd_helper[3127]: lircd-0.10.1[3127]: Notice: lircd(zotac) ready, using /run/lirc/lircd.socket
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: nodaemon: 1
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: plugindir: /usr/lib/lirc/plugins
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: logfile: syslog
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: immediate-init: 0
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: permission: 666
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: driver-options:
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: pidfile: /run/lirc/lircd.pid
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: listen: 0
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: connect: (null)
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: userelease: 0
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: effective_user: (null)
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: release_suffix: _EVUP
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: allow_simulate: 0
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: repeat_max: 600
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: configfile: /storage/.config/lircd.conf
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Options: dynamic_codes: (null)
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Current driver: zotac
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Driver API version: 3
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Driver version: 0.10.0
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Driver info: No info available
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Info: lircd: Opening log, level: Info
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: Using systemd fd
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Warning: Running as root
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Info: Using remote: zotac.conf.
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: /storage/.config/lircd.conf: zotac.conf: Multiple values for same code: KEY_ENTER
Apr 08 16:57:28 XBMC lircd-0.10.1[3127]: Notice: lircd(zotac) ready, using /run/lirc/lircd.socket
Display More
but irw still won't recognise the "other" scancodes (e.g. Windows key / Teletext):
# irw
67 0 KEY_UP devinput
6c 0 KEY_DOWN devinput
<< nothing for Windows key >>
<< nothing for Teletext key >>
Same story in kodi.log.
I'm not sure lircd is working properly... Did a systemctl stop xorg; systemctl stop kodi; systemctl stop eventlircd; systemctl stop lircd
Added /etc/lircd/hardware.conf from the referenced thread (again, through a bind mount...)
systemctl start lircd ... then irw /run/lirc/lircd.socket while journalctl -xf -u lircd in another window.
Back to:
Apr 08 17:12:19 XBMC lircd_helper[3324]: lircd-0.10.1[3324]: Info: removed client
Apr 08 17:12:19 XBMC lircd_helper[3324]: lircd-0.10.1[3324]: Info: closing '/dev/remote'
Apr 08 17:12:19 XBMC lircd-0.10.1[3324]: Info: removed client
Apr 08 17:12:19 XBMC lircd-0.10.1[3324]: Info: closing '/dev/remote'
<< repeats infinitely >>
... as soon as irw fires up. Also, irw now doesn't report any scancodes at all... It seems before, it was reading them from eventlircd.
Ideas? Did I miss something?
Cheers,
Peter