00:46:05 T:1957085184 DEBUG: LIRC: Update - NEW at 3517204:69 0 KEY_LEFT linux-input-layer (KEY_LEFT)
00:46:05 T:1957085184 DEBUG: OnKey: 169 (0xa9) pressed, action is Left
00:46:05 T:1957085184 DEBUG: LIRC: Update - NEW at 3517433:69 0 KEY_LEFT_UP linux-input-layer (KEY_LEFT_UP)
00:46:06 T:1957085184 DEBUG: LIRC: Update - NEW at 3518984:14 0 KEY_T linux-input-layer (KEY_T)
00:46:07 T:1957085184 DEBUG: LIRC: Update - NEW at 3519064:14 0 KEY_T_UP linux-input-layer (KEY_T_UP)
Obviously LIRC recognises both (left and t) but kodi only uses left and not “t” (like all other letters). I tried to change the remote in “my osmc”-settings, without success.
No idea for solving this problem? The problem still exists.
I did a little more debugging using a normal usb-keyboard next to the IR-remote-keyboard with the usb-ir-receiver. Here are the debug-logs from kodi. With the normal usb-keyboard:
Is this a bug? How to remove it? (I don’t won’t to ssh into osmc after every reboot to kill the two processes… And i didn’t found any startup files in /etc/init.d/).
The problem is its very difficult to solve these remote related problems without having a remote on hand to test with.
It looks like eventlircd is capturing the “keyboard” device and remapping it to look like a remote. This will be the result of a udev rule matching the hardware ID of your device and activating eventlircd for the device.
Most likely it is a rule in this file: /lib/udev/rules.d/98-eventlircd.rules. See below the following section of this file:
#-------------------------------------------------------------------------------
# Ask eventlircd to handle USB HID devices that show up as event devices and are
# known to be remote controls. For simplicity, the event map file names have the
# format <BUSTYPE>_<VENDOR>_<PRODUCT>.evmap.
#-------------------------------------------------------------------------------
One of the rules below that probably matches your device. To find out which you would need to install lsusb:
sudo apt-get install usbutils
Then run
lsusb
Take a note of the vendor ID and device ID of your keyboard device (it might have more than one if it is a multifunction device)
This is the two groups of 4 character hexidecimal numbers with a colon between them, the vendor ID is the first then the device ID. Then see if you can find those in the rules file. If you can, comment out the three lines related to that particular rule then reboot.
Let us know if that helps and we may be able to add the change to a future update.
[ 2.800316] usb 1-1.3: New USB device found, idVendor=4243, idProduct=ee08
[ 2.800344] usb 1-1.3: New USB device strings: Mfr=1, Product=5, SerialNumber=0
[ 2.800368] usb 1-1.3: Product: IR/ RF Control
[ 2.800391] usb 1-1.3: Manufacturer: Linux4Media GmbH
[ 2.810187] input: Linux4Media GmbH IR/ RF Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:4243:EE08.0003/input/input2
[ 2.861666] hid-generic 0003:4243:EE08.0003: input,hidraw2: USB HID v1.11 Keyboard [Linux4Media GmbH IR/ RF Control] on usb-3f980000.usb-1.3/input0
[ 2.869162] input: Linux4Media GmbH IR/ RF Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:4243:EE08.0004/input/input3
[ 2.921207] hid-generic 0003:4243:EE08.0004: input,hidraw3: USB HID v1.11 Mouse [Linux4Media GmbH IR/ RF Control] on usb-3f980000.usb-1.3/input1
[ 2.926771] hid-generic 0003:4243:EE08.0005: hiddev0,hidraw4: USB HID v1.11 Device [Linux4Media GmbH IR/ RF Control] on usb-3f980000.usb-1.3/input2
)
After I commented out the line in eventlircd.rules and rebooted the rp2 the remote works completely!
I suggest, that you remove the line in eventlircd.rules. The receiver is not only for the merlin keyboard, but also for “normal” merlin-IR-remotes (http://cdn.pollin.de/article/big/G620185.JPG). I also own this remote and the remote works fine without eventlircd!
Before I make this change, can you confirm that the button mappings for the remote have not changed in such a way that some buttons no longer work or perform the wrong functions ? Please test all the buttons both before and after.
Changing a remote from a remote device back to a keyboard device will use different key mappings in Kodi (remote.xml vs keyboard.xml etc) and will probably change the function of some buttons.
As described in my first post: Most keys of the keyboard aren’t working (but the “Record”-key is working).
For the remote: There is also no key mapped to the “ContextMenu”, but “Info” is mapped to the “HELP”-key. The “Record”-key is working.
Altogether: If you would made this change the situaton for the normal merlin remote would make two keys without function: “Record” and “Help”. So I don’t suggest this change any more.
Maybe changing /etc/eventlircd.d/03_4243_ee08.evmap is a resolution. I tried to add “KEY_Q = q”. But this didn’t change any behaviour. What should I write to the right side of the equal-sign?