Patchwork Xorg configuration change default resolution

login
register
mail settings
Submitter Alexandru DAMIAN
Date March 13, 2013, 4:30 p.m.
Message ID <1363192208-29115-1-git-send-email-alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/46153/
State New
Headers show

Comments

Alexandru DAMIAN - March 13, 2013, 4:30 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

This is a workaround for the starts-to-magenta problem
when starting Xorg-based images in QEMUX86 and X86_64.

The root cause is that the Qemu vmware vga driver
doesn't pick up a pixel depth change without a resolution
change.

So a resolution change from the console 640x480 is forced,
moving the Xorg screen to 800x600. Xrandr works correctly
afterwards, so a manual revert to 640x480 is possible.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 .../xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf            |    2 +-
 .../xorg-xserver/xserver-xf86-config/qemux86/xorg.conf               |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf
index 10a6d9a..67600d9 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86-64/xorg.conf
@@ -55,7 +55,7 @@  Section "Screen"
     Device        "Graphics Controller"
     Monitor        "Generic Monitor"
     SubSection "Display"
-        Modes     "640x480"
+        Modes     "800x600" "640x480"
     EndSubSection
 EndSection
 
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
index 10a6d9a..67600d9 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemux86/xorg.conf
@@ -55,7 +55,7 @@  Section "Screen"
     Device        "Graphics Controller"
     Monitor        "Generic Monitor"
     SubSection "Display"
-        Modes     "640x480"
+        Modes     "800x600" "640x480"
     EndSubSection
 EndSection