[OpenBIOS] [PATCH v2] Implement copy-resolutions-property

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Oct 2 23:21:38 CEST 2016


On Sun, 2016-10-02 at 12:31 +0100, Mark Cave-Ayland wrote:
> On 02/10/16 00:20, Benjamin Herrenschmidt wrote:
> 
> > 
> > On Sat, 2016-10-01 at 19:11 +0100, Mark Cave-Ayland wrote:
> > > 
> > > 
> > > Also you never replied if there was a way of reading the in-built
> > > resolutions from the QEMU VGA controller? If yes, let's grab the
> > > information from there. If not, then it would make sense to add
> > > the
> > > basic VGA/XGA resolutions into the QEMU,VGA device as default and
> > > then
> > > simply add any custom resolution to the end of the list.
> > 
> > The emulated HW doesn't have a way to obtain a list of resultions,
> > at least not that I know of.
> 
> I know it's not available through VBE, but was hoping there might be
> some kind of EDID emulation on the QEMU VGA controller.
> 
> Other than that, can the MacOS driver environment read/write
> configuration to disk? If so, all we need to do on boot is read the
> current resolution via VBE and/or the QEMU,VGA device and we are
> good.

No, but it can access the NVRAM if we emulate it properly

> The first time the driver runs it can write a config file of default
> VGA/XGA resolutions to disk which power users can alter themselves to
> add further options on subsequent reboots if required.
> 
> 
> ATB,
> 
> Mark.



More information about the OpenBIOS mailing list