summaryrefslogtreecommitdiff
path: root/src/nv_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r--src/nv_driver.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index c4449c6..54c4305 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -25,7 +25,7 @@
/* Hacked together from mga driver and 3.3.4 NVIDIA driver by Jarno Paananen
<jpaana@s2.org> */
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_driver.c,v 1.133 2005/04/16 23:57:26 mvojkovi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_driver.c,v 1.134 2005/04/24 18:57:35 mvojkovi Exp $ */
#include "nv_include.h"
@@ -1706,8 +1706,6 @@ NVRestore(ScrnInfoPtr pScrn)
static void NVBacklightEnable(NVPtr pNv, Bool on)
{
- CARD32 fpcontrol;
-
/* This is done differently on each laptop. Here we
define the ones we know for sure. */
@@ -1729,7 +1727,13 @@ static void NVBacklightEnable(NVPtr pNv, Bool on)
}
#endif
- if(!pNv->LVDS) {
+ if(pNv->LVDS) {
+ if(pNv->twoHeads && ((pNv->Chipset & 0x0ff0) != 0x0110)) {
+ pNv->PMC[0x130C/4] = on ? 3 : 7;
+ }
+ } else {
+ CARD32 fpcontrol;
+
fpcontrol = pNv->PRAMDAC[0x0848/4] & 0xCfffffCC;
/* cut the TMDS output */