uxa: Always treat DPMSModeSuspend/Standby similar to DPMSModeOff

As we assume that Suspend, Standby alias to Off and disable the crtc
when switching to any mode other than On, we need to also perform the
backlight updates for Suspend,Standby prior to passing the DPMS value
onto the kernel.

Suggested-by: Alexander Monakov <amonakov@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-01-06 14:30:56 +00:00
parent 28a057105b
commit 82fa7ec352
1 changed files with 2 additions and 2 deletions

View File

@ -1118,7 +1118,7 @@ intel_output_dpms(xf86OutputPtr output, int dpms)
if (!strcmp(props->name, "DPMS")) {
/* Make sure to reverse the order between on and off. */
if (dpms == DPMSModeOff)
if (dpms != DPMSModeOn)
intel_output_dpms_backlight(output,
intel_output->dpms_mode,
dpms);
@ -1129,7 +1129,7 @@ intel_output_dpms(xf86OutputPtr output, int dpms)
props->prop_id,
dpms);
if (dpms != DPMSModeOff)
if (dpms == DPMSModeOn)
intel_output_dpms_backlight(output,
intel_output->dpms_mode,
dpms);