Page 1 of 1

EDID on UEFI

Posted: Mon Aug 24, 2020 8:04 am
by nexos
Hello,
I am currently making a UEFI loader and have enumerated the GOP to find video modes. I know on VESA use use BIOS ints to access EDID to get monitor info. What is the equivalent on UEFI?
Thanks,
nexos

Re: EDID on UEFI

Posted: Mon Aug 24, 2020 10:11 am
by kzinti

Code: Select all

EFI_EDID_ACTIVE_PROTOCOL
You can get it from a EFI_GRAPHICS_OUTPUT_PROTOCOL handle:

Code: Select all

        EFI_EDID_ACTIVE_PROTOCOL* edid = nullptr;
        m_bootServices->HandleProtocol(handleGraphicsOutputProtocol, &g_efiEdidActiveProtocolGuid, (void**)&edid));