Fire TV 2nd gen Cube (s922z)

No the FireOS and CE mt7668 drivers are isolated. One thing you could try is loading the firmware files from FireOS in CE. I don’t see a good reason why this would make a difference, but it’s easy to try.

Remove the blank wifi.cfg
CoreELEC:~ # rm /storage/.config/firmware/wifi.cfg

Unzip these files into /storage/.config/firmware/ (samba ConfigFiles/firmware)
firmware.zip (594.4 KB)

I don’t know if the mt7668 chip has non-volatile memory that might have been flashed or updated by a later FireOS update.

The firmware files from FireOS didn’t help either. One thing I noticed is that when I used the blank wifi.cfg, Wifi/BT fails to be initialized 100% of the time (out of ~10 attempts), I had to use the Kodi File Manager to delete that file before things start working intermittently again.

Which FireOS firmware are you on? I might try to see if I can upgrade to that specific version to use in tandem with CE.

In any case thank you for trying to help. I plan on keeping the Cube on all the time, so this would only be a nuisance when there’s a power loss :smile: At least it’s a data point in case someone else in the future runs into the same issue.

I’d upgrade to PS7229/1853, that’s the firmware version on the last lot of Cubes manufactured, and I know a handful of people are using that and CE.

Download the firmware, rename the extention from .bin to .zip. Magisk is probably still on your Cube at /data/local/tmp/magisk.apk. Also change it’s extension from from .apk to .zip

raven:/ # cp /data/local/tmp/magisk.apk /sdcard/download/magisk.zip

Copy the PS7229 firmware to the Cube download folder. Reboot to TWRP, flash the firmware, then flash magisk.zip directly after (without exiting TWRP). When you boot back into FireOS, verify updates are still blocked. TWRP flashing instructions here

Navigate TWRP with a USB mouse or have your computer USB connected before powering on the Cube.

PS since you’re having both BT & WiFi connectivity problems, just check BT in FireOS. Check the remote still works after rebooting a couple times, you don’t have to connect to WiFi.

2 Likes

Upgrading to PS7229/1853 has solved this issue for me, though I’m still very curious about the root cause. However, one possible conflating thing that I also did as part of the upgrade was to move storage to the eMMC instead of the using the sdcard, so that could’ve also been a contributing factor (though I don’t see how).

Now the Cube is working perfectly fine for me across ~10 reboots, and the speed bump from using internal storage is … massive to say the least (when it was on the sdcard, just navigating between items in a widget can stutter badly, now it’s buttery smooth - very comparable to my Shield 2017).

Thanks again for debugging this with me, and for your work making CE possible on the Cube :smile:

I’m not sure, maybe there is some flashable memory in the mt7668 chip that can be updated, aside from the firmware loaded on boot. It might have been a good idea to try a second USB stick, to rule that out. But glad it’s working now.

Question about your Harmony Hub, does it autoconnect to CE after each boot? I’m asking because most BLE devices in CE require putting them in pairing mode to reconnect (Bluez limitation) after each CE bootup. Since your hub is making a BT BR/EDR connection instead of BLE, I was wondering if you have to deal with that?

I can confirm harmony hub would auto connect to CE. I’m using a FireTV remote pro now and it connects automatically after button press.

1 Like

It auto connects to my Harmony hub without issue after every boot. I don’t need to re-pair or do anything special

1 Like

CoreELEC can be daunting to approach. I’ve checked - it has the bad update. What and how do to get the best use of CoreELEC given that limitation ?

By bad update, you mean it’s on firmware above PS7292? Above that version there’s no way to boot CE.

If it’s still on firmware between (PS7603-PS7646) there’s temporary root which opens the door to a possible future bootloader unlock for that firmware range. That depends on another exploit being found, which is always unlikely.

Thank you. While not good news, it was the answer I needed. Thanks again.

After a couple months running CE on my FireTV, it’s been a fairly positive experience. One thing I do notice is that after a long idle time (I leave my device on at all time to avoid having to deal with suspending), if I play a Dolby Vision media file, CE sometimes stutters throughout the playback. This stutter goes away if I reboot the device and replay the media file. Here’s a sample log of such an occurrence (this one’s specifically bad because the whole device freezes up): https://paste.coreelec.org/ReturnsTackle
The relevant logs look like this:

