Bug 1111425
Summary: | The disabled display will come out when reconnect the guest | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | CongDong <codong> | ||||
Component: | virt-viewer | Assignee: | Fabiano Fidêncio <fidencio> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.6 | CC: | airlied, cfergeau, dblechte, fidencio, jherrman, juzhou, marcandre.lureau, mkrcmari, mzhan, rbalakri, tpelka, tzheng | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | virt-viewer-2.0-4.el6 | Doc Type: | Bug Fix | ||||
Doc Text: |
In some monitor configurations, after removing a guest display, the display in some cases unintendedly reappeared when the virt-viewer tool was started. The guest now updates its geometry every time a guest display is enabled or disabled, and guest displays now correctly stay removed.
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 1111429 (view as bug list) | Environment: | |||||
Last Closed: | 2015-07-22 06:31:13 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: | 1111429 | ||||||
Attachments: |
|
Description
CongDong
2014-06-20 02:55:01 UTC
Created attachment 910617 [details]
virt-viewer log with spice debug option
I can reproduce The configuration is correctly sent to guest: (virt-viewer:3696): GSpice-DEBUG: channel-main.c:1176 main-1:0: monitor config: #0 1024x768+0+0 @ 32 bpp (virt-viewer:3696): GSpice-DEBUG: channel-main.c:1176 main-1:0: monitor config: #2 400x375+1424+0 @ 32 bpp (virt-viewer:3696): GSpice-DEBUG: channel-main.c:1176 main-1:0: monitor config: #3 400x375+1824+0 @ 32 bpp (virt-viewer:3696): GSpice-DEBUG: channel-main.c:1954 main_agent_handle_msg: reply: type 2, success However, the agent doesn't correctly "disconnect" the display: qxl-1 connected 1024x768 60.0 + (note the missing config next to "qxl-1 connected"!) A second monitor config message with the same content is enough to solve the issue. This quite clearly points out an agent bug. moving It seems xrandr doesn't support disconnecting monitors with sparse config. monitors 1,2,3: enabled, disabling 3: xrandr --output qxl-2 --off -> disconnected monitors 1,2,3: enabled, disabling 2: xrandr --output qxl-2 --off -> connected David, any idea why sparse monitors don't get "disconnected" with xrandr (see comment #5) *** Bug 1111429 has been marked as a duplicate of this bug. *** (In reply to Marc-Andre Lureau from comment #5) > It seems xrandr doesn't support disconnecting monitors with sparse config. I don't think it's a xrandr issue. When tested on a RHEL7 guest (where the issue doesn't happen), I have as output the same I have in RHEL6: [ffidenci@rhel7 ~]$ xrandr | grep connected Virtual-0 connected primary 1600x807+0+0 0mm x 0mm Virtual-1 connected 400x373+1600+0 0mm x 0mm Virtual-2 connected 400x373+2000+0 0mm x 0mm Virtual-3 disconnected [ffidenci@rhel7 ~]$ xrandr --output Virtual-1 --off [ffidenci@rhel7 ~]$ xrandr | grep connected Virtual-0 connected primary 1600x807+0+0 0mm x 0mm Virtual-1 connected Virtual-2 connected 400x373+2000+0 0mm x 0mm Virtual-3 disconnected However, when disabling the monitor by the virt-viewer menu (Displays -> Display 1), it changes the root size window, triggering a ConfigureNotify event that will end up in the agent cide and then the monitor will be disabled. It doesn't happen with the RHEL-6.6, the ConfigureNotify event is never triggered. I've tested with the *same* agent on RHEL6 and RHEL7. Any kind of tip from people more experienced with X will be really appreciated, if it does look like something trivial/easy to see. Patch sent upstream: http://lists.freedesktop.org/archives/spice-devel/2015-March/019082.html (In reply to Fabiano Fidêncio from comment #10) > Patch sent upstream: > http://lists.freedesktop.org/archives/spice-devel/2015-March/019082.html Actually, this solution is wrong and a proper solution was found on the virt-viewer side. The virt-viewer patch can be found here https://www.redhat.com/archives/virt-tools-list/2015-March/msg00024.html (so, I'm keeping the status as POST) and I'm moving the bug to virt-viewer. Can reproduce with: virt-viewer-2.0-3.el6.x86_64 Steps: Same with Description Verify with virt-viewer-2.0-4.el6.x86_64 Result: After disable display 2, In guest: # xrandrScreen 0: minimum 320 x 200, current 3072 x 768, maximum 8192 x 8192 qxl-0 connected 1024x768+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 connected 1024x743+1024+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 1024x743-2 0.1* qxl-3 connected 1024x743+2048+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 1024x743-3 0.1* After reconnect the guest, display 2 is still disabled. As the result, move to VERIFIED. 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. https://rhn.redhat.com/errata/RHBA-2015-1322.html |