Generic screen output post BIOS

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
GMorgan
Posts: 22
Joined: Sun Jul 14, 2019 4:27 pm

Generic screen output post BIOS

Post by GMorgan »

Hi guys,

As I'm sure you are all aware BIOS is getting a long anticipated death relatively shortly. That means no VGA/VESA. What is the UEFI future for hobbyist graphics output? I know there is GOP but apparently that goes away after boot ends unless I've misunderstood something.

Is there a generic way to get hold of, initialise and map a framebuffer that persists post UEFI boot? If there is I'll probably create my graphics module with VESA as just one of many framebuffers it can get. If it needs card specific drivers then that is obviously more complicated.
MichaelPetch
Member
Member
Posts: 798
Joined: Fri Aug 26, 2016 1:41 pm
Libera.chat IRC: mpetch

Re: Generic screen output post BIOS

Post by MichaelPetch »

The framebuffer acquired from GOP (and older UGA) can still be used after ExitBootServices .
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: Generic screen output post BIOS

Post by no92 »

MichaelPetch wrote:The framebuffer acquired from GOP (and older UGA) can still be used after ExitBootServices .
I agree in principle, but UGA doesn't provide you with a framebuffer address. This shouldn't matter too much, as this should apply only to Macs.

The Linux way of getting a framebuffer address with UGA is determining the machine via SMBIOS (= DMI?) and looking up the address in a table.
GMorgan
Posts: 22
Joined: Sun Jul 14, 2019 4:27 pm

Re: Generic screen output post BIOS

Post by GMorgan »

Thanks guys. I might bite the bullet and look to just move everything to UEFI. Seems like it gives broader resolution support and multimonitor. The only loss seems to be inability to change resolution dynamically but I can live with fixed resolution mode until I have a proper driver.
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: Generic screen output post BIOS

Post by no92 »

I'm unaware of multi-monitor support in UEFI, where did you get this from? I'd be quite interested if true, although I remember it to not be possible ...
GMorgan
Posts: 22
Joined: Sun Jul 14, 2019 4:27 pm

Re: Generic screen output post BIOS

Post by GMorgan »

The article below claims it is possible.

https://github.com/rust-osdev/uefi-rs/w ... t-Protocol
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: Generic screen output post BIOS

Post by no92 »

A quick Google search doesn't really yield any results, but I might try this out. Anyone with experience with this is invited to share their thoughts.
GMorgan
Posts: 22
Joined: Sun Jul 14, 2019 4:27 pm

Re: Generic screen output post BIOS

Post by GMorgan »

Here's a post on this forum implying multi monitor is a reason to use UEFI over BIOS.

viewtopic.php?f=11&t=32279&p=278257&hil ... rs#p278257
Post Reply