OSDN Git Service

DisplayManagerService: disable display blanking on suspend
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 1 Aug 2017 09:10:43 +0000 (17:10 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 1 Aug 2017 09:10:43 +0000 (17:10 +0800)
A workaround for black screen that SurfaceFlinger never recovers from.
The kernel does this anyway.

Re-worked from the original kitkat-x86 patch of Kyle Evans.

services/core/java/com/android/server/display/DisplayManagerService.java

index 9c762cc..5a918e6 100644 (file)
@@ -372,7 +372,6 @@ public final class DisplayManagerService extends SystemService {
                             + ", brightness=" + brightness + ")");
                     mGlobalDisplayState = state;
                     mGlobalDisplayBrightness = brightness;
-                    applyGlobalDisplayStateLocked(mTempDisplayStateWorkQueue);
                 }
 
                 // Setting the display power state can take hundreds of milliseconds