Posts by nemesis84

    That build worked perfectly!! I'll have a tinker around with lircd.conf - some of the keys are reporting the same keycode (namely KEY_SLEEP and KEY_WAKEUP are both reporting as KEY_POWER). You were right about the duplicate keypresses, too.

    Will the bug fix patch be integrated into LibreElec for future releases, or is this something I'd need to do with each upgrade?

    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:

    Code
    [   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:

    Code
    # ls -l /dev/remote
    lrwxrwxrwx    1 root     root            11 Apr  8 16:26 /dev/remote -> usb/hiddev1

    lircd seemed to be having a fit:

    Code
    # 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

    but irw still won't recognise the "other" scancodes (e.g. Windows key / Teletext):

    Code
    # 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:

    Code
    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

    Hi all,

    I've got the same problem here. It's the remote included with a Zotac ID81 & included external USB IR receiver. Was working fine under OpenElec 7.0.1. Upgraded to a fresh & clean install of LibreElec 9.2.2, and most of the "special" buttons (e.g. Windows button, Teletext button) don't work.

    From dmesg:

    Code
    [    2.987188] usb 2-1.4: new low-speed USB device number 6 using ehci-pci
    [    3.109769] input: PHILIPS MCE USB IR Receiver- Spinel plus Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:0471:20CC.0004/input/input9
    [    3.164205] input: PHILIPS MCE USB IR Receiver- Spinel plus System Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:0471:20CC.0004/input/input10
    [    3.164305] input: PHILIPS MCE USB IR Receiver- Spinel plus Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:0471:20CC.0004/input/input11
    [    3.164440] hid-generic 0003:0471:20CC.0004: input,hiddev97,hidraw3: USB HID v1.00 Keyboard [PHILIPS MCE USB IR Receiver- Spinel plus] on usb-0000:00:1d.0-1.4/input0

    Further details:


    As far as I can tell, the LibreElec kernel might be using the wrong driver? Should this be mceusb, instead of hid-generic?

    I've tried manually unbinding & binding to mceusb:

    Code
    # modprobe mceusb
    # echo -n "2-1.4:1.0" > /sys/bus/usb/drivers/usbhid/unbind
    # echo -n "2-1.4:1.0" > /sys/bus/usb/drivers/mceusb/unbind 
    sh: write error: No such device 

    I noticed there was a patch in OpenElec, which was removed in LibreElec in 2018?

    Any assistance appreciated...

    Cheers,

    Peter