Bug 1096717

Summary: The resolution of guest shows incorrect after switch to full-screen again with option --full-screen=auto-conf
Product: Red Hat Enterprise Linux 6 Reporter: tingting zheng <tzheng>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6CC: cfergeau, codong, dblechte, dyuan, jjongsma, juzhou, lcui, marcandre.lureau, mzhan, rbalakri, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-0.6.0-1.el6 Doc Type: Bug Fix
Doc Text:
Launching the application with --full-screen=auto-conf, leaving fullscreen mode, and then returning to fullscreen mode didn't adjust the resolution of the guest properly In the new version (0.6.0) of virt-viewer, there is no longer a difference between --full-screen and --full-screen=auto-conf. The bug that was causing the misbehavior has been fixed, and the resolution is now adjusted properly when leaving and re-entering fullscreen mode.
Story Points: ---
Clone Of:
: 1096718 (view as bug list) Environment:
Last Closed: 2014-10-14 06:30:50 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:
Bug Depends On:    
Bug Blocks: 1096718    
Attachments:
Description Flags
Debug info from virt-viewer none

Description tingting zheng 2014-05-12 10:36:57 UTC
Created attachment 894646 [details]
Debug info from virt-viewer

Description
The resolution of guest shows incorrect after switch to full-screen again with option --full-screen=auto-conf

Version:
virt-viewer-0.5.6-10.el6.x86_64
spice-gtk-0.20-11.el6_5.1.x86_64
spice-server-0.12.4-8.el6.x86_64
spice-gtk-python-0.20-11.el6_5.1.x86_64
spice-vdagent-0.14.0-3.el6_5.x86_64
spice-client-0.8.2-15.el6.x86_64
spice-glib-0.20-11.el6_5.1.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a spice rhel guest with qxl+spicevmc
# virsh dumpxml $vm
...
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
...
    <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
    </graphics>
...
    <video>
      <model type='qxl' ram='65536' vram='65536' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
...

2. Connect the guest with remote-viewer --full-screen=auto-conf
# remote-viewer spice://127.0.0.1:5900 --full-screen=auto-conf

3. After the guest is launched in full-screen mode,quit full-screen mode,then Click "View"->"Full-screen",the resolution shows incorrect.

Actual results:
As steps show.

Expected results:
Step 3,resolution of full-screen shows correct.

Additional info:
The issue can not be reproduced when launch remote-viewer --full-screen without option auto-conf.
The issue can be also reproduces on rhel7.

Comment 1 Marc-Andre Lureau 2014-05-12 10:48:27 UTC
(In reply to tingting zheng from comment #0)
> Created attachment 894646 [details]
> Debug info from virt-viewer
> 
> Description
> The resolution of guest shows incorrect after switch to full-screen again
> with option --full-screen=auto-conf

What do you mean by "shows incorrect" ? Can you provide xrandr command output after connecting to guest? What is the expected resolution and what is the resolution the guest got configured to?

thanks

Comment 3 tingting zheng 2014-05-12 11:02:02 UTC
(In reply to Marc-Andre Lureau from comment #1)
> (In reply to tingting zheng from comment #0)
> > Created attachment 894646 [details]
> > Debug info from virt-viewer
> > 
> > Description
> > The resolution of guest shows incorrect after switch to full-screen again
> > with option --full-screen=auto-conf
> 
> What do you mean by "shows incorrect" ? Can you provide xrandr command
> output after connecting to guest? What is the expected resolution and what
> is the resolution the guest got configured to?
> 
> thanks

The first time I launch virt-viewer:
remote-viewer spice://127.0.0.1:5900 --full-screen=auto-conf
# xrandr
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 8192 x 8192
qxl-0 connected 1280x1024+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 disconnected
qxl-2 disconnected
qxl-3 disconnected


Then I quit full-screen,click "View"->"Fullscreen",the console shows abnormal,the xrandr output shows as below:
# xrandr
Screen 0: minimum 320 x 200, current 976 x 656, maximum 8192 x 8192
qxl-0 connected 976x656+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  
   976x656-0       0.1* 
qxl-1 disconnected
qxl-2 disconnected
qxl-3 disconnected

Comment 4 Marc-Andre Lureau 2014-05-12 11:13:48 UTC
Ah, so it doesn't get resize the second time you go fullscreen with auto-conf. Somewhat related to #1038726.

I guess this is now working with upstream.  Could you try with f20 client? thanks

Comment 6 tingting zheng 2014-05-13 12:06:22 UTC
(In reply to Marc-Andre Lureau from comment #4)
> Ah, so it doesn't get resize the second time you go fullscreen with
> auto-conf. Somewhat related to #1038726.
> 
> I guess this is now working with upstream.  Could you try with f20 client?
> thanks

I tried on f20,version:
virt-viewer-0.6.0-1.fc20.x86_64

The bug can not be reproduced on f20.

Comment 7 Jonathon Jongsma 2014-05-29 14:54:57 UTC
since it's fixed upstream, moving to POST

Comment 9 CongDong 2014-06-05 06:46:29 UTC
I can reproduce this with virt-viewer-0.5.6-10.el6.x86_64.

Verify with virt-viewer-0.6.0-4.el6.x86_64
Steps:
1. prepare a spice rhel guest
2. Connect the guest with remote-viewer --full-screen=auto-conf
As the latest version virt-viewer, in man page there is no option "auto-conf" after --full-screen, "-f/--full-screen" is equal with "--full-screen=autu-conf"
So, the cmd is like this:
 # remote-viewer spice://127.0.0.1:5900 --full-screen

But got a problem here:
The display is fullscreen, but didn't configure the resolution automatically.
Guest keep it's resolution in windowed mode, have no change after fullscreen.

If I leave fullscreen and change to fullscreen again by click "View"->"Full-screen", guest can configure it's resolution right, same with the physical monitor.

Generally speaking,  if use option "--full-screen", the resolution won't be reconfigured automatically, if  change the display to fullscreen manually by click "View -> fullscreen", can get the right resolution. virt-viewer also has same problem, I have already add comment in bug 1032960.

So, is it caused by this fix? If not, as my test result, should I VERIFIED this bug?

Comment 10 CongDong 2014-06-05 08:52:36 UTC
I re-test on another machine, but the releated pkg are same with mine in comment 9, but don't have the problem I mentioned above.
So I re-install my machine and problem is gone.

Verify with virt-viewer-0.6.0-4.el6.x86_64
Steps:
1. prepare a spice rhel guest
2. Connect the guest with remote-viewer --full-screen=auto-conf
As the latest version virt-viewer, in man page there is no option "auto-conf" after --full-screen, "-f/--full-screen" is equal with "--full-screen=autu-conf"
So, the cmd is like this:
 # remote-viewer spice://127.0.0.1:5900 --full-screen
3. After the guest is launched in full-screen mode,quit full-screen mode,then Click "View"->"Full-screen"

Result:
After change to fullscreen again by click "View-Full-screen", the resolution changes same with the physical monitor automatically.

As the result, VERIFIED.

Comment 11 errata-xmlrpc 2014-10-14 06:30:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1379.html