Red Hat Bugzilla – Bug 991385
Issue on multi-monitor machine when change the resolution higher than monitor native resolution
Last modified: 2014-10-07 04:56:16 EDT
Created attachment 781920 [details]
The screenshot for the wrong size and wong resolution
Description of problem:
Connect the guset with virt-viewer(check on the "Automatically resize"), and change it's resolution higher than monitor native resolution, there is an offset between mouse pointer and actually displayed cursor.
And the resolution is abnormal, resolution of each display is not the one you set in the "Display preference", can check this in the attachment. One of the display will change to a small size.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Prepare a machine with two physical monitors.
2.Create a rhel guest with spice+qxl+spicevmc, install spice-vdagent in it, configure it to two displays.
3.# virt-viewer $guest , check on the "Automatically resize", and type 'f11' to change to fullscreen.
4.Make sure can see the two displays of guest are full-screen on each monitor.
5.Change the resolution to 2000*2000(try this sevral times).
6.Click the mouse, and do some drag operation one the desktop.
7.Check the resolution.
As the description.
There should not be an offset between mouse pointer and actually displayed cursor.
Can set the resolution successfully, and the size of the display should be normal.
More likely an agent/guest issue, moving there for investigation.
Please provide the vdagent and SPICE_DEBUG=1 client logs.
Created attachment 786756 [details]
spice-vdagent log file
BTW, I reproduce this, and there is no need to check on the "Automatically resize".
Created attachment 786757 [details]
virt-viewer log file with SPICE_DEBUG=1
(In reply to Marc-Andre Lureau from comment #2)
> More likely an agent/guest issue, moving there for investigation.
Erm, how can this be an agent issue, the agent does not know about the client monitors native resolution, only the client does, changing back to virt-viewer.
Note that the attempt to change the guest to the higher resolution fails, from the attached agent log:
Aug 13 22:21:47.461203 spice-vdagent: warning: Ignoring previous failed client monitor config
Aug 13 22:22:27.496184 spice-vdagent: err: XRRSetScreenSize failed, not enough mem?
Aug 13 22:22:27.496215 spice-vdagent: warning: Restoring previous config
Aug 13 22:22:27.670801 spice-vdagent: err: XRRSetScreenSize failed, not enough mem?
Aug 13 22:22:29.504298 spice-vdagent: err: XRRSetScreenSize failed, not enough mem?
Aug 13 22:22:29.504329 spice-vdagent: warning: Restoring previous config
Aug 13 22:22:29.726408 spice-vdagent: err: XRRSetScreenSize failed, not enough mem?
(In reply to CongDong from comment #4)
> Created attachment 786757 [details]
> virt-viewer log file with SPICE_DEBUG=1
there is no spice debugging there, please get the log with SPICE_DEBUG=1 (and G_MESSAGES_DEBUG=GSpice if running with a recent glib version) thanks
Created attachment 787125 [details]
Sorry add the wrong log file last time.
As I said in comment3, there is no need to check on the "Automatically resize", So I tried again, I found there is no log in "spice-vdagentd.log".
BTW, the offset of mouse disappeared, but the resolution is still wrong.
I don't see any problem with the client then.
Moving to qxl side, hopefully someone can explain what should be the memory configuration to avoid the "XRRSetScreenSize failed, not enough mem?".
I am also a bit confused by what is the correct way to configure the qxl devices, and why it's not working by default in some situations.
it's tempting to close as duplicate of bug 1076728
Can you still reproduce this issue? I can't reach this cursor offset bug.
To reach higher resolution, bug 1053039 provides a mean to configure the maximum framebuffer size.
not reproducible so far, moving to 6.7
After I update the xorg-x11-drv-qxl, I cannot reproduce this, I think this problem is fixed.