summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drmmode_display.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 24c76591..47dfc6a8 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1084,10 +1084,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;
}