I fixed this with another solution. The thing for my is that on a LG and SONY TVs when only the KODI was connected to the TV, CEC works fine, but when I connect in the HDMI 2 my cable TV service (arris brand) the CEC in KODI stop working. I tried many things but couldn’t fix it so at the end I just put a little piece of tape over the pin 13 (CEC pin) of my TV service hdmi cable to disable CEC, after that KODI works perfect and it doesn’t affect at all my TV service. Could sound a bit tricky but it work.
Hope this can help someone!
