Bug 75824

Summary: Screen resize when X starts
Product: Spice Reporter: Gareth Williams <gareth>
Component: xorg qxlAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium CC: bugzilla
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Xorg.0.log

Description Gareth Williams 2014-03-06 06:47:33 UTC
Created attachment 95209 [details]
Xorg.0.log

I don't even know if I'm sending this to the right place - please accept my apologies if it's wrong.

I didn't report it on my distro as I don't believe it's distro specific.  I've had Arch guests and host along with Fedora guests and host and they all show the same issue with the QXL driver.  There is no issue with the modesetting driver, but I'd miss the mouse integration and copy/paste etc if I dropped the QXL driver.

When I run a Linux guest in KVM with the QXL driver the screen (as viewed by virt-viewer) is larger than the configured size.  I use the xorg.conf file to set my screen to 800x600 (so as to fit in on my laptop screen).  When I start X the visible portion of the screen is correctly set to 800x600 but with a large black border around it.  Using virt-viewer's 'resize to VM' menu option, doesn't shrink the screen to 800x600.  When I look in the logs, I see a few lines, as follows:-

[    23.300] (II) qxl(0): RandR 1.2 enabled, ignore the following RandR disabled
 message.
[    23.300] resizing primary to 1024x768
[    23.300] primary is 0x1d93ec0
[    23.307] (--) RandR disabled

It's the 'resizing primary' that concerns me and I believe it's the cause of the black border.  I've Googled the term and nothing comes up; hence my question here.

If I run xrandr --size ??? to resize the screen to any arbitrary size (eg 640x480), then use the same to size it to 800x600, followed by 'resize to VM' then virt-viewer resizes to the correct size and without a black border.

This only happens when I start X.  I've appended video=800x600-24 to the kernel boot options and the vt sets it's screen size to 800x600 (no border after 'resize to VM') but if I follow that with 'startx' then the border appears.

Is this a bug, or am I doing something wrong?  The driver version I'm currently running is 0.1.1

Thanks in advance.
Comment 1 Marc-Andre Lureau 2014-11-02 23:34:57 UTC
Can you provide a screenshot of the border issue?

What is your distro? Is the vdagent running and screen sizing working?

thanks
Comment 2 Sven Müller 2015-06-05 16:14:14 UTC
Found this bug entry. 

I have also the resize problem:

[   294.867] (II) qxl(0): Output Virtual-0 using monitor section Monitor0
[   294.867] (II) qxl(0): Output Virtual-1 has no monitor section
[   294.867] (II) qxl(0): Output Virtual-2 has no monitor section
[   294.867] (II) qxl(0): Output Virtual-3 has no monitor section
[   294.867] (II) qxl(0): EDID for output Virtual-0
[   294.867] (II) qxl(0): Printing probed modes for output Virtual-0
[   294.867] (II) qxl(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz UP)
[   294.867] (II) qxl(0): Modeline "1024x768"x59.9   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync (47.8 kHz P)
[   294.867] (II) qxl(0): Modeline "1920x1080"x60.0  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz)
[   294.867] (II) qxl(0): Modeline "1600x1200"x59.9  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync (74.5 kHz)
[   294.867] (II) qxl(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
[   294.867] (II) qxl(0): Modeline "1400x1050"x60.0  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync (65.3 kHz)
[   294.867] (II) qxl(0): Modeline "1280x1024"x59.9  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync (63.7 kHz)
[   294.867] (II) qxl(0): Modeline "1440x900"x59.9  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz)
[   294.867] (II) qxl(0): Modeline "1280x960"x59.9  101.25  1280 1360 1488 1696  960 963 967 996 -hsync +vsync (59.7 kHz)
[   294.867] (II) qxl(0): Modeline "1280x854"x59.9   89.25  1280 1352 1480 1680  854 857 867 887 -hsync +vsync (53.1 kHz)
[   294.867] (II) qxl(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz)
[   294.867] (II) qxl(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz)
[   294.867] (II) qxl(0): Modeline "1152x768"x59.8   71.75  1152 1216 1328 1504  768 771 781 798 -hsync +vsync (47.7 kHz)
[   294.867] (II) qxl(0): Modeline "800x600"x59.9   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync (37.4 kHz)
[   294.867] (II) qxl(0): Modeline "848x480"x59.7   31.50  848 872 952 1056  480 483 493 500 -hsync +vsync (29.8 kHz)
[   294.867] (II) qxl(0): Modeline "720x480"x59.7   26.75  720 744 808 896  480 483 493 500 -hsync +vsync (29.9 kHz)
[   294.867] (II) qxl(0): Modeline "640x480"x59.4   23.75  640 664 720 800  480 483 487 500 -hsync +vsync (29.7 kHz)
[   294.867] (II) qxl(0): EDID for output Virtual-1
[   294.867] (II) qxl(0): EDID for output Virtual-2
[   294.867] (II) qxl(0): EDID for output Virtual-3
[   294.867] (II) qxl(0): Output Virtual-0 connected
[   294.867] (II) qxl(0): Output Virtual-1 disconnected
[   294.867] (II) qxl(0): Output Virtual-2 disconnected
[   294.867] (II) qxl(0): Output Virtual-3 disconnected
[   294.867] (II) qxl(0): Using user preference for initial modes
[   294.867] (II) qxl(0): Output Virtual-0 using initial mode 1920x1200
[   294.867] (II) qxl(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[   294.867] (II) qxl(0): PreInit complete
[   294.867] (--) Depth 24 pixmap format is 32 bpp
[   294.867] (II) UXA(0): Driver registered support for the following operations:
[   294.867] (II)         solid
[   294.867] (II)         copy
[   294.867] (II)         composite (RENDER acceleration)
[   294.867] (II)         put_image
[   294.867] (II) qxl(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   294.867] resizing primary to 1024x768
[   294.868] primary is 0xee7390
[   294.874] (--) RandR disabled

- Connected Monitor is 30" and can do: 2560x1440
- Host system: Gentoo
- Guest system: Arch Linux, installed with KVM libvirt (virt-manager)
- Don't have any border problem.

It would be fine to have to chance to deactivate the resizing somehow.
Comment 3 Victor Toso 2016-05-04 09:44:18 UTC
Not sure if you guys are running QEMU with QXL without Spice. I don't see you mentioning the client or Spice versions.

If you have resizing problems please open a new bug with the version info of qemu, spice-server and the client that you are using.

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.