I have figured out the CEC issue !
To recreate :
1. While a video stream is playing in kodi issue the below commands in terminal :
pgrep kodi.bin | xargs kill -SIGSTOP
(Then wait for about 10 seconds and execute the below command)
pgrep kodi.bin | xargs kill -SIGCONT
You will see the error message that the connection to the Pulse8 USB has been lost.
2. Now navigate to your settings\input\CEC (using your phone or keyboard ect) and click on the radio button to "disable"...wait for 5 seconds. Then re-enable the radio button...wait 5 seconds. Now save and back out. CEC is restored!!!!
3. I have captured the CEC command that is being sent when CEC is resotred :
dmesg |grep cec
[ 334.446269@0] [amlogic_cec] amlogic_cec_irq_handler(): cec msg status: rx: 0x2; tx: 0x0
[ 334.447956@0] hdmitx: cec: CEC[4]: rx msg len: 2 dat: 04 8c
[ 334.587782@0] [amlogic_cec] amlogic_cec_irq_handler(): cec msg status: rx: 0x0; tx: 0x2
Whatever is happening in those 3 lines is able to restore the lost CEC connection. Now we just need the command to directly issue these commands rather than us actually navigating to the control panel each time to re-activate CEC.
Kszaq...Can you translate what is captured there into an echo "rx 04 8c" | cec-client -s type command?