2024-11-16 17:50:09.197 T:18542    info <general>: Creating InputStream
2024-11-16 17:50:10.230 T:18542    info <general>: Creating Demuxer
2024-11-16 17:50:12.171 T:18542    info <general>: Opening stream: 0 source: 256
2024-11-16 17:50:12.173 T:18542    info <general>: Creating video codec with codec id: 173
2024-11-16 17:50:12.173 T:18542    info <general>: CBitstreamConverter::Open bitstream to annexb init
2024-11-16 17:50:12.536 T:18542    info <general>: DVDVideoCodecAmlogic: Opened Amlogic Codec
2024-11-16 17:50:12.536 T:18542    info <general>: Creating video thread
2024-11-16 17:50:12.536 T:18563    info <general>: running thread: video_thread
2024-11-16 17:50:12.537 T:18542    info <general>: Opening stream: 1 source: 256
2024-11-16 17:50:12.537 T:18542    info <general>: Finding audio codec for: 86056
2024-11-16 17:50:12.540 T:18542    info <general>: OpenStream: Allowing max Out-Of-Sync Value of 50 ms
2024-11-16 17:50:12.540 T:18542    info <general>: Creating audio thread
2024-11-16 17:50:12.541 T:18542    info <general>: Opening stream: 2 source: 256
2024-11-16 17:50:12.541 T:18542    info <general>: CDVDSubtitlesLibass: Using libass version 1701000
2024-11-16 17:50:12.541 T:18542    info <general>: CDVDSubtitlesLibass: Creating ASS library structure
2024-11-16 17:50:12.541 T:18542    info <general>: CDVDSubtitlesLibass: Initializing ASS Renderer
2024-11-16 17:50:12.541 T:18564    info <general>: running thread: CVideoPlayerAudio::Process()
2024-11-16 17:50:12.543 T:18542    info <general>: CDVDSubtitlesLibass: Initializing ASS library font settings
2024-11-16 17:50:12.658 T:18542    info <general>: CDVDSubtitlesLibass: Creating new ASS track
2024-11-16 17:50:12.668 T:18564    info <general>: CAEStreamParser::TrySyncAC3 - E-AC3 stream detected (6 channels, 48000Hz)
2024-11-16 17:50:12.668 T:18564    info <general>: Creating audio stream (codec id: 86056, channels: 6, sample rate: 48000, pass-through)
2024-11-16 17:50:12.685 T:3968     info <general>: CActiveAESink::OpenSink - initialize sink
2024-11-16 17:50:12.686 T:3968     info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2024-11-16 17:50:12.686 T:3968     info <general>: CAESinkALSA - Use card "hw:0" and set codec format "DD+"
2024-11-16 17:50:12.688 T:3968     info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
2024-11-16 17:50:12.688 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2024-11-16 17:50:12.688 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif format"
2024-11-16 17:50:12.689 T:3968     info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=AMLAUGESOUND,DEV=0"
2024-11-16 17:50:12.692 T:18563    info <general>: CDVDVideoCodecAmlogic::AddData: Open decoder: fps:24000/1001
2024-11-16 17:50:12.713 T:3968     info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=AMLAUGESOUND,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e"
2024-11-16 17:50:12.782 T:18542    info <general>: Closing stream player 3
2024-11-16 17:50:12.788 T:18542    info <general>: Opening stream: 3 source: 256
2024-11-16 17:50:12.788 T:18542    info <general>: CDVDSubtitlesLibass: Using libass version 1701000
2024-11-16 17:50:12.788 T:18542    info <general>: CDVDSubtitlesLibass: Creating ASS library structure
2024-11-16 17:50:12.788 T:18542    info <general>: CDVDSubtitlesLibass: Initializing ASS Renderer
2024-11-16 17:50:12.789 T:18542    info <general>: CDVDSubtitlesLibass: Initializing ASS library font settings
2024-11-16 17:50:12.792 T:3936     info <general>: Constructing CRendererAML
2024-11-16 17:50:12.833 T:18542    info <general>: CDVDSubtitlesLibass: Creating new ASS track
2024-11-16 17:50:13.598 T:3936     info <general>: Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
2024-11-16 17:50:13.605 T:3936     info <general>: [WHITELIST] Searching the whitelist for: width: 3840, height: 2160, fps: 23.976, 3D: false:(0x4), stereo mode: 0
2024-11-16 17:50:13.610 T:3936     info <general>: Display resolution ADJUST : 3840x2160 @ 23.98 - Full Screen (16) (weight: 0.000)
2024-11-16 17:50:13.870 T:3936     info <general>: VideoPlayer: OnLostDisplay received
2024-11-16 17:50:13.926 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:50:14.303 T:3936     info <general>: GLES: Maximum texture width: 8192
2024-11-16 17:50:15.433 T:18564   error <general>: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
2024-11-16 17:50:15.632 T:3936     info <general>: VideoPlayer: OnResetDisplay received
2024-11-16 17:50:15.634 T:3968     info <general>: CActiveAESink::OpenSink - initialize sink
2024-11-16 17:50:15.634 T:3968     info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2024-11-16 17:50:15.635 T:3968     info <general>: CAESinkALSA - Use card "hw:0" and set codec format "DD+"
2024-11-16 17:50:15.643 T:3968     info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
2024-11-16 17:50:15.643 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2024-11-16 17:50:15.643 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif format"
2024-11-16 17:50:15.644 T:3968     info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=AMLAUGESOUND,DEV=0"
2024-11-16 17:50:15.670 T:3968     info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=AMLAUGESOUND,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e"
2024-11-16 17:50:15.689 T:18564    info <general>: CVideoPlayerAudio: display reset occurred, checking for passthrough
2024-11-16 17:51:05.059 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:05.084 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:05.860 T:3967  warning <general>: ActiveAE - large audio sync error: -1046.007897
2024-11-16 17:51:05.917 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:06.219 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:06.253 T:3967  warning <general>: ActiveAE - large audio sync error: -1430.738730
2024-11-16 17:51:06.253 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:09.186 T:3968     info <general>: Skipped 7 duplicate messages..
2024-11-16 17:51:08.933 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:09.950 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:10.052 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:15.117 T:3967     info <general>: Skipped 2 duplicate messages..
2024-11-16 17:51:14.675 T:3967  warning <general>: ActiveAE - large audio sync error: -5848.510733
2024-11-16 17:51:16.212 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:20.745 T:3967     info <general>: Skipped 1 duplicate messages..
2024-11-16 17:51:20.444 T:3967  warning <general>: ActiveAE - large audio sync error: -11996.471194
2024-11-16 17:51:21.366 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:23.301 T:3967     info <general>: Skipped 1 duplicate messages..
2024-11-16 17:51:23.100 T:3967  warning <general>: ActiveAE - large audio sync error: -14752.443570
2024-11-16 17:51:24.085 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:26.965 T:3967     info <general>: Skipped 1 duplicate messages..
2024-11-16 17:51:26.824 T:3967  warning <general>: ActiveAE - large audio sync error: -18553.999656
2024-11-16 17:51:26.821 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:30.417 T:3967     info <general>: Skipped 2 duplicate messages..
2024-11-16 17:51:30.231 T:3967  warning <general>: ActiveAE - large audio sync error: -21902.655366
2024-11-16 17:51:30.451 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:31.091 T:3967  warning <general>: ActiveAE - large audio sync error: -22877.071199
2024-11-16 17:51:31.138 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:32.719 T:3967     info <general>: Skipped 2 duplicate messages..
2024-11-16 17:51:32.565 T:3967  warning <general>: ActiveAE - large audio sync error: -24179.292825
2024-11-16 17:51:33.125 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:33.623 T:3967  warning <general>: ActiveAE - large audio sync error: -25458.802992
2024-11-16 17:51:34.329 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:35.743 T:18563    info <general>: Skipped 1 duplicate messages..
2024-11-16 17:51:35.648 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:36.392 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:37.682 T:3967  warning <general>: ActiveAE - large audio sync error: -29381.637994
2024-11-16 17:51:37.692 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:37.677 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:41.220 T:18563    info <general>: Skipped 1 duplicate messages..
2024-11-16 17:51:40.941 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:42.062 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:43.935 T:3967  warning <general>: ActiveAE - large audio sync error: -35030.006914
2024-11-16 17:51:44.952 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:44.962 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:48.505 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:49.640 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:52.160 T:3967  warning <general>: ActiveAE - large audio sync error: -43545.222418
2024-11-16 17:51:52.708 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:51:54.845 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:51:55.984 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:00.743 T:18563    info <general>: Skipped 1 duplicate messages..
2024-11-16 17:52:00.442 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:00.842 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:01.212 T:3967  warning <general>: ActiveAE - large audio sync error: -52375.430463
2024-11-16 17:52:02.946 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:03.151 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:08.386 T:3967     info <general>: Skipped 1 duplicate messages..
2024-11-16 17:52:07.323 T:3967  warning <general>: ActiveAE - large audio sync error: -58405.828508
2024-11-16 17:52:07.898 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:08.084 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:12.806 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:13.679 T:3967  warning <general>: ActiveAE - large audio sync error: -64809.273719
2024-11-16 17:52:13.681 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:16.412 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:18.448 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:18.506 T:3967  warning <general>: ActiveAE - large audio sync error: -69984.734930
2024-11-16 17:52:18.678 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:23.142 T:18563    info <general>: Skipped 1 duplicate messages..
2024-11-16 17:52:22.925 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:22.922 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:26.101 T:3967  warning <general>: ActiveAE - large audio sync error: -76251.470933
2024-11-16 17:52:27.515 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:30.665 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:34.133 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:38.336 T:18563    info <general>: Skipped 1 duplicate messages..
2024-11-16 17:52:37.797 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:40.822 T:3967  warning <general>: ActiveAE - large audio sync error: -89986.055690
2024-11-16 17:52:41.237 T:4012     info <general>: JSONRPC Server: New connection added
2024-11-16 17:52:45.131 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:52:52.633 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:52:59.778 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:53:10.982 T:18563    info <general>: Skipped 1 duplicate messages..
2024-11-16 17:53:09.751 T:18563 warning <general>: OutputPicture - timeout waiting for buffer
2024-11-16 17:53:11.842 T:3967    error <general>: ActiveAE::FlushEngine - failed to flush
2024-11-16 17:53:18.994 T:3968    error <general>: CAESinkALSA - snd_pcm_writei(-32) Broken pipe - trying to recover
2024-11-16 17:53:29.572 T:18563   error <general>: CAMLCodec::GetPicture: time elapsed since last frame: 113983ms (11:Resource temporarily unavailable)
2024-11-16 17:53:43.493 T:3967  warning <general>: ActiveAE - large audio sync error: -117211.983578
2024-11-16 17:53:43.529 T:3967  warning <general>: ActiveAE - large audio sync error: -117265.787536
2024-11-16 17:53:43.529 T:3967  warning <general>: ActiveAE - large audio sync error: -117266.163869
2024-11-16 17:53:43.529 T:3967  warning <general>: ActiveAE - large audio sync error: -117266.284536
2024-11-16 17:53:43.530 T:3967  warning <general>: ActiveAE - large audio sync error: -117266.408619
2024-11-16 17:53:43.530 T:3967  warning <general>: ActiveAE - large audio sync error: -117266.551119
2024-11-16 17:53:43.530 T:3967  warning <general>: ActiveAE - large audio sync error: -117266.652244
2024-11-16 17:53:43.534 T:3968     info <general>: CActiveAESink::OpenSink - initialize sink
2024-11-16 17:53:43.534 T:3968     info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2024-11-16 17:53:43.575 T:3968     info <general>: CAESinkALSA - Use card "hw:0" and set codec format "DD+"
2024-11-16 17:53:43.624 T:3968     info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif_b"
2024-11-16 17:53:43.625 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2024-11-16 17:53:43.625 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif format"
2024-11-16 17:53:43.626 T:3968     info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=AMLAUGESOUND,DEV=0"
2024-11-16 17:53:43.841 T:3968     info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=AMLAUGESOUND,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e"
2024-11-16 17:53:43.921 T:3967  warning <general>: ActiveAE - large audio sync error: -117679.329036
2024-11-16 17:53:43.922 T:3967  warning <general>: ActiveAE - large audio sync error: -117679.318953
2024-11-16 17:53:43.923 T:3967  warning <general>: ActiveAE - large audio sync error: -117679.321245
2024-11-16 17:53:43.923 T:3967  warning <general>: ActiveAE - large audio sync error: -117679.319162
2024-11-16 17:53:43.923 T:3967  warning <general>: ActiveAE - large audio sync error: -117679.319078
2024-11-16 17:53:43.944 T:4012     info <general>: JSONRPC Server: Disconnection detected
2024-11-16 17:53:43.963 T:3967  warning <general>: ActiveAE - large audio sync error: -117679.364161
2024-11-16 17:53:44.012 T:3967  warning <general>: ActiveAE - large audio sync error: -117333.258369
2024-11-16 17:53:44.013 T:3967  warning <general>: ActiveAE - large audio sync error: -117301.628119
2024-11-16 17:53:44.013 T:3967  warning <general>: ActiveAE - large audio sync error: -117269.847036
2024-11-16 17:53:44.013 T:3967  warning <general>: ActiveAE - large audio sync error: -117269.980994
2024-11-16 17:53:44.013 T:3967  warning <general>: ActiveAE - large audio sync error: -117270.065994
2024-11-16 17:53:44.014 T:3967  warning <general>: ActiveAE - large audio sync error: -117270.308286
2024-11-16 17:53:44.015 T:3967  warning <general>: ActiveAE - large audio sync error: -117272.159078
2024-11-16 17:53:44.016 T:3967  warning <general>: ActiveAE - large audio sync error: -117272.515828
2024-11-16 17:53:44.016 T:3967  warning <general>: ActiveAE - large audio sync error: -117272.733203
2024-11-16 17:53:44.019 T:3936     info <general>: CVideoPlayer::CloseFile()
2024-11-16 17:53:44.053 T:18542    info <general>: CVideoPlayer::OnExit()
2024-11-16 17:53:44.063 T:3967  warning <general>: ActiveAE - large audio sync error: -117095.923745
2024-11-16 17:53:44.064 T:3967  warning <general>: ActiveAE - large audio sync error: -117064.591453
2024-11-16 17:53:44.064 T:3967  warning <general>: ActiveAE - large audio sync error: -117033.052495
2024-11-16 17:53:44.064 T:3967  warning <general>: ActiveAE - large audio sync error: -117001.221786
2024-11-16 17:53:44.065 T:3967  warning <general>: ActiveAE - large audio sync error: -116969.439995
2024-11-16 17:53:44.065 T:3967  warning <general>: ActiveAE - large audio sync error: -116938.233245
2024-11-16 17:53:44.067 T:3967  warning <general>: ActiveAE - large audio sync error: -116939.936828
2024-11-16 17:53:44.068 T:3967  warning <general>: ActiveAE - large audio sync error: -116940.428745
2024-11-16 17:53:44.068 T:3967  warning <general>: ActiveAE - large audio sync error: -116940.833953
2024-11-16 17:53:44.068 T:3967  warning <general>: ActiveAE - large audio sync error: -116941.039953
2024-11-16 17:53:44.068 T:3967  warning <general>: ActiveAE - large audio sync error: -116941.178411
2024-11-16 17:53:44.068 T:3967  warning <general>: ActiveAE - large audio sync error: -116941.308495
2024-11-16 17:53:44.072 T:3936     info <general>: VideoPlayer: waiting for threads to exit
2024-11-16 17:53:44.087 T:18542    info <general>: Closing stream player 1
2024-11-16 17:53:44.087 T:18542    info <general>: Waiting for audio thread to exit
2024-11-16 17:53:44.112 T:3967  warning <general>: ActiveAE - large audio sync error: -116760.721911
2024-11-16 17:53:44.112 T:18564    info <general>: thread end: CVideoPlayerAudio::OnExit()
2024-11-16 17:53:44.112 T:3967  warning <general>: ActiveAE - large audio sync error: -116761.050120
2024-11-16 17:53:44.112 T:3967  warning <general>: ActiveAE - large audio sync error: -116761.232120
2024-11-16 17:53:44.112 T:3967  warning <general>: ActiveAE - large audio sync error: -116761.314911
2024-11-16 17:53:44.113 T:3967  warning <general>: ActiveAE - large audio sync error: -116761.391661
2024-11-16 17:53:44.113 T:3967  warning <general>: ActiveAE - large audio sync error: -116761.467286
2024-11-16 17:53:44.113 T:3967  warning <general>: ActiveAE - large audio sync error: -116761.542828
2024-11-16 17:53:44.138 T:18542    info <general>: Closing audio device
2024-11-16 17:53:44.209 T:18542    info <general>: Deleting audio codec
2024-11-16 17:53:44.209 T:18542    info <general>: Closing stream player 2
2024-11-16 17:53:44.209 T:18542    info <general>: waiting for video thread to exit
2024-11-16 17:53:44.228 T:18563    info <general>: thread end: video_thread
2024-11-16 17:53:44.248 T:18542    info <general>: deleting video codec
2024-11-16 17:53:44.412 T:3968     info <general>: CActiveAESink::OpenSink - initialize sink
2024-11-16 17:53:44.496 T:18542    info <general>: Closing stream player 3
2024-11-16 17:53:44.620 T:3968     info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2024-11-16 17:53:44.620 T:3968     info <general>: CAESinkALSA - Use card "hw:0" and set codec format "2 CH PCM"
2024-11-16 17:53:44.638 T:3968     info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif"
2024-11-16 17:53:44.638 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2024-11-16 17:53:44.638 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif format"
2024-11-16 17:53:44.639 T:3968     info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
2024-11-16 17:53:44.710 T:3968     info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
2024-11-16 17:53:44.710 T:3968     info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2024-11-16 17:53:44.711 T:3968     info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2024-11-16 17:53:44.857 T:3936     info <general>: VideoPlayer: finished waiting
2024-11-16 17:53:44.857 T:3936     info <general>: CVideoPlayer::CloseFile()
2024-11-16 17:53:44.857 T:3936     info <general>: VideoPlayer: waiting for threads to exit
2024-11-16 17:53:44.857 T:3936     info <general>: VideoPlayer: finished waiting
2024-11-16 17:53:54.230 T:3936     info <general>: GLES: Maximum texture width: 8192
2024-11-16 17:53:54.374 T:3936    error <general>: Control 55 in window 10025 has been asked to focus, but it can't
2024-11-16 17:53:54.502 T:3936     info <general>: Skipped 1 duplicate messages..
2024-11-16 17:53:54.502 T:3936     info <general>: GLES: Maximum texture width: 8192
2024-11-16 17:53:54.523 T:3968     info <general>: Skipped 1 duplicate messages..
2024-11-16 17:53:54.523 T:3968     info <general>: CActiveAESink::OpenSink - initialize sink
2024-11-16 17:53:54.525 T:3968     info <general>: CAESinkALSA::Initialize - Configure simple control for "AUGESOUND"
2024-11-16 17:53:54.526 T:3968     info <general>: CAESinkALSA - Use card "hw:0" and set codec format "2 CH PCM"
2024-11-16 17:53:54.527 T:3968     info <general>: CAESinkALSA - Set Spdif to HDMITX to "Spdif"
2024-11-16 17:53:54.527 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif_b format"
2024-11-16 17:53:54.527 T:3968     info <general>: CAESinkALSA - Set codec for "Audio spdif format"
2024-11-16 17:53:54.527 T:3968     info <general>: CAESinkALSA::Initialize - Attempting to open device "surround71:CARD=AMLAUGESOUND,DEV=0"
2024-11-16 17:53:54.548 T:3968     info <general>: CAESinkALSA::Initialize - Opened device "surround71:CARD=AMLAUGESOUND,DEV=0"
2024-11-16 17:53:54.549 T:3968     info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2024-11-16 17:53:54.549 T:3968     info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4

