From bdd913983f64b7def03ced859aaa93bbae8b5666 Mon Sep 17 00:00:00 2001 From: Kelly Rossmoyer Date: Thu, 27 Jul 2023 22:06:17 +0000 Subject: [PATCH] sapphire: enable adaptive suspend This CL adds build properties enabling Adaptive Suspend's short suspend backoff with a short suspend threshold of 2 seconds and a max backoff time of 40s. This is the same configuration that was deployed on the previous generation of devices. The plan is to monitor suspend behavior, screen-off uptime, wakeup rates, and the distribution of screen-off mA on these devices in comparison to those same attributes on late UDC builds, which will inform whether we ship or revert. from https://android.googlesource.com/device/google/gs201/+/refs/heads/main/device.mk#1114 Bug: 208947015 Test: booted with a test kernel and used alarmtimer mods to exercise high-frequency wakeup behavior Change-Id: Icf75c4dd705050833df5e48aaf0c28afa5754adb --- device.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/device.mk b/device.mk index 7d46dfd..089d221 100644 --- a/device.mk +++ b/device.mk @@ -499,6 +499,12 @@ PRODUCT_PACKAGES += \ librmnetctl \ libsqlite.vendor +# Suspend properties +PRODUCT_PROPERTY_OVERRIDES += \ + suspend.short_suspend_threshold_millis=2000 \ + suspend.max_sleep_time_millis=40000 \ + suspend.short_suspend_backoff_enabled=true + # Sensors PRODUCT_PACKAGES += \ sensors.xiaomi