Commit 46c86066 authored by dnicoara's avatar dnicoara Committed by Commit bot

[Ozone-Dri] Set DPMS to off when disabling a display

Need to turn it off to reduce the power used by the display when idling.

BUG=chrome-os-partner:35458
TEST=Wait for the displays to turn off and check with 'modetest -c' that the DPMS state is off

Review URL: https://codereview.chromium.org/877213005

Cr-Commit-Position: refs/heads/master@{#315111}
parent 6340b5d5
...@@ -200,6 +200,11 @@ bool NativeDisplayDelegateDri::Configure(const DisplaySnapshot& output, ...@@ -200,6 +200,11 @@ bool NativeDisplayDelegateDri::Configure(const DisplaySnapshot& output,
return false; return false;
} }
} else { } else {
if (dri_output.dpms_property()) {
dri_->SetProperty(dri_output.connector(),
dri_output.dpms_property()->prop_id, DRM_MODE_DPMS_OFF);
}
if (!screen_manager_->DisableDisplayController(dri_output.crtc())) { if (!screen_manager_->DisableDisplayController(dri_output.crtc())) {
VLOG(1) << "Failed to disable crtc=" << dri_output.crtc(); VLOG(1) << "Failed to disable crtc=" << dri_output.crtc();
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment