HDMI-CEC seems to stop working after a couple of hours

So this issue seems very much like the one I’ve experienced as per my post in the Debian 11 Bullseye thread.

Since then, I’ve wiped my Vero 4K+ and re-imaged with the latest release image.

My setup is:

Panasonic GZ OLED TV 
  > Apple TV 4K - TV HDMI1
  > Samsung soundbar - TV HDMI2 (ARC) 
    > OSMC Vero 4K+ - Soundbar HDMI1

Symptoms when CEC goes haywire include:

  • Apple TV unable to adjust volume via its remote
  • “Auto via HDMI” no longer listed under Settings > Removes and Devices > Volume Control
  • Audio coming out of both TV speaker and Samsung soundbar when playing back on Apple TV
  • Panasonic TV unable to enable ARC
  • Business as usual for Vero 4K, no playback issues

I’ve been temporarily resolving this issue by:

  • Shutting down, powering off Vero 4K
  • Put Apple TV to sleep (TV and soundbar sometimes remain powered on)
  • Wake Apple TV up using Apple TV remote

Applied this test build above however the issue still manifested about once a day, requiring powering off of the Vero 4K unit to temporarily resolve this issue.

Enabled logging and I was lucky enough to have this replicating within 15 minutes (yay!)… roughly in the order below:

  1. Enabled debug and libCEC component logging via advancedsettings.xml
  2. Restart OSMC twice
  3. Switch to Apple TV as active source
  4. Walked away and devices went to sleep after 15 mins timer
  5. Woke up Apple TV and noticed audio started going wonky, unable to switch over to Vero 4K using Vero remote home button (via CEC)
  6. Grabbed log via terminal - Output

Hopefully this is of some use…

P/s: Could potentially be related, I’ve experienced a similar CEC-related bug when I’ve upgraded the Odroid N2+ from CoreELEC 19.4-Matrix to 19.5-Matrix_rc1, using similar setup as per above, replacing the Vero 4K+ with the Odroid instead.