HDMI not detected after cold boot with CEC power-on

CoreELEC: latest nightlies(Amlogic-no.aarch64)

Machine model: Amazon Fire TV 2nd gen Cube

When the box and TV are both powered off, a cold boot via CEC turns the TV on, but no HDMI picture is displayed.

The box is still fully accessible by SSH. HDMI status shows connected, but Kodi starts before the HDMI DRM connector is ready and falls back to dummy_l mode.

Restarting Kodi fixes the picture.

Temporary workaround:

Created a systemd service:

[Service]

Type=oneshot

ExecStart=/bin/sh -c ‘sleep 2; grep -q “dummy_l” /storage/.kodi/temp/kodi.log && systemctl restart kodi || true’

[Install]

WantedBy=kodi.service

After enabling this service, the picture appears correctly after cold boot.

Possible fix: delay Kodi startup until HDMI/DRM hotplug is ready instead of starting Kodi while the connector is still unavailable.

Used to happen to me before, although not always.
A workaround for me was to switch HDMI input manually using the TV remote.

i get similar issues when changing inputs i lose CEC control
and use a similar fix/workaround - restart Kodi when HPD state changes

why both work for me and you - renegotiating HDMI handshake on disconnect/reconnect changes

the real fix would be if Kodi were able to detect these changes and renegotiate on it’s own then restart wouldn’t be needed

This does mean nothing is reported from TV, like nothing is connected. So nothing is init.

When following the Wiki and provide logs it would be maybe possible to solve such mystery.
Without, no log, no problem.

Thanks.

I attached cec as it affects it occasionally needing a reboot to get cec working.

Now all again with Kodi debug enabled…

Hi thanks, all with debug enabled.

Before restart with the issue:

I have this issue everyday and have made button on remote control to restart kodi. But my black screen happens also when the box is idle and watching TV tuner and then hours later move over to kodi there is black screen and I need to restart kodi to get picture.

I wasn’t sure if it was CoreELEC AM9 Pro or my miniDSP Tide16 since I got them at the same time.

Still no valid logs.
Use only the CE paste method:
ce-debug and paste /storage/.kodi/temp/kodi.log

Enable Kodi debug and reboot and then make logs when issue did happen.

So I dig a little deeper. Cold boot with TV and Cube both powered off causes HDMI to start without valid EDID/HPD. DRM attempts 1080p60, gets edid invalid vic-0 and KMS_ERROR, followed by vblank/flip timeouts and fallback to dummy_l. Later HPD/EDID becomes available. Restarting Kodi restores the picture. Could this be an HDMITX/DRM hotplug/EDID race on the S922Z/Amlogic-no driver?

https://paste.coreelec.org/CorryAppoint

https://paste.coreelec.org/PrestigeCamping

Your log shows maybe the device is bad, or eMMC storage failed.
Best hard reset the box and update Android if possible. Also make a complete new CE boot media, also maybe by using another USB memory.

EDIT:
We see not supported options in log. Did you use Xiaomi 3rd gen install to eMMC ?

Closed!

Copy the attached file to /flash (or /data/coreelec_flash/ in fireos). Reboot see if that has any effect, if not post new logs.
ce_autoscript (2.2 KB)

Hi thanks, new nightly update froom 0810 fixed this.

Btw didn’t know your Fire Cube 2nd gen eMMC method is banned or @Portisch misread the situation?