Don't ignore backlight level change to the same level.

If set externally to a different level, this would result in a no-op.
OTOH if the display is switched off (DPMS) you do not want the change to take
place immediately, but rather to be saved and set later when the display is
active again.
This commit is contained in:
Matthias Hopf 2009-08-18 18:05:45 +02:00
parent fe7693c94a
commit c18fc7955d
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}