From 29e629c82e46346eb3aa190b67d759751ac7610f Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 17 Feb 2005 16:51:35 +0000 Subject: [PATCH] shutdown panel DPMS for laptops: I don't like the looks of that!. Confirmed DPMS working OK for all DVI panels though. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11406 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_crtc.c | 4 ++-- src/add-ons/accelerants/nvidia/engine/nv_crtc2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c index fefd94e48e..dd76dd799b 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc.c @@ -493,7 +493,7 @@ status_t nv_crtc_dpms(bool display, bool h, bool v) /* end synchronous reset because display should be enabled */ SEQW(RESET, 0x03); - if (si->ps.tmds1_active) + if (si->ps.tmds1_active && !si->ps.laptop) { /* restore original panelsync and panel-enable */ uint32 panelsync = 0x00000000; @@ -523,7 +523,7 @@ status_t nv_crtc_dpms(bool display, bool h, bool v) /* turn screen off */ SEQW(CLKMODE, (temp | 0x20)); - if (si->ps.tmds1_active) + if (si->ps.tmds1_active && !si->ps.laptop) { /* shutoff panelsync and disable panel */ DACW(FP_TG_CTRL, ((DACR(FP_TG_CTRL) & 0xcfffffcc) | 0x20000022)); diff --git a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c index 75637aa220..2597176061 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_crtc2.c @@ -476,7 +476,7 @@ status_t nv_crtc2_dpms(bool display, bool h, bool v) /* end synchronous reset because display should be enabled */ SEQW(RESET, 0x03); - if (si->ps.tmds2_active) + if (si->ps.tmds2_active && !si->ps.laptop) { /* restore original panelsync and panel-enable */ uint32 panelsync = 0x00000000; @@ -506,7 +506,7 @@ status_t nv_crtc2_dpms(bool display, bool h, bool v) /* turn screen off */ SEQW(CLKMODE, (temp | 0x20)); - if (si->ps.tmds2_active) + if (si->ps.tmds2_active && !si->ps.laptop) { /* shutoff panelsync and disable panel */ DAC2W(FP_TG_CTRL, ((DAC2R(FP_TG_CTRL) & 0xcfffffcc) | 0x20000022));