From 371e5f7222b7e77d16addcf124761aab68e6cfa5 Mon Sep 17 00:00:00 2001 From: Kelly Rossmoyer Date: Wed, 7 Jun 2023 19:25:38 +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 shipped (and remains active) on gs101-based devices. Experimentation with these settings is being tracked on the bug, and this CL is being prepared now so we can start to soak in dogfood and observe the real-world behavior. Bug: 284766768 Test: booted with a test kernel and used alarmtimer mods to exercise high-frequency wakeup behavior Change-Id: Ia0fd3b08058390ea9e70926455c7c6d460320d8a --- device.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index a2dd7b2a..eede3596 100644 --- a/device.mk +++ b/device.mk @@ -1091,7 +1091,9 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Suspend properties PRODUCT_PROPERTY_OVERRIDES += \ - suspend.short_suspend_threshold_millis=5000 + 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 += \