mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sapphire
synced 2026-01-27 14:25:57 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user