I’ve tried using both ondemand and performance CPU governer and neither helped.

Does anyone have the same issue? It’s purely a nuisance right now because a reboot fixes it, but I’d love to have a more permanent solution.

I’ve not experienced this, but I also don’t use LPCM out (HDMI Multi Ch PCM), I’m not sure if this is related. Are you intentionally using HDMI Muti Ch PCM instead of HDMI for audio output?

EDIT: Looks you might have been switching between HDMI Muti Ch PCM and HDMI audio out?

Does restarting Kodi rather than rebooting the Cube fix the problem? The default Estuary skin has a ‘Restart Kodi’ option in the Power Menu. If you’re current skin doesn’t have that option, you can SSH in and run systemctl restart kodi

A quick bandaid for the problem would be to use Cron to schedule CE to restart Kodi (or reboot) once daily in the middle of the night. But it would be better to determine the source of the problem long-term. It sounds more like a general software problem than a hardware specific issue, I’m not certain.

Have you noticed any patterns in what type of media triggers this behavior? It only happens with DV content? Any profile?

It very well might be my misunderstanding - I want to passthrough audio to my soundbar which supports all audio codecs (including Dolby Atmos), which is why I chose HDMI Multi Ch PCM. I will test out HDMI later today to see if it improves the situation, and if my soundbar still got the passthrough correctly.

