OSDN Git Service

DisplayManagerService: disable display blanking on suspend
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 6 Oct 2015 16:10:46 +0000 (00:10 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 22 Dec 2015 04:13:54 +0000 (12:13 +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 09dc477..457d815 100644 (file)
@@ -330,7 +330,7 @@ public final class DisplayManagerService extends SystemService {
                 synchronized (mSyncRoot) {
                     if (mGlobalDisplayState != state) {
                         mGlobalDisplayState = state;
-                        updateGlobalDisplayStateLocked(mTempDisplayStateWorkQueue);
+//                      updateGlobalDisplayStateLocked(mTempDisplayStateWorkQueue);
                         scheduleTraversalLocked(false);
                     }
                 }