Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1097544

Summary: Get wrong result if change the resolution with two monitors
Product: Red Hat Enterprise Linux 6 Reporter: CongDong <codong>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED NEXTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6CC: acathrow, cfergeau, codong, dblechte, jjongsma, juzhou, lcui, marcandre.lureau, mzhan, tzheng, zsong
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1102558 (view as bug list) Environment:
Last Closed: 2014-06-05 08:13:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
xrandr log for guest
none
This is the screenshot when change resolution of display2 to 2560*1600 in fullscreen mode
none
This is the screenshot when change resolution of display1 to 2560*1600 in fullscreen mode
none
This is the screenshot when change resolution of display1 to 2560*1600 in window mode none

Description CongDong 2014-05-14 05:06:00 UTC
Description of problem:
If change one display's resoution of the guest,
cannot get the right result and the operation will affect another display's resolution

Version-Release number of selected component (if applicable):
virt-viewer-0.5.6-10.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. prepare a spice rhel6 guest with two displays and a host with two monitors
2. # virt-viewer $vm
3. change one display's resolution, should large than the monitor's resolution.

Actual results:
The display's resolution is changed, but sometime cannot get the right result.
Another display is changed too, and sometimes another display is
disconnected, and sometime the display is zoom in.

Expected results:
Can get the right resolution and should not affect other display.

Additional info:
Also can reproduce with remote-viewer and fullscreen mode.

Comment 1 CongDong 2014-05-14 05:06:58 UTC
Created attachment 895361 [details]
xrandr log for guest

Comment 2 CongDong 2014-05-14 05:08:19 UTC
Created attachment 895362 [details]
This is the screenshot when change resolution of display2 to 2560*1600 in fullscreen mode

the screenshot is for change the second display's resolution in fullscreen mode

Comment 4 Jonathon Jongsma 2014-05-29 16:17:27 UTC
(In reply to CongDong from comment #2)
> Created attachment 895362 [details]
> screenshot of fullscreen mode
> 
> the screenshot is for change the second display's resolution in fullscreen
> mode

There seems to be some information missing in this bug.

This screenshot shows the displays in fullscreen mode. But in your description for how to reproduce the issue, you didn't mention fullscreen mode except a vague comment at the very end.  Please be very explicit in your steps to reproduce the bug.  Also, please try to tell *how* you did things (instead of saying "change one display's resolution", say "change one display's resolution by doing X and then Y and then Z").

Comment 5 CongDong 2014-05-30 01:35:07 UTC
(In reply to Jonathon Jongsma from comment #4)
> (In reply to CongDong from comment #2)
> > Created attachment 895362 [details]
> > screenshot of fullscreen mode
> > 
> > the screenshot is for change the second display's resolution in fullscreen
> > mode
> 
> There seems to be some information missing in this bug.
> 
> This screenshot shows the displays in fullscreen mode. But in your
> description for how to reproduce the issue, you didn't mention fullscreen
> mode except a vague comment at the very end.  
When I change different in each mode (fullscreen, window)  will got different result, I'll send other screenshot later.

> Please be very explicit in
> your steps to reproduce the bug.  Also, please try to tell *how* you did
> things (instead of saying "change one display's resolution", say "change one
> display's resolution by doing X and then Y and then Z").
Steps:
1. prepare a spice rhel6 guest with two displays and a host with two monitors

2. Connect the guest with virt-viewer and make sure you can see two displays.
# virt-viewer $vm
If only one display shows, can enable another display by:
View -> Displays -> Display 2

3. Open "Display preferences", there should be two displays.
System -> Preferences -> Display

4. Choose one display and open the resolutin list by click the droplist beside  "Resolution", then choose a resolution which is bigger than the resolution of physical monitor.

Comment 6 CongDong 2014-05-30 01:50:57 UTC
Created attachment 900597 [details]
This is the screenshot when change resolution of display1 to 2560*1600 in fullscreen mode

Following is the xrandr result in guest after change the display one to 2560*1600

Screen 0: minimum 320 x 200, current 3360 x 1050, maximum 8192 x 8192
qxl-0 connected 2560x1600+0+0 0mm x 0mm
   1024x768       60.0 +
   2560x1600      60.0* 
   2000x2000      60.0  
   2560x1440      60.0  
   2048x1536      60.0  
   1920x1440      60.0  
   1920x1200      60.0  
   1920x1080      60.0  
   1600x1200      60.0  
   1680x1050      60.0  
   1400x1050      60.0  
   1600x900       60.0  
   1280x1024      60.0  
   1440x900       60.0  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       60.0  
   1152x870       60.0  
   1152x864       60.0  
   1280x768       60.0  
   1280x760       60.0  
   1280x720       60.0  
   1024x600       60.0  
   960x640        60.0  
   832x624        60.0  
   800x600        60.0  
   800x480        60.0  
   640x480        60.0  
qxl-1 connected 1680x1050+2560+550 0mm x 0mm
   1024x768       60.0 +
   2560x1600      60.0  
   2000x2000      60.0  
   2560x1440      60.0  
   2048x1536      60.0  
   1920x1440      60.0  
   1920x1200      60.0  
   1920x1080      60.0  
   1600x1200      60.0  
   1680x1050      60.0* 
   1400x1050      60.0  
   1600x900       60.0  
   1280x1024      60.0  
   1440x900       60.0  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       60.0  
   1152x870       60.0  
   1152x864       60.0  
   1280x768       60.0  
   1280x760       60.0  
   1280x720       60.0  
   1024x600       60.0  
   960x640        60.0  
   832x624        60.0  
   800x600        60.0  
   800x480        60.0  
   640x480        60.0  
qxl-2 disconnected
qxl-3 disconnected

Comment 7 CongDong 2014-05-30 02:11:52 UTC
Created attachment 900599 [details]
This is the screenshot when change resolution of display1 to 2560*1600 in window mode

This the xrandr result after change display 1 to 2560*1600 in window mode.
In screenshot, display 2 seems to be change too, and resulotion of display 2 does not look like same with the previous(1168x774), but the result is still 1168x774

Screen 0: minimum 320 x 200, current 3088 x 1200, maximum 8192 x 8192
qxl-0 connected 2560x1600+0+0 0mm x 0mm
   1024x768       60.0 +
   2560x1600      60.0* 
   2000x2000      60.0  
   2560x1440      60.0  
   2048x1536      60.0  
   1920x1440      60.0  
   1920x1200      60.0  
   1920x1080      60.0  
   1600x1200      60.0  
   1680x1050      60.0  
   1400x1050      60.0  
   1600x900       60.0  
   1280x1024      60.0  
   1440x900       60.0  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       60.0  
   1152x870       60.0  
   1152x864       60.0  
   1280x768       60.0  
   1280x760       60.0  
   1280x720       60.0  
   1024x600       60.0  
   960x640        60.0  
   832x624        60.0  
   800x600        60.0  
   800x480        60.0  
   640x480        60.0  
qxl-1 connected 1168x774+2560+0 0mm x 0mm
   1024x768       60.0 +
   2560x1600      60.0  
   2000x2000      60.0  
   2560x1440      60.0  
   2048x1536      60.0  
   1920x1440      60.0  
   1920x1200      60.0  
   1920x1080      60.0  
   1600x1200      60.0  
   1680x1050      60.0  
   1400x1050      60.0  
   1600x900       60.0  
   1280x1024      60.0  
   1440x900       60.0  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       60.0  
   1152x870       60.0  
   1152x864       60.0  
   1280x768       60.0  
   1280x760       60.0  
   1280x720       60.0  
   1024x600       60.0  
   960x640        60.0  
   832x624        60.0  
   800x600        60.0  
   800x480        60.0  
   640x480        60.0  
   1168x774-1      0.1* 
qxl-2 disconnected
qxl-3 disconnected

Comment 8 David Blechter 2014-05-30 12:04:02 UTC
the problem with resolution change was addressed in https://bugzilla.redhat.com/show_bug.cgi?id=1076728. It is qxl bug for rhel 6.6. It is currently ON_QA. 
There is the 6.5.z version available (https://errata.devel.redhat.com/advisory/17749) for 6.5.z.

Sounds like the dupl, can you verify? You need to install new qxl driver on rhel VM.

Comment 9 CongDong 2014-06-04 05:47:38 UTC
> Sounds like the dupl, can you verify? You need to install new qxl driver on
> rhel VM.

I update qxl driver on rhel VM (xorg-x11-drv-qxl-0.1.0-8.el6_5).

Steps:
1. prepare a spice rhel6 guest with two displays and a host with two monitors
2. # virt-viewer $vm
3. change one display's resolution, should large than the monitor's resolution.

Result:
Can get right resolution and other displays don't change.
Also test the vm on RHEVM , both fullscreen and window mode can get right result.

BTW, the bug you mentioned in comment 8, my monitors native resolution is 1680*1050, I cannot reproduce that problem with my environment.

Comment 10 Marc-Andre Lureau 2014-06-04 09:56:43 UTC
(In reply to CongDong from comment #9)
> > Sounds like the dupl, can you verify? You need to install new qxl driver on
> > rhel VM.

> Result:
> Can get right resolution and other displays don't change.
> Also test the vm on RHEVM , both fullscreen and window mode can get right
> result.
> 
> BTW, the bug you mentioned in comment 8, my monitors native resolution is
> 1680*1050, I cannot reproduce that problem with my environment.

So, no more bug? should we close as alreadyfixed?

Comment 11 CongDong 2014-06-05 02:03:58 UTC
> So, no more bug? should we close as alreadyfixed?

Yes, I think so, and I didn't find other releated problems.