If I turn on the TV before turnning on the RPi, everything works well, but not the other way around.
I've followed the procedure discribed in https://wiki.libreelec.tv/configuration/edid#generic-x86_64 and run "getedid create" successfully already.
Now the TV can be turned on when I switch on the RPi, which is my intention to run getedid. However it seems that the TV is on after the RPi is trying to connect to the CEC adaptor, so the connection can not be established. Is there a way to delay connecting CEC adaptor or to wait for the TV to be on before connecting CEC adaptor?