summaryrefslogtreecommitdiff
path: root/src/i830_lvds.c
diff options
context:
space:
mode:
authorNian Wu <nian.wu@intel.com>2007-03-23 17:00:12 +0800
committerNian Wu <nian.wu@intel.com>2007-03-23 17:00:12 +0800
commitd874aa31599da4777438cc51469afe9b66601f55 (patch)
tree159f14857bd54a26ddbf5ddc72b2c7b161537d26 /src/i830_lvds.c
parent94dbc3725358d63fe0ac8e6749489c993d24ede2 (diff)
parent26f32ef680a19e63af4b7c8c84141fe32263f298 (diff)
Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
Diffstat (limited to 'src/i830_lvds.c')
-rw-r--r--src/i830_lvds.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 2ad52a75..eb533a79 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -339,8 +339,8 @@ i830_lvds_create_resources(xf86OutputPtr output)
/* Set the current value of the backlight property */
data = pI830->backlight_duty_cycle;
err = RRChangeOutputProperty(output->randr_output, backlight_atom,
- XA_INTEGER, 32, PropModeReplace, 4, &data,
- FALSE);
+ XA_INTEGER, 32, PropModeReplace, 1, &data,
+ FALSE, TRUE);
if (err != 0) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"RRChangeOutputProperty error, %d\n", err);
@@ -370,8 +370,11 @@ i830_lvds_set_property(xf86OutputPtr output, Atom property,
if (val < 0 || val > i830_lvds_get_max_backlight(pScrn))
return FALSE;
- i830_lvds_set_backlight(pScrn, val);
- pI830->backlight_duty_cycle = val;
+ if (val != pI830->backlight_duty_cycle)
+ {
+ i830_lvds_set_backlight(pScrn, val);
+ pI830->backlight_duty_cycle = val;
+ }
return TRUE;
}