Are you by chance using an RPi4? If yes, we are waiting for this issue to be resolved KMS: blank screen after TV is brought out of standby on modes that need scrambling · Issue #4486 · raspberrypi/linux · GitHub
Just configure kodi display settings to 1920x1080 and whitelist the 3840x2160 modes, then you won't hit the issue when in kodi GUI.
so long,
Hias
Yes I'm using RPi4.
I whitelist 3840x2160 modes and have GUI set 1080 but it still happens.
I had to reboot while tv was on to get settings to stick. If changed settings and turned tv off first then rebooted RPi to get signal back the whitelist settings disappeared and refresh rate reverted to 30Hz.