Hi all, is there’s any way to force display resolution on Android Pie vim3 and ignore EDID,
The case is, I sometimes use vim on display that have bad hpd/EDID implementation - so it can show proper 4k30hz resolution - but sometimes it fallback to save-mode 1080p (after it fallback to 1080p, it won’t get back to 4k30 after reboot)
So my requirement is to force vim to use specified resolution and ignore whatever EDID value.
But it seems that it still can sometimes fallback to 1080p mode - and change the above value.
In old pie rom I can change vendor/amlogic/common/frameworks/services/ DisplayMode.cpp & DisplayMode.h by adding code that force my specified resolution
// i add a `prop` key to force the resolution
pSysWrite->getPropertyString(PROP_FALLBACK_EDID_MODE, fallbackEdidMode, "");
if (strlen(fallbackEdidMode) != 0) {
// fallback is set!
strcpy(mode, fallbackEdidMode);
SYS_LOGI("getBestHdmiMode - set HDMI to fallback edid mode: %s\n", fallbackEdidMode);
}
But it does not works on the new pie ROM.
Anyone can kindly help me point to the right place to enforce resolution and ignore EDID? thanks
But my display not a monitor, it have unusual EDID — so intermittently it can fallback to 1080p60hz (failsave resolution) - I want it to be always forced to 2160p30hz and ignore EDID capabilities
on previous code - i modify vendor/amlogic/common/frameworks/services/ DisplayMode.cpp - but it no longer works