I have only noticed this issue with DV content, but I haven’t really tried to triage which profile triggers it yet. It could also be a red herring, and the root cause may have to do something to do the audio codec of the media I consume. Usually I only watch older medias (1080p and below) or newer ones (mostly in DV 4k), so I wouldn’t notice issues with standard 4K because I mostly don’t watch them.

I have the same idea regarding the cron solution - as of now I’m too lazy to do it because it’s easy enough to just reboot the box haha. I’ll do it once my wife complains more :joy: I know there’s some work around audio sync for DV content in nightlies, maybe that’s improve things once the next version lands.

If your soundbar can decode everything you are sending it, it’s better to use HDMI which will output it without decoding it to LPCM first. I’m not sure that this is your problem, but worth a try.

I was wondering if it might be DV FEL content, or high bitrate (over 50-60Mbps) video that was more likely to trigger it.

To use Cron it would be something like this

Edit Cron in SSH:
CoreELEC:~ # crontab -e

Something like this might work, first disable CEC, then restart kodi at 4:00AM. Then re-enable CEC at 4:03AM. Disabling CEC will prevent the TV from turning on.

0 4 * * * echo 'bypass 1' > /sys/class/aocec/dbg && systemctl restart kodi
3 4 * * * echo 'bypass 0' > /sys/class/aocec/dbg

