diff options
-rw-r--r-- | src/i830_lvds.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c index 3d3208e4..03f8a321 100644 --- a/src/i830_lvds.c +++ b/src/i830_lvds.c @@ -183,9 +183,14 @@ i830_lvds_get_backlight_native(xf86OutputPtr output) { ScrnInfoPtr scrn = output->scrn; intel_screen_private *intel = intel_get_screen_private(scrn); - uint32_t blc_pwm_ctl; + uint32_t blc_pwm_ctl, reg; - blc_pwm_ctl = INREG(BLC_PWM_CTL); + if (IS_IGDNG(intel)) + reg = BLC_PWM_CPU_CTL; + else + reg = BLC_PWM_CTL; + + blc_pwm_ctl = INREG(reg); blc_pwm_ctl &= BACKLIGHT_DUTY_CYCLE_MASK; return blc_pwm_ctl; } |