Created
July 4, 2014 14:44
-
-
Save tiagovignatti/23bb659d3a59029cdc23 to your computer and use it in GitHub Desktop.
hack for starting secondary display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 3c1bdd234926334b36f68a2a522044eee5a80066 | |
Author: Tiago Vignatti <tiago.vignatti@intel.com> | |
Date: Thu Jul 3 16:32:09 2014 -0300 | |
hack for starting secondary display | |
diff --git a/ui/ozone/platform/dri/screen_manager.cc b/ui/ozone/platform/dri/screen_manager.cc | |
index ada162d..6fbf94c 100644 | |
--- a/ui/ozone/platform/dri/screen_manager.cc | |
+++ b/ui/ozone/platform/dri/screen_manager.cc | |
@@ -120,15 +120,15 @@ void ScreenManager::ForceInitializationOfPrimaryDisplay() { | |
CHECK_NE(0u, displays.size()); | |
ScopedDrmPropertyPtr dpms( | |
- dri_->GetProperty(displays[0]->connector(), "DPMS")); | |
+ dri_->GetProperty(displays[1]->connector(), "DPMS")); | |
if (dpms) | |
- dri_->SetProperty(displays[0]->connector()->connector_id, | |
+ dri_->SetProperty(displays[1]->connector()->connector_id, | |
dpms->prop_id, | |
DRM_MODE_DPMS_ON); | |
- ConfigureDisplayController(displays[0]->crtc()->crtc_id, | |
- displays[0]->connector()->connector_id, | |
- displays[0]->connector()->modes[0]); | |
+ ConfigureDisplayController(displays[1]->crtc()->crtc_id, | |
+ displays[1]->connector()->connector_id, | |
+ displays[1]->connector()->modes[0]); | |
} | |
} // namespace ui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment