[SeaBIOS] [PATCH 3/3] bochsvga: dynamic generation of EDID
Gerd Hoffmann
kraxel at redhat.com
Mon Sep 10 08:57:16 CEST 2012
On 09/09/12 16:00, Hiroshi Miura wrote:
> Generate EDID according to preferred resolution
> from VBE_DISPI interface.
> +void bochs_init_preferred_resolution(u16 max_xres, u16 max_yres) {
> +
> + if (max_xres >= 1920 && max_yres >= 1200){
> + max_xres = 1920; max_yres = 1200;
> + } else if (max_xres >= 1600 && max_yres >= 1200){
> + max_xres = 1600; max_yres = 1200;
> + } else if (max_xres >= 1280 && max_yres >= 1024){
> + max_xres = 1280; max_yres = 1024;
> + } else {
> + max_xres = 1152; max_yres = 864;
> + }
> + SET_VGA(prefered_xres,max_xres);
> + SET_VGA(prefered_yres,max_yres);
> +}
> u16 max_xres = dispi_read(VBE_DISPI_INDEX_XRES);
> + u16 max_yres = dispi_read(VBE_DISPI_INDEX_YRES);
> + bochs_init_preferred_resolution(max_xres, max_yres);
So how this is supposed to work? qemu gives you fixed max_xres and
max_yres values, you'll never see anything below 1600x1200 ...
cheers,
Gerd
More information about the SeaBIOS
mailing list