Message ID | 1250615246-26111-2-git-send-email-mhopf@suse.de (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index f41b978..64b28ef 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1096,10 +1096,9 @@ drmmode_output_set_property(xf86OutputPtr output, Atom property, if (val < 0 || val > drmmode_output->backlight_max) return FALSE; - if (val != drmmode_output->backlight_active_level) { + if (drmmode_output->dpms_mode == DPMSModeOn) drmmode_backlight_set(output, val); - drmmode_output->backlight_active_level = val; - } + drmmode_output->backlight_active_level = val; return TRUE; }