Bug 28820 - [feature-request] Please allow dynamic resolution resizing and custom resolutions
Summary: [feature-request] Please allow dynamic resolution resizing and custom resolut...
Status: RESOLVED FIXED
Alias: None
Product: Spice
Classification: Unclassified
Component: server (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Spice Bug List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 07:44 UTC by alexey__
Modified: 2014-11-03 01:47 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description alexey__ 2010-06-29 07:44:26 UTC
Hi,

Desktop Virtualization software should have a feature to resize SPICE client window, and make guest OS resize accordingly.

i.e. if the SPICE client window was resized from 800x600 to 843x745, a new custom resolution must be hot-added to guest OS, and guest's window manager should resize itself accordingly.

This will allow for much more comfortable desktop virtualization in windowed mode.

For this to happen the server-side (QXL GPU) should be modified to hot-add new custom resolutions in guest OS.

Both Linux/X11 (via randr X11 extension) and Windows guests should work with this feature.

Prior art: Both VMware Workstation and VirtualBox provide such mechanism for local VMs, and something similar could be done for SPICE for remote VMs.

-Alexey, 29.6.2010.
Comment 1 Alexander Larsson 2010-06-30 04:23:33 UTC
Yeah, we really should redo the way we handle modes and modesetting.
We currently allocate a fixed size of pci memory for the primary surface. This limits the max resolution, and wastes space if the max resolution is not changed.
Furthermore, the list of resolutions we list in the rom is currently enforced when setting modes.

I think we should let the driver set all possible modes, then the driver itself could handle the list of availible modes, which makes it possible to make this list dynamic via e.g. the agent forwarding client resolutions or similar. We also want to make the driver able to put the primary surface in the vram if the mode doesn't fit in the 8 megs of "vga memory". That way we can support any resolution as long as there is memory for it.
Comment 2 Alexander Larsson 2010-09-22 05:38:01 UTC
Some more details about this here:

http://lists.freedesktop.org/archives/spice-devel/2010-September/001211.html
Comment 3 Marc-Andre Lureau 2014-11-03 01:47:03 UTC
arbitrary resolution + framebuffer/vram adjustments are available upstream for a while.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.