CEC input on Wayland
Currently the approach used for CEC support only works on X11. However, Wayland is of course the future and we should really move away from it, especially for a new platform like Bigscreen. @apol and I have been messing around a bit with various approaches but so far have had no luck.
kwin!1061 (closed) was made by @apol to get CEC input directly in KWin, and based on that and https://invent.kde.org/apol/joyclick I made https://invent.kde.org/bribbers/cecinput as a separate daemon. Both approaches use the https://github.com/Pulse-Eight/libcec library but it seems unstable and gives us unpredictable results so far.
Current issues with the standalone application:
The moment the constructor of the CECInput class is finished, the complete application crashes with SIGSEGV and the same problem seems to happen with the KWin MR. To prevent this I tried an infinite loop and then the application does receive proper inputs from the connected TV remote. However, when calling handleCecKeypress
when that happens we seem to have never received the Wayland interface. This is probably because of the infinite loop in the constructor: the application never seems to get to a point where KWin can assign the application the required interfaces.
So, any advise on how to get CEC input working on Wayland would be appreciated.