Kodi, Formosa21 IR603 Receiver and Diamond RC118N Remote in Linux Mint 19.3

If anyone can help me map the non-working buttons on this remote, I’d greatly appreciate it. I’m going to go ahead and submit this post and update as I try things. In Windows, I was able to fully configure my remote by adding all three devices that the IR receiver shows within EventGhost. It doesn’t appear that this receiver is fully supported by LIRC, but it’s quite possible I’ve misconfigured something. This wiki page describes the different pathways of communication from remote to Kodi, but I’m still not clear on how to proceed.

dmesg | grep Formosa

[    4.215123] usb 1-9: Manufacturer: Formosa21
[    5.249685] input: Formosa21 IR603 HID MCE Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:147A:E031.0002/input/input4
[    5.306686] input: Formosa21 IR603 HID MCE Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:147A:E031.0002/input/input6
[    5.306763] input: Formosa21 IR603 HID MCE System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:147A:E031.0002/input/input7
[    5.306988] hid-generic 0003:147A:E031.0002: input,hiddev0,hidraw1: USB HID v1.11 Keyboard [Formosa21 IR603 HID MCE] on usb-0000:00:14.0-9/input0
[84857.934142] usb 1-13.4: Manufacturer: Formosa21
[84857.941139] input: Formosa21 IR603 HID MCE Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13.4/1-13.4:1.0/0003:147A:E031.0008/input/input28
[84857.997328] input: Formosa21 IR603 HID MCE Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13.4/1-13.4:1.0/0003:147A:E031.0008/input/input30
[84857.997398] input: Formosa21 IR603 HID MCE System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13.4/1-13.4:1.0/0003:147A:E031.0008/input/input31
[84857.997574] hid-generic 0003:147A:E031.0008: input,hiddev0,hidraw1: USB HID v1.11 Keyboard [Formosa21 IR603 HID MCE] on usb-0000:00:14.0-13.4/input0

lsusb -v -s 001:012

Bus 001 Device 012: ID 147a:e031 Formosa Industrial Computing, Inc.
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x147a Formosa Industrial Computing, Inc.
  idProduct          0xe031
  bcdDevice            1.00
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     119
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10

cat /proc/bus/input/devices | grep MCE

N: Name="Formosa21 IR603 HID MCE Keyboard"
N: Name="Formosa21 IR603 HID MCE Consumer Control"
N: Name="Formosa21 IR603 HID MCE System Control"

mode2 --driver devinput --list-devices

mode2: unrecognized option '--list-devices'
Usage: mode2 [options]

ls -l /dev/input/by-id | grep Formosa

lrwxrwxrwx 1 root root  9 Feb 22 20:28 usb-Formosa21_IR603_HID_MCE-event-if00 -> ../event5
lrwxrwxrwx 1 root root  9 Feb 22 20:28 usb-Formosa21_IR603_HID_MCE-event-kbd -> ../event4

mode2 --driver default --device /dev/input/by-id/usb-Formosa21_IR603_HID_MCE-event-if00

mode2: could not get hardware features
mode2: this device driver does not support the LIRC ioctl interface
mode2: did you mean to use the devinput driver instead of the default driver?

mode2 --driver devinput --device /dev/input/by-id/usb-Formosa21_IR603_HID_MCE-event-if00

mode2: initializing '/dev/input/by-id/usb-Formosa21_IR603_HID_MCE-event-if00'
This program does not work for this hardware yet

mode2 --driver devinput --device /dev/input/by-id/usb-Formosa21_IR603_HID_MCE-event-kbd

mode2: initializing '/dev/input/by-id/usb-Formosa21_IR603_HID_MCE-event-kbd'
This program does not work for this hardware yet

Gave up on trying to get the native infrared receiver working. Bought a Flirc USB. Had it set up in minutes. Worth it.