qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] edid: set default resolution to 1280x800 (WXGA)


From: Gerd Hoffmann
Subject: Re: [PATCH] edid: set default resolution to 1280x800 (WXGA)
Date: Thu, 2 Dec 2021 11:54:53 +0100

On Mon, Nov 29, 2021 at 02:05:08PM +0000, Daniel P. Berrangé wrote:
> Currently QEMU defaults to a resolution of 1024x768 when exposing EDID
> info to the guest OS. The EDID default info is important as this will
> influence what resolution many guest OS will configure the screen with
> on boot. It can also potentially influence what resolution the firmware
> will configure the screen with, though until very recently EDK2 would
> not handle EDID info.

edk2 support is at "patches exist" level right now, not even merged,
will hopefully land in the next stable tag (feb 22).

Independent from that we plan to change the edk2 default resolution from
the current 800x600 to whatever qemu 7.0 will use, be that 1280x800 (as
suggested by this patch) or 1024x768 (current qemu default).

> One important thing to bear in mind is that the default graphics card
> driver provided by Windows will leave the display set to whatever
> resolution was enabled by the firmware on boot. Even if sufficient
> VRAM is available, the resolution can't be changed without installing
> new drivers. IOW, the default resolution choice is quite important
> for usability of Windows.

It's not that simple.

With uefi firmware windows sticks to whatever resolution the firmware
has initialized (without installing guest drivers).  The resolution can
be changed in the firmware setup.

With bios firmware windows can change the resolution at runtime using
vgabios calls, i.e. after completing the install you can right-click on
the desktop, pick display config in the popup menu, then change the
resolution.

So there are ways to use other resolutions.  They are not exactly
intuitive though and I think it makes sense to modernize the qemu
defaults.

> In considering what possible new default could be suitable, choices
> considered were 1280x720 (720p), 1280x800 (WXGA) and 1280x1024 (SXGA).
> 
> In many ways, vertical space is the most important, and so 720p was
> discarded due to loosing vertical space, despite being 25% wider.
> 
> The SXGA resolution would be good, but when taking into account
> window titlebars/toolbars and window manager desktop UI, this might
> be a little too tall for some users to fit the guest on their physical
> montior.

Yes, with FullHD (1920x1080) being a popular resolution these days
having a 1280x1024 guest display would leave only 56 pixes for title
bar and menus.

> This patch thus suggests a modest change to 1280x800 (WXGA). This
> only consumes 1 MB per colour channel, allowing double buffered
> framebuffer in 8 MB of VRAM. Width wise this is 25% larger than
> QEMU's current default, but height wise this only adds 5%, so the
> difference isn't massive on the QEMU side.

Looks like a good pick to me.

In case someone wants pick that up:
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>

Failing that I'll add that to my first post-freeze pull request.

take care,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]