EDID on UEFI

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

EDID on UEFI

Post 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
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: EDID on UEFI

Post 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));
Post Reply