II) Solution: Store the edid.dat and use this if no hotplug is present.
https://kodi.wiki/view/raspberry_pi_faq#tv_is_not_detected_unless_powered_on_first
Translator:
This did not solve this problem. The TV still can not display the image from time to time. Kodi chooses a strange resolution after restart or reboot (720x480(?)).