Adding EDID support to simpledrm on top of the EFI sysfb ?
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.html
Unfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
Regards,
Hans
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 7 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.htmlUnfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.
For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
I have long been working on all this and it is now slowly coming together.
Best regards
Thomas
Quoted 7 lines
Regards,
Hans
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Am 11.10.25 um 17:17 schrieb Thomas Zimmermann:
Quoted 48 lines
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 8 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.html
Unfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in
edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
I have long been working on all this and it is now slowly coming together.
Best regards
ThomasQuoted 7 lines
Regards,
Hans
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Thomas Zimmermann <[email protected]> writes:
Hello Hans,
Quoted 37 lines
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 7 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.htmlUnfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in
edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.
Quoted 9 lines
For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
I have long been working on all this and it is now slowly coming together.
I agree with Thomas.
We are still not enabling these DRM drivers in Fedora though, but maybe it is time to do that and just disable CONFIG_SYSFB_SIMPLEFB. I can propose a change request for Fedora 44 to do this.
Signature · 5 lines
Best regards, Javier Martinez Canillas Core Platforms Red Hat
Hi
Am 13.10.25 um 10:04 schrieb Javier Martinez Canillas:
Quoted 47 lines
Thomas Zimmermann <[email protected]> writes:
Hello Hans,
Quoted 43 lines
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 7 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.htmlUnfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in
edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
Quoted 7 lines
Quoted 2 lines
I have long been working on all this and it is now slowly coming together.
I agree with Thomas.
We are still not enabling these DRM drivers in Fedora though, but maybe it is time to do that and just disable
CONFIG_SYSFB_SIMPLEFB. I can propose a change request for Fedora 44 to do this.
Sounds good. FYI I plan to enable efidrm/vesadrm in openSUSE Tumbleweed now that v6.18-rc1 is out. If things go well, they should reach users within two months. I regularly improve support for various features (EDID, color modes).
Best regards
Thomas
Quoted 1 line
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Hi,
Quoted 48 lines · Javier Martinez Canillas
Thomas Zimmermann <[email protected]> writes:
Hello Hans,
Quoted 44 lines
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 7 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.htmlUnfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in
edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
Quoted 8 lines
Quoted 2 lines
I have long been working on all this and it is now slowly coming together.
I agree with Thomas.
We are still not enabling these DRM drivers in Fedora though, but maybe it is time to do that and just disable
CONFIG_SYSFB_SIMPLEFB. I can propose a change request for Fedora 44 to do this.
Trying to drive this forward by enabling this in Fedora 44 so this gets more test coverage sounds like a good plan to me!
Thanks & Regards,
Hans
Hi Thomas,
Quoted 28 lines · Thomas Zimmermann
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 7 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.htmlUnfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
Quoted 7 lines
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in
edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
I have long been working on all this and it is now slowly coming together.
Cool, thank you for working on this!
I agree that if we are going to have efidrm and vesadrm that making simpledrm a DT platform thing only makes sense.
I do wonder about the choice to primarily make the EDID passing a grub thing though.
Some distros are actively trying to move away from grub since grub is quite a complex beast and they are trying to move to something simpler like systemd-boot. As such it would be a good idea IMHO if efidrm could directly get the EDID from EFI itself.
Note I'm afraid I don't really have time to work on this myself.
Regards,
Hans
Hi
Am 22.10.25 um 15:12 schrieb Hans de Goede:
Quoted 42 lines
Hi Thomas,
Quoted 27 lines · Thomas Zimmermann
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 7 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.htmlUnfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
Quoted 7 lines
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in
edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
I have long been working on all this and it is now slowly coming together.
Cool, thank you for working on this!
I agree that if we are going to have efidrm and vesadrm that making simpledrm a DT platform thing only makes sense.
Quoted 7 lines
I do wonder about the choice to primarily make the EDID passing a grub thing though.
Some distros are actively trying to move away from grub since grub is quite a complex beast and they are trying to move to something simpler like systemd-boot. As such it would be a good idea IMHO if efidrm could directly get the EDID from EFI itself.
Yes, the GRUB patch is mostly useful for VESA. For EFI on x86, I posted a patch series to fetch the EDID in the EFI stub and forward it to the kernel. Have a look at [1]. For non-x86 EFI systems, I also have a prototype, but wanted to get the x86 done first. I have to some research if systemd-boot requires anything extra.
Things are moving in the right direction.
Best regards
Thomas
[1] https://lore.kernel.org/lkml/[email protected]/
Quoted 8 lines
Note I'm afraid I don't really have time to work on this myself.
Regards,
Hans
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Hi,
Quoted 48 lines · Thomas Zimmermann
Hi
Am 22.10.25 um 15:12 schrieb Hans de Goede:
Quoted 45 lines
Hi Thomas,
Quoted 27 lines · Thomas Zimmermann
Hi Hans
Am 11.10.25 um 12:02 schrieb Hans de Goede:
Quoted 17 lines
Hi,
A while ago I did a blogpost about not having the native GPU drivers in the initrd: https://hansdegoede.dreamwidth.org/28291.html
With the Fedora /boot partition size increase there has been renewed interest in this and as a result I got an interesting comment on the blog post pointing out that there are EFI protocols to get EDID info for the monitor (presumably for the one the GOP has lit up).
It would be useful to see if we can hook this up so that the simpledrm device can report the physical dimensions of the screen and the boot splash does not need to guess the DPI and thus does not need to guess whether to do hiDPI scaling or not. The comment is here:
https://hansdegoede.dreamwidth.org/28291.html?thread=14467#cmt14467
Quoted 7 lines
and it points to:
https://uefi.org/sites/default/files/resources/2_-_AMD_UEFI_Plugfest_EDID_Spring2012.pdf
https://uefi.org/specs/UEFI/2.9_A/12_Protocols_Console_Support.htmlUnfortunately I do not have time to work on this myself, hence this email in the hope that someone else can pick this idea up.
Quoted 7 lines
There are now efidrm and vesadrm, which support specifically the features that we get from the rsp. standards, hardware and bootloader. For VESA and EFI the EDID can be transferred from grub via bootparams. A patch [1] is on its way into upstream grub. The Linux kernel stores that data in
edid_info, from where it is picked up by efidrm and vesadrm. If the EFI framebuffer comes directly from the EFI calls, we need to implement this in the kernel, but the principle is the same. I also have ideas for making this work on Coreboot.For simpledrm, I'd rather strip if from the ability to use EFI/VESA framebuffers and focus on simple-framebuffer DT nodes. These sometimes come with DPI information. Maybe we could extend the DT to support EDID as well.
[1] https://lists.gnu.org/archive/html/grub-devel/2025-10/msg00043.html
I have long been working on all this and it is now slowly coming together.
Cool, thank you for working on this!
I agree that if we are going to have efidrm and vesadrm that making simpledrm a DT platform thing only makes sense.
I do wonder about the choice to primarily make the EDID passing a grub thing though.
Quoted 8 lines
Quoted 4 lines
Some distros are actively trying to move away from grub since grub is quite a complex beast and they are trying to move to something simpler like systemd-boot. As such it would be a good idea IMHO if efidrm could directly get the EDID from EFI itself.
Yes, the GRUB patch is mostly useful for VESA. For EFI on x86, I posted a patch series to fetch the EDID in the EFI stub and forward it to the kernel. Have a look at [1].
This looks good, very nice!
I assume the stub + copying thing is because this all depends on EFI boot services and this cannot be done after calling exit-bootservices, right ?
You might want to mention that in the commit-messages.
Quoted 1 line
For non-x86 EFI systems, I also have a prototype, but wanted to get the x86 done first. I have to some research if systemd-boot requires anything extra.
Since the kernel now retrieves the EDID itself I don't expect systemd-boot to need anything extra. Unlike grub which loads the kernel itself even in EFI mode (a), I believe that systemd always executes the kernel as an EFI binary and thus always uses the efistub (which IMHO is the right thing to do).
Quoted 1 line
Things are moving in the right direction.
Definitely, once more thank you for working on this.
Regards,
Hans
a) Grub upstream that is, Fedora at least has patches to instead execute the kernel as an EFI binary using the stub
Quoted 1 line
Hi
Am 22.10.25 um 20:37 schrieb Hans de Goede:
[...]
Quoted 8 lines
Quoted 3 lines
Yes, the GRUB patch is mostly useful for VESA. For EFI on x86, I posted a patch series to fetch the EDID in the EFI stub and forward it to the kernel. Have a look at [1].
This looks good, very nice!
I assume the stub + copying thing is because this all depends on EFI boot services and this cannot be done after calling exit-bootservices, right ?
Yes.
Quoted 2 lines
You might want to mention that in the commit-messages.
Good idea. I'll do so in the next update.
Quoted 11 lines
Quoted 2 lines
For non-x86 EFI systems, I also have a prototype, but wanted to get the x86 done first. I have to some research if systemd-boot requires anything extra.
Since the kernel now retrieves the EDID itself I don't expect systemd-boot to need anything extra. Unlike grub which loads the kernel itself even in EFI mode (a), I believe that systemd always executes the kernel as an EFI binary and thus always uses the efistub (which IMHO is the right thing to do).
Quoted 1 line
Things are moving in the right direction.
Definitely, once more thank you for working on this.
Quoted 7 lines
Regards,
Hans
a) Grub upstream that is, Fedora at least has patches to instead execute the kernel as an EFI binary using the stub
Same here on openSUSE Tumbleweed. But upstream GRUB's EDID support should also work with UEFI; not just VESA.
Best regards
Thomas
Quoted 4 lines
Quoted 2 lines
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Hans de Goede left as an exercise for the reader:
Quoted 4 lines
Some distros are actively trying to move away from grub since grub is quite a complex beast and they are trying to move to something simpler like systemd-boot. As such it would be a good idea IMHO if efidrm could directly get the EDID from EFI itself.
I haven't used grub since at least 2019, preferring EFI boot stub managed with efibootmgr (possibly moving to systemd-boot).
Signature · 3 lines
nick black -=- https://nick-black.com to make an apple pie from scratch, you need first invent a universe.