Bug 890476

Summary: screen resolution is very large
Product: [Fedora] Fedora Reporter: Ken Dreyer <ktdreyer>
Component: xorg-x11-drv-qxlAssignee: Alon Levy <alevy>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, airlied, alevy, crobinso, dblechte, fmuellner, hdegoede, marcandre.lureau, otaylor, samkraju, sandmann, walters, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-31 14:34:07 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
list of package updates that triggers the bug none

Description Ken Dreyer 2012-12-27 07:46:59 UTC
Created attachment 669535 [details]
list of package updates that triggers the bug

Description of problem:
I updated my Rawhide VM recently, and the login screen and desktop are now huge. My VM previously had a 1024x768 resolution. It is now 2560x1600. My physical monitor is only 1280x1024 so the VM is quite hard to work with.

Version-Release number of selected component (if applicable):
Hypervisor is Fedora 17. VM is Fedora 19 (rawhide). I've narrowed down the list of packages that could be causing the issue and attached the list to this report. It seems GNOME 3.7.3 has the regression.

How reproducible:
Always

Steps to Reproduce:
1. Update GNOME packages in Rawhide to 3.7.3.
2. Reboot.
  
Actual results:
Login resolution is 2560x1600.

Expected results:
The resolution should not have changed as a result of this update. It should have remained at 1024x768.

Comment 1 Ken Dreyer 2013-01-03 02:34:03 UTC
This problem only occurs when I'm using the qxl model for my VM. When I switch to vga in virt-manager, Gnome (and X) stays at 1024x768.

Comment 2 Ken Dreyer 2013-01-03 17:30:19 UTC
After discussing with ajax in #fedora-devel, he helpfully pointed out that the problem is more closely related to qxl than to Gnome. Under qxl, X sets the resolution to 2560x1600, and Gnome 3.7.3 expands to fill all of this.

My workaround was to configure X manually. xorg.conf:

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Virtual    1024 768
        EndSubSection
EndSection

With this in place, GDM and my desktop are back to 1024x768.

Comment 3 Alon Levy 2013-01-07 16:41:35 UTC
So you want the vm resolution to default to 1024x768? That is fixable in the driver by providing a preferred mode. But it's also workaroundable like you did or by setting the resolution via gnome display settings. The problem is that there is currently no default and I guess gnome takes the largest available resolution unless another one is set (i.e. previously assigned using the control center - based on the card's EDID).

When the kms driver lands (in the future) there will be a preferred resolution set via the spice client (which requests a resolution fitting the window size the client has).

Marc-Andre, any ideas? (as more of a gnome guy then myself)

Alon

Comment 4 Ken Dreyer 2013-01-07 17:19:47 UTC
(In reply to comment #3)
> So you want the vm resolution to default to 1024x768? That is fixable in the
> driver by providing a preferred mode.

As I was searching around on this problem, I ran across comment 4 on bug 581841. Hans reports that qxl will "default to 1024x768 when no size is specified in xorg.conf". It's an old bug, and maybe things have changed since then, but it seems like that's a safe choice to me (at least until the client can communicate this information back, as you say).

Comment 5 Hans de Goede 2013-01-08 11:49:30 UTC
Hi Ken,

We start with a mode of 1024x768, and when the monitor modes get enumerated through
xrandr, we always add the current mode (which is 1024x768) as preferred mode, which we do
to avoid exactly the problem you are describing...

So to me this really feels like a gnome issue, where it picks the largest mode over the preffered
mode, which is clearly wrong. For example this would cause it to do 1920x1080 on my 720p TV,
causing the TV to downscale, rather then picking its native 1360x768 mode, etc.

2 questions before kicking this back to the gnome guys:
1) What does "rpm -q xorg-x11-drv-qxl" give as output?
2) After starting the vm, and it has switched to 2560x1600, can you do "xrandr --current" in a terminal and copy and paste the full output here?

Regards,

Hans

Comment 6 Fedora End Of Life 2013-04-03 13:37:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 7 Cole Robinson 2013-08-31 14:34:07 UTC
No response for months, closing