From cc265c1482e8e7748cdb06bf0962f4475d789802 Mon Sep 17 00:00:00 2001 From: X512 Date: Tue, 22 Jun 2021 01:39:10 +0900 Subject: [PATCH] app_server: turn on screen on start Screen may be turned off if video card is not supported by firmware and boot loader. Change-Id: Ie60fc00da281ec3781084dd97466a68b885fde7b Reviewed-on: https://review.haiku-os.org/c/haiku/+/4114 Tested-by: Commit checker robot Reviewed-by: Adrien Destugues --- src/servers/app/VirtualScreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/servers/app/VirtualScreen.cpp b/src/servers/app/VirtualScreen.cpp index 94a9e1e1f2..eb1fcecb5b 100644 --- a/src/servers/app/VirtualScreen.cpp +++ b/src/servers/app/VirtualScreen.cpp @@ -136,6 +136,10 @@ VirtualScreen::AddScreen(Screen* screen, ScreenConfigurations& configurations) } } + // Turn on screen if this is not yet done by BIOS + if (status == B_OK) + screen->HWInterface()->SetDPMSMode(B_DPMS_ON); + // TODO: this works only for single screen configurations fDrawingEngine = screen->GetDrawingEngine(); fHWInterface = screen->HWInterface();