To reboot instead, and then turn off the TV, assuming CEC turns it on after a reboot:

0 4 * * * /usr/sbin/reboot
3 4 * * * printf '\x20\x36' > /dev/aocec

Check your active Cron jobs:
CoreELEC:~ # crontab -l

Aaahh thank you for pointing me towards the Sound Device, I thought I had to use the Multi Ch one in order to support multi channel passthrough, which is a false assumption now that I have read a bit more about it. Just for my own understanding, does the HDMI Multi Ch PCM device do some type of audio decoding/encoding before sending it to the audio sink?

The DV content that led to the issue is all over the place, some are FEL, most are not, I don’t remember exactly which profiles they are anymore, I’ll note them down the next time I run into this issue.

I switched my audio output to HDMI, and will keep it for a few days to see if this issue pops up again. Thanks a lot for your help!

HDMI Multi Ch decodes the audio to LPCM which is lossless so it’s not necessarily a problem. But if you have channel number set to 2, then any multichannel audio would have been downmixed to 2 channels. Also for TrueHD/Dolby Digital Plus with Atmos, the meta data (Atmos part) is discarded when outputting LPCM.

LPCM makes sense if your AVR/soundbar can’t decode TrueHD, DD+, DTS-HD, etc but it can handle LPCM, allowing your equipment to get the discreet channel audio.

