<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Screen resize when X starts"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75824">75824</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>spice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Screen resize when X starts
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gareth@garethwilliams.me.uk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xorg qxl
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Spice
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=95209" name="attach_95209" title="Xorg.0.log">attachment 95209</a> <a href="attachment.cgi?id=95209&action=edit" title="Xorg.0.log">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>