Forráskód Böngészése

sm8450-common: overlay: Decouple auto-suspend and interactive from display on/off

Without decoupling, PowerManagerService prevents system from going to
suspend when display is in AOD.

Bug: 123205093
Change-Id: Icb53a748c40bd7ae3dc8d87316d15a47e551d653
Adrian Salido 6 éve
szülő
commit
158eace9ca
1 módosított fájl, 39 hozzáadás és 0 törlés
  1. 39 0
      overlay/FrameworksResXiaomi/res/values/config.xml

+ 39 - 0
overlay/FrameworksResXiaomi/res/values/config.xml

@@ -368,4 +368,43 @@
         <item>500</item>
         <item>500</item>
     </integer-array>
+
+    <!-- Power Management: Specifies whether to decouple the auto-suspend state of the
+         device from the display on/off state.
+
+         When false, autosuspend_disable() will be called before the display is turned on
+         and autosuspend_enable() will be called after the display is turned off.
+         This mode provides best compatibility for devices using legacy power management
+         features such as early suspend / late resume.
+
+         When true, autosuspend_display() and autosuspend_enable() will be called
+         independently of whether the display is being turned on or off.  This mode
+         enables the power manager to suspend the application processor while the
+         display is on.
+
+         This resource should be set to "true" when a doze component has been specified
+         to maximize power savings but not all devices support it.
+
+         Refer to autosuspend.h for details.
+    -->
+    <bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
+
+    <!-- Power Management: Specifies whether to decouple the interactive state of the
+         device from the display on/off state.
+
+         When false, setInteractive(..., true) will be called before the display is turned on
+         and setInteractive(..., false) will be called after the display is turned off.
+         This mode provides best compatibility for devices that expect the interactive
+         state to be tied to the display state.
+
+         When true, setInteractive(...) will be called independently of whether the display
+         is being turned on or off.  This mode enables the power manager to reduce
+         clocks and disable the touch controller while the display is on.
+
+         This resource should be set to "true" when a doze component has been specified
+         to maximize power savings but not all devices support it.
+
+         Refer to power.h for details.
+    -->
+    <bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
 </resources>