From 6ea9de413c0c7c79b4dd3ba717f0da7232ac9bf4 Mon Sep 17 00:00:00 2001 From: Kelly Rossmoyer Date: Thu, 27 Jul 2023 22:06:17 +0000 Subject: [PATCH] suspend: 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. Bug: 208947015 Test: booted with a test kernel and used alarmtimer mods to exercise high-frequency wakeup behavior Change-Id: Icf75c4dd705050833df5e48aaf0c28afa5754adb --- device.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 7df414b6..1ff947aa 100644 --- a/device.mk +++ b/device.mk @@ -1112,7 +1112,9 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Suspend properties PRODUCT_PROPERTY_OVERRIDES += \ - suspend.short_suspend_threshold_millis=2000 + suspend.short_suspend_threshold_millis=2000 \ + suspend.max_sleep_time_millis=40000 \ + suspend.short_suspend_backoff_enabled=true # Enable Incremental on the device PRODUCT_PROPERTY_OVERRIDES += \