diff options
-rw-r--r-- | src/r128_driver.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c index 49c0d86..8874961 100644 --- a/src/r128_driver.c +++ b/src/r128_driver.c @@ -4523,6 +4523,18 @@ static void R128DisplayPowerManagementSet(ScrnInfoPtr pScrn, OUTREGP(R128_CRTC_EXT_CNTL, mask, ~mask); break; } + if(info->isDFP) { + switch (PowerManagementMode) { + case DPMSModeOn: + OUTREG(R128_FP_GEN_CNTL, INREG(R128_FP_GEN_CNTL) | (R128_FP_FPON | R128_FP_TDMS_EN)); + break; + case DPMSModeStandby: + case DPMSModeSuspend: + case DPMSModeOff: + OUTREG(R128_FP_GEN_CNTL, INREG(R128_FP_GEN_CNTL) & ~(R128_FP_FPON | R128_FP_TDMS_EN)); + break; + } + } } static int r128_set_backlight_enable(ScrnInfoPtr pScrn, int on); |