Currently, I’m using bluetooth to control kodi/osmc from my harmony hub using the harmony 950 remote. That works fine as long as there is no additional bluetooth device to be controlled due to limitations of harmony hub. I do have this situation, and thus I want to migrate towards IR control.
I hooked up an TSP IR receiver to my raspberry pi 3 and enhanced my harmony setup to include the device vendor=Microsoft, model=MCE keyboard. Within OSMC I did enable GPIO pin 17 for input, and selected rc6-mce as remote device.
Sadly, this doesn’t work at all. I did google for some hours without final conclusion. But I now know that my IR receiver is working and that linux is receiving IR events:
ir-keytable -c -p all -t
will return different scancodes for different keypresses.
I did also discover the thread Enable support for IR RC MCE Keyboard on startup where someone did propose to use
ir-keytable -p lirc -p rc-6 -p mce_kbd
Sadly this works only partly - e.g. the OK button now works and is processed by OSMC, but the direction buttons don’t. To check that I run
ir-keytable -t
seeing scancodes if the buttons don’t work, and nothing if the buttons did work.
Please give me a hint howto use harmony IR to control kodi.
Maybe I should use a different IR device within harmony? But which one to get as many supported keys as possible (for non-kodi actions during kodi harmony activity).
Or can someone provide a full featured lircd.conf for MCE keyboards?
BTW I’m using OSMC 2021-11 i.e. the current release of OSMC.
Regards, Michael
Additional info/question: I’m running triggerhappy in parallel to grab keyevents from /dev/input/event* - to my surprise no keyevent from IR keypresses are visible by thd --dump at all. I’d expect that any IR keypress (being handled by the kernel) should be visible to triggerhappy, too. Is my assumption wrong that IR keypresses are handled by the linux kernel?