I tried XFree86 4.2.99.2 with RADEON_VE and a dvi flat panel.
When I typed "xset dpms force off", the screen became black
but the flat panel didn't go to power-save mode.

With the following patch for
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c ,
my flat panel(DisplayType is MT_DFP) goes to power-save mode and
back-light seems to turn off.

I'm not sure this patch is correct. And it doesn't work when
DisplayType is MT_LCD (laptop?). So I would like developers to check
my patch and update codes in CVS repository for both LCD and DFP.

---
NABEYA Kenichi

*** radeon_driver.c     Wed Oct 16 13:53:15 2002
--- radeon_driver.c.new Sun Oct 27 01:01:29 2002
***************
*** 5493,5496 ****
--- 5493,5508 ----
        }
        break;
      }
+     if (info->DisplayType == MT_DFP) {
+       switch (PowerManagementMode) {
+       case DPMSModeOn:
+       OUTREG(RADEON_FP_GEN_CNTL, INREG(RADEON_FP_GEN_CNTL) | (RADEON_FP_FPON | 
+RADEON_FP_TMDS_EN));
+       break;
+       case DPMSModeStandby:
+       case DPMSModeSuspend:
+       case DPMSModeOff:
+       OUTREG(RADEON_FP_GEN_CNTL, INREG(RADEON_FP_GEN_CNTL) & ~(RADEON_FP_FPON | 
+RADEON_FP_TMDS_EN));
+       break;
+       }
+     }
  }
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to