[PATCH xf86-video-mga] enables resolutions greater than 1280x1024 on G200eW Nuvoton

Samir Ibradžić sibradzic at gmail.com
Tue Jan 17 07:25:57 PST 2012


Looks like G200eW is artificially limited to 1280x1024 resolution, even 
though i could set 1600x1200 by VBE tool (GRUB2). I was motivated by 
some guy who managed to enable higher resolutions in Windows 
to try the same thing in xf86-video-mga, and i can confirm everything 
works without problems. Confirmed working on Supermicro H8SCM-F @ 
1680x1050 & 1920x1080, on:

Arch, Linux myhost 3.1.7-1-ARCH #1 SMP PREEMPT Wed Jan 4 08:11:16 CET 
2012 x86_64 AMD Opteron(tm) Processor 4170 HE AuthenticAMD GNU/Linux, 
X.Org X Server 1.11.3,
Ubuntu Precise 12.04, Linux H8SCM-HV 3.2.0-8-generic #14-Ubuntu SMP Fri 
Jan 6 01:56:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
X.Org X Server 1.10.4

Tested-by: Samir Ibradžić <sibradzic at gmail.com>

I dont have a monitor that can go higher than 1920x1080, but most likely 
resolutions up to 2048x1536 would work, making it equivalent to G200 ER 
SH7757, at least when it comes to supported resolutions. Can someone 
test these higher resolutions?

Signed-off-by: Samir Ibradžić <sibradzic at gmail.com>
  src/mga_driver.c |    6 +-----
  1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/mga_driver.c b/src/mga_driver.c
index 00469e7..cbe17df 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -3876,11 +3876,7 @@ MGAValidMode(int scrnIndex, DisplayModePtr mode, 
Bool verbose, int flags)
      } else if (pMga->is_G200WB){
          if (mode->Flags & V_DBLSCAN)
              return MODE_NO_DBLESCAN;
-	if (pMga->KVM && mode->HDisplay > 1280)
-	    return MODE_VIRTUAL_X;
-	if (pMga->KVM && mode->VDisplay > 1024)
-	    return MODE_VIRTUAL_Y;
-	if (xf86ModeBandwidth(mode, pScrn->bitsPerPixel) > 318.77)
+	if (xf86ModeBandwidth(mode, pScrn->bitsPerPixel) > 550)
  	    return MODE_BANDWIDTH;
      } else if (pMga->is_G200EV
  	       && (xf86ModeBandwidth(mode, pScrn->bitsPerPixel) > 327)) {

More information about the xorg-devel mailing list