Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Unified Diff: ui/ozone/platform/dri/native_display_delegate_dri.cc

Issue 877213005: [Ozone-Dri] Set DPMS to off when disabling a display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/native_display_delegate_dri.cc
diff --git a/ui/ozone/platform/dri/native_display_delegate_dri.cc b/ui/ozone/platform/dri/native_display_delegate_dri.cc
index d1b853b4d5d944929ceb47d134720466980ad48c..fe567b774ec16f564c569ee279c8dffe7a5717f0 100644
--- a/ui/ozone/platform/dri/native_display_delegate_dri.cc
+++ b/ui/ozone/platform/dri/native_display_delegate_dri.cc
@@ -200,6 +200,11 @@ bool NativeDisplayDelegateDri::Configure(const DisplaySnapshot& output,
return false;
}
} 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())) {
VLOG(1) << "Failed to disable crtc=" << dri_output.crtc();
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698