diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-06 14:30:56 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-06 14:39:07 +0000 |
commit | 82fa7ec352426c7e3d5210aac8ea1030232cc0f3 (patch) | |
tree | 21761a4f1fcee28c90964ae77d4f4c90c21a1dcd | |
parent | 28a057105b6974803aee0d68c2a71f322095dfde (diff) |
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>
-rw-r--r-- | src/uxa/intel_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c index f584f357..39d85071 100644 --- a/src/uxa/intel_display.c +++ b/src/uxa/intel_display.c @@ -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); |