Hi,
I recently received my Vero 4K+ box and have almost finished setting it up.
I’ve previously used LibreELEC on a Generic HTPC machine, which has now been retired to serve as a TVHeadend server and storage.
I would like to use my Ortek VRC-1100 IR dongle which previously worked fine in LibreELEC, with the keys coming through as LIRC events.
Here is the hardware info from /proc/bus/input/devices
I: Bus=0003 Vendor=05a4 Product=9881 Version=0110
N: Name="HID 05a4:9881"
P: Phys=usb-xhci-hcd.0.auto-2/input0
S: Sysfs=/devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-2/1-2:1.0/0003:05A4:9881.0001/input/input2
U: Uniq=
H: Handlers=sysrq kbd event2
B: PROP=0
B: EV=120013
B: KEY=e080ffdf 1cfffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=05a4 Product=9881 Version=0110
N: Name="HID 05a4:9881"
P: Phys=usb-xhci-hcd.0.auto-2/input1
S: Sysfs=/devices/c9000000.dwc3/xhci-hcd.0.auto/usb1/1-2/1-2:1.1/0003:05A4:9881.0002/input/input3
U: Uniq=
H: Handlers=kbd mouse0 event3
B: PROP=0
B: EV=17
B: KEY=1f0000 0 2020000 3878 d801d001 1e0000 0 0 0
B: REL=103
B: MSC=10
This remote doesn’t generate LIRC events in osmc via eventlircd; instead, the buttons are coming through to kodi as keyboard presses.
I have a fairly heavily customised keymap which I migrated over from my LibreELEC installation. Instead of trying to get lirc working, I firstly decided to re-write my keymap to use the keyboard codes rather than remote codes. I have mostly got this working perfectly, but there is one problem I cannot overcome…
When used as a keyboard, the numeric input keys from the Ortek IR dongle map to the numpad input buttons. Unfortunately, there is a known issue in krypton, which I’ve come across before with this remote, whereby the numpad number keys do not work in the numeric input popup window when attempting to switch channels via LiveTV. And the numeric input windows cannot be influenced via keymaps. Ref: Numeric keypad problem (solved). I am therefore going to try to get the remote working under eventlircd (as it was in LibreELEC) as suggested on various kodi forum discussion threads for those trying to use an Ortek receiver (and possibly others).
I can see that the relevant evmap file already exists on osmc in /etc/eventlircd.d: https://github.com/osmc/osmc/blob/master/package/eventlircd-osmc/files/etc/eventlircd.d/03_05a4_9881.evmap
However, there is no rule in /lib/udev/rules.d/98-eventlircd.rules for this input device:
There is a udev rule for this device under LibreELEC which is likely why the remote worked with eventlircd under that distro:
So I think all that’s required is to add the relevant lines to /lib/udev/rules.d/98-eventlircd.rules
ENV{ID_VENDOR_ID}=="05a4", ENV{ID_MODEL_ID}=="9881", \
ENV{eventlircd_enable}="true", \
ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap"
Before I do so, I’d just like to check that I’m not missing anything or completely barking up the wrong tree.
Should adding the above lines to 98-eventlircd.rules allow this dongle to be picked up by LIRC? or is there a better way to get this remote to play with LIRC.