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

libCEC is effectively a database of TV quirks with hacks around different manufacturer’s implementations.

CEC is a one-wire bus protocol and a standard, but it is implemented individually by every manufacturer and then re-branded so it seems a unique feature to that brand: Anynet, Easylink, Bravia Sync etc. To make matters worse – TVs often get OTA updates that cause regressions.

Don’t install these two packages on your Vero 4K +

We don’t use edid-decode on a Vero 4K/4K+, it’s only needed for Pi.

debootstrap isn’t needed on the system either. It is used at file system generation time, so makes no sense to include it on the target system environment.

No such file or directory: ‘/etc/osmc_build_info’

This just means that your system before August 2021, when this commit was introduced in to the filesystem build scripts:

The lack of the file isn’t a problem. We just include a timestamp for filesystem generation date so we know what the original installation version of OSMC is; as this may be useful in the future.

I hope this clears things up.

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.

This is the behaviour exactly and almost the same set-up. Except mine is an LG BX, Sony HT-ZF9 and Apple TV.

The Apple TV and Vero 4K+ are connected to the Soundbar via E-Arc. I’ll do the above later and grab some logs when I am home later.

Same with me…

I’ve been taking this issue seriously, but have had little to go on.

I’ve made some changes to CEC and have sent @nick.rogerson; @cct; @rodhull a USB test image. If anyone else would like to test, do let me know. I’ll wait for their feedback.

If the issue persists, I can only presume it’s due to a spin lock issue and will look further.

Before booting any test image, please turn off all equipment connected on the same CEC bus at the mains. AVRs; Xbox etc for at least two minutes.

Many thanks

Sam

Hi Sam, did you have a chance to have a look at the debug log I’ve grabbed by any chance?

Hi,

I did indeed, and I had different ideas on how to implement a fix. But it will require too much end user testing for now to fix it in the way that I had ideally wanted.

In the near future we should be able to use the upstream CEC kernel driver, so I’d rather get things working as before and put a pin in it.

Sam

Thanks Sam. I’ve booted my Vero 4K into the 2nd test USB and will report back…

I’ve been having the same problem as everyone above, I tried the first fix posted, but no luck. For me it seems to happen everytime it goes into standby mode. It locks up my av receiver and ignores cec remote forcing a reboot.

My setup: Vero 4K → HDMI → Samsung Q9FN → audio out via ARC → Sony STR DN-1050.

Some logs:

https://paste.osmc.tv/solatowoxi.xml

I had actually noticed that prior to this update if my vero was ever turned off it would lock up the av receiver and hide it from my TV. Unplugging the hdmi cable of the Vero from the TV would resolve this (or just turning it back on), but since the Vero was rarely off this wasn’t much of a issue. Thanks for any help.

Hi Sam,
I would like to test the USB build please?

Done.

1 Like

Thanks again, Sam.
Got it running now.

Is it working as expected?

Hi Sam,

Right now it’s a no - but I can’t unplug everything from the wall because the fambo will complain that they’ve lost the internet :stuck_out_tongue_winking_eye: (shared sockets that is hard to deal with)

Up to now it was all working fine but the loss of cec comms started again.

I’ll isolate everything later, but I think if it was all working then the behaviour should be the same as if I had unplugged everything, right?

I’ll let you know later.

Same after unplugging everything Sam.
Works perfectly until I turn off the TV.

I enabled logging for libcec and uploaded logs
https://paste.osmc.tv/ihocixisuj

Dunno if I did it right though

CEC is back to how it was before the update – I’ve restored everything as to how it was exactly.

Did you power everything off at the mains fully and turn things back on again before testing the update?

Sam

I did yep

My Vero has been up for >24hrs on the latest test build without incident. So, looking good (but the previous build lasted >48hrs before the problem appeared again so…)

Will report back tomorrow (or before then if it goes awry).

OK, so it’s been up for >48 hours without any issue for me. Have watched a few things and also left it idle for v. long periods of time which by now would have shown one of the behaviours with the affected build.

How have other testers got on?

Thanks for the report. I’m waiting for more feedback before I can make these changes official

Sam