1 Like

I have passthrough enabled and audio output device set to multi ch pcm hdmi and passthrough device set to hdmi with configuration set as 7.1.This is the only way where older Bluray’s with lpcm 5.1 have audio so I thought this was essential than setting audio output to hdmi.Futher with this I do get all other formats(true hd,dts x,etc) in passthrough just fine according to my AVR.However according to this post I shouldn’t since it’s being transcoded to lpcm?I have all supported options checked as well.Its is only when I have something unchecked I get lpcm transcoding.eg:I have a display and soundbar that does not support dts so having this option with dts unchecked makes all dts formats as lpcm on my soundbar info

1 Like

Ah you’re right, as long as passthrough is enabled and the supported codecs checked off (TrueHD, DTS-HD etc) they passthrough as is with HDMI Multi Ch too. @HairtieController so ignore what I said above.

2 Likes

Hi @YadaYada how do i point the CEC adapter to your suspend-to-idle script so when i turn the tv off it suspends & then i can turn it on with remote.conf ir.
Thanks.

Are you using the final version from the FAQ (How to suspend/wake the Cube with an IR remote?)

That replaces the default system suspend with suspend-to-idle. In the CEC Adapter menu there’s an option to suspend 'When the TV is Switched off`. That may work, I’ve not tested it myself.