How to force GUI resolution

I don’t think this is a bug, but rather I’m asking if there is a special setting I could use to sort out my problem:
Got a S912 running CE 9.0.2 through an AVR to a 1080p TV. CE GUI resolution is set at 1080p 60Hz in settings.

Sometimes, if I boot up the S912 and Avr BEFORE the TV, CE starts with a low resolution instead of the default 1080p. My guess is it doesn’t detect the TV yet, so it tries to play it safe by choosing a low resolution?

I sort my problem simply by rebooting CE (while keeping the TV on) and it restarts at 1080p. I was wondering if there an option (e.g. in config.ini) to force resolution to 1080p, or maybe to skip the TV compatibility check?

Thanks all

My file /flash/config.ini contains:
hdmimode=‘720p50hz’
CoreELEC starts with resolution 1280x720p50Hz

My file /storage/.kodi/userdata/disp_cap contains:
720p50hz*
Kodi starts with only 1280x720p50Hz resolution

My file /storage/.config/autostart.sh contains:

fw_setenv hdmimode 720p50hz
fw_setenv outputmode 720p50hz

Hi

I had the same issue with a S912 (Beelink GT1 Ultimate) and a Sony X900F, after a power outage the box booted quicker than the TV and was set to 480p.

I ran “cat /sys/class/amhdmitx/amhdmitx0/disp_cap > /storage/.kodi/userdata/disp_cap” and edited /storage/.kodi/userdata/disp_cap to remove the unneeded modes and put 1080p60 on first line.