Some displays don't allow resolutions supported (edid) to be read when powered off, or to determine the device is connected (hotplug). Some do.
You can use "getedid create" from wiki to store the edid to a file, and allow TV/Pi to be powered in either order.
Great, thank you very much. It seems like that was the solution.
In case someone has the same problem, here is the solution I did:
1. Turn on TV + Pi so Kodi is running.
HDMI-A-1
HDMI-A-2
Code
cd ~
mkdir -p cpio/lib/firmware/edid
cp .config/firmware/edid/edid.bin cpio/lib/firmware/edid/
cd cpio/
find . -print | cpio -ov -H newc > ../edid.dat
mount -o remount,rw /flash
mv ../edid.dat /flash
Finally, add the following entry to /flash/config.txt: