I had this issue since I bought my RPi4 for about six months ago but haven't had time to look in to it. I've found several threads on different forums that ends with the OP abandoning the thread when asked to provide further information or the issue was something else.
Here is what happens:
RPi power disconnected: TV OSD displays HDMI2 searching for signal.
Powering up the RPi: TV screen flickers and displays HDMI2 as it would when detecting a signal but then it stays solid black. No cursor or anything but the OS is booting up.
The only way I've found to get a picture on the TV is to switch input on the TV back and forth or disconnect/reconnect the HDMI cable.
Rebooting does the same thing as a cold boot and results in a black screen.
I have been running LE 10.0.3 and tried LibreELEC-RPi4.arm-11.0-nightly-20230102-2cfb343 now to see if it made a difference but no joy.
Adding video=HDMI-A-1:1920x1080M@60D to cmdline.txt doesn't change anything. Reading RE: No HDMI output on RPI 4 to TV I've changed to dtoverlay=vc4-fkms-v3d,cma-512 which resulted in picture but no sound.
I've tested with another display using the same HDMI cable and then it worked as it should. Therefore it seems like the issue is related to my RPi4/TV combination.
As another test, I installed 2022-09-22-raspios-bullseye-armhf. The immediate difference I spotted is that the first thing displayed on the TV after the HDMI handshake is a cursor and then it continues to boot normally and I could watch a YouTube video in the browser.
It seems like LE on RPi4 is failing to detect my TV properly very early in the boot process. Using LE on my RPi1 works and plugging in my headless Raspberry Pi OS RPi3 also gives a working console login on the TV.
Switching from kms to fkms changed the behavior but I don't know what else to try. Maybe popcornmix have some more insights?
My TV is an old Samsung LE32A557P2C (from 2008 I believe).
Kodi debug log:
dmesg:
modetest: