diff --git a/src/via_fp.c b/src/via_fp.c index a9d1930..82e0ab2 100644 --- a/src/via_fp.c +++ b/src/via_fp.c @@ -1174,10 +1174,23 @@ via_fp_detect(xf86OutputPtr output) "panel, but will obtain flat panel " "information from scratch pad register.\n"); - /* For FP without I2C bus connection, CRTC scratch pad - * register supplied by the VGA BIOS is the only method - * available to figure out the FP native screen resolution. */ - viaFPGetFPInfoScratchPad(output); + if (pVIADisplay->isHP2133) { + pVIAFP->NativeWidth = 1024; + pVIAFP->NativeHeight = 600; + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, + "Special detection of HP 2133 Mini-Note " + "1024 x 600 screen resolution flat " + "panel.\n"); + } else { + /* + * For FP without I2C bus connection, CRTC scratch pad + * register supplied by the VGA BIOS is the only method + * available to figure out the FP native screen + * resolution. + */ + viaFPGetFPInfoScratchPad(output); + } + status = XF86OutputStatusConnected; } } else { diff --git a/src/via_ums.c b/src/via_ums.c index 533106f..0e0e9f0 100644 --- a/src/via_ums.c +++ b/src/via_ums.c @@ -957,6 +957,21 @@ umsPreInit(ScrnInfoPtr pScrn) VIAPtr pVia = VIAPTR(pScrn); VIADisplayPtr pVIADisplay = pVia->pVIADisplay; + /* + * Some models of HP 2133 Mini-Note come with a + * 1024 x 600 FP that does not support EDID. Other models + * come with a 1280 x 768 FP with EDID support. This + * special flag register is used to support the 1024 x 600 FP. + */ + if ((pVia->Chipset == VIA_P4M900) && + (SUBVENDOR_ID(pVia->PciInfo) == 0x103c) && + (SUBSYS_ID(pVia->PciInfo) == 0x3030)) { + + pVIADisplay->isHP2133 = TRUE; + } else { + pVIADisplay->isHP2133 = FALSE; + } + /* Checking for VIA Technologies NanoBook reference design. Examples include Everex CloudBook and Sylvania g netbook. It is also called FIC CE260 and CE261 by its ODM (Original diff --git a/src/via_ums.h b/src/via_ums.h index 6286983..efd0247 100644 --- a/src/via_ums.h +++ b/src/via_ums.h @@ -208,6 +208,11 @@ typedef struct _VIADISPLAY { I2CBusPtr pI2CBus2; I2CBusPtr pI2CBus3; + /* + * HP 2133 Mini-Note + */ + Bool isHP2133; + /* VIA Technologies NanoBook reference design. * Examples include Everex CloudBook and Sylvania g netbook. * It is also called FIC CE260 and CE261 by its ODM (Original