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 918570 - All "windows" have the same resolution in fullscreen
Summary: All "windows" have the same resolution in fullscreen
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-viewer
Version: 6.4
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 886570
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-06 14:24 UTC by Jiri Pallich
Modified: 2013-05-22 18:07 UTC (History)
19 users (show)

Fixed In Version: virt-viewer-0.5.2-18.el6_4.2
Doc Type: Bug Fix
Doc Text:
Previously, when switched to full-screen, multiple monitor displays in both client and guest appeared to have the same resolution, even though the monitors were different. With this update, monitors display resolution according to their capacity
Clone Of:
Environment:
Last Closed: 2013-03-26 10:12:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0684 0 normal SHIPPED_LIVE virt-viewer bug fix update 2013-03-26 14:12:06 UTC

Description Jiri Pallich 2013-03-06 14:24:47 UTC
This bug has been copied from bug #886570 and has been proposed
to be backported to 6.4 z-stream (EUS).

Comment 6 Geyang Kong 2013-03-15 09:51:59 UTC
Verified fail with following build:

virt-viewer-0.5.2-18.el6_4.1.x86_64
spice-glib-0.14-7.el6.x86_64
spice-vdagent-0.12.0-4.el6_4.1.x86_64(both host and guest)
spice-server-0.12.0-12.el6.x86_64
spice-gtk-0.14-7.el6.x86_64
spice-gtk-python-0.14-7.el6.x86_64
kernel-2.6.32-358.2.1.el6.x86_64(both host and guest)
qemu-kvm-0.12.1.2-2.356.el6_4.2.x86_64

Common steps:
1. Prepared a machine with 2 physical monitors with different resolutions.
2. Install a spice guest and update spice-vdagent and kernel

Specific Steps:

Scenario I
3. Connect to guest with virt-viewer.
4. Click view->displays->display2 to enable 2nd display.
5. Click view->full screen.(normally, this step will be OK)
6. Leave full screen and disable 2nd display.
7. Resize form of display 1 to make it change resolution.
8. Re-enable display 2.
9. Go to full screen.
10. Repeat 4-9 several times.

Result of scenario I:
1. Over 10%, 2 displays will have same resolution

Scenario II
3. Connect to guest with virt-viewer.
4. Click view->displays->display2 to enable 2nd display.
5. Click view->full screen.(normally, this step will be OK)
6. In guest, click System->Preferences->Display
7. Do nothing, just click apply and then choose keep this configuration.
8. Close virt-viewer.
9. Reconnect to the guest.
10. Go to full-screen

Result of scenario I:
1. At least 70%, 2 displays will have same resolution

So change status to ASSIGNED

Comment 7 Hans de Goede 2013-03-15 13:32:30 UTC
Hi,

Can you try again please, and this time make sure that the window for the 2nd monitor is completely on the second monitor before you go fullscreen?

Note you will need to re-do this every time before you go fullscreen as the window-manager may place
it somewhere else.

Thanks,

Hans

Comment 8 Geyang Kong 2013-03-18 02:42:39 UTC
I tried this bug again and found something different. List steps here

Common steps:
1. Got a machine with 2 physical monitors, 1st is 1280x1024, 2nd is 1920X1080
2. Start the guest and connect to it through virt-viewer
3. Start 2nd console.
4. Drag 2nd form to 2nd(1920X1080) monitor, leave 1st form on 1st(1280X1024) one
5. Go to full screen. (Everything is OK for now)
6. In guest, click System->Preferences->Display
7. Do nothing, just click apply and then choose keep this configuration.
8. Close virt-viewer.
9. Reconnect to the guest.

After step 9, window-manager will place 1st form on 2nd(1920X1080) monitor, 2nd form on 1st(1280X1024) monitor.

Specific steps:

Scenario I:
10. Do nothing, just go to full-screen.
Result of scenario I:
1. Bug will reappear, 2 forms are placed on 2 monitors in full screen mode. But all have 1920X1080 resolution.

Scenario II:
10. Drag 2nd form to 2nd(1920X1080) monitor, 1st form to 1st(1280X1024) monitor.
11. Go to full-screen.
Result of scenario II:
1. Everything is OK.

Comment 9 Hans de Goede 2013-03-19 12:05:15 UTC
(In reply to comment #8)

<snip>

> After step 9, window-manager will place 1st form on 2nd(1920X1080) monitor,
> 2nd form on 1st(1280X1024) monitor.

Ultimately windows get placed by the window-manager, we tell it to restore the original window coordinates when leaving fullscreen, but it is free to ignore this :|

> Scenario I:
> 10. Do nothing, just go to full-screen.
> Result of scenario I:
> 1. Bug will reappear, 2 forms are placed on 2 monitors in full screen mode.
> But all have 1920X1080 resolution.
> 
> Scenario II:
> 10. Drag 2nd form to 2nd(1920X1080) monitor, 1st form to 1st(1280X1024)
> monitor.
> 11. Go to full-screen.
> Result of scenario II:
> 1. Everything is OK.

Ok, this confirms what I already was afraid of, when we go fullscreen we move window 1 to monitor 1, window 2 to monitor 2, etc. Then when we get a configure event we query the monitor the window is on, and apparently sometimes we get the configure event before the window has actually been moved to the right monitor.

So what you're seeing now really is another (related bug). Before the fixed build we would always use the resolution of the 1st monitor for all guest-monitors, now we do the right thing, but sometimes we hit this race...

I've tried to reproduce the with the latest spice-gtk + remote-viewer on F-18, and I could not reproduce it there. So this is likely gtk2 and/or metacity specific. I'll try to reproduce it with a RHEL-6 client machine next.

I already have an idea how to fix this, but being able to reproduce myself would certainly be helpful to fixing this.

Comment 11 Hans de Goede 2013-03-20 16:18:05 UTC
I can reproduce the new problem with the sizes sometimes still being wrong under 6.4, and have written a patchset fixing this. This patchset is included in virt-viewer-0.5.2-18.el6_4.2 -> MODIFIED.

Comment 13 Geyang Kong 2013-03-21 03:09:29 UTC
Verified pass with following build:
virt-viewer-0.5.2-18.el6_4.1.x86_64

Steps:
Same as comment 8

Actual result:
Virt-viewer could always work well, both screen have their own resolutions.

So mark this bug as VERIFIED.

Comment 14 Geyang Kong 2013-03-21 04:44:18 UTC
(In reply to comment #13)
> Verified pass with following build:
> virt-viewer-0.5.2-18.el6_4.1.x86_64
> 
> Steps:
> Same as comment 8
> 
> Actual result:
> Virt-viewer could always work well, both screen have their own resolutions.
> 
> So mark this bug as VERIFIED.

Sorry, something wrong, build number should be virt-viewer-0.5.2-18.el6_4.2.x86_64

Comment 16 errata-xmlrpc 2013-03-26 10:12:28 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-2013-0684.html

Comment 17 Marc-Andre Lureau 2013-05-22 18:07:04 UTC
argh, those patches break --full-screen=auto-conf,

with the new version the windows end up on the first monitor. There is plenty of warnings/critical, so I guess it is related. All work fine with upstream virt-viewer though...


Note You need to log in before you can comment on or make changes to this bug.