powerHAL: changes the command for reducing the refresh rate when the
device is in low power mode according to the newer framwork
implementation for the same.
Change-Id: I0c76ffe400e09ea7b76cf5575d70ac5ea09b6d1f
Signed-of-by: Ruchi Kandoi<kandoiruchi@google.com>
diff --git a/power/power_manta.c b/power/power_manta.c
index 330e3d4..1d3e72d 100644
--- a/power/power_manta.c
+++ b/power/power_manta.c
@@ -255,11 +255,11 @@
if (data) {
sysfs_write(CPU_MAX_FREQ_PATH, LOW_POWER_MAX_FREQ);
// reduces the refresh rate
- system("service call SurfaceFlinger 1016");
+ system("service call SurfaceFlinger 1016 i32 1");
} else {
sysfs_write(CPU_MAX_FREQ_PATH, NORMAL_MAX_FREQ);
// restores the refresh rate
- system("service call SurfaceFlinger 1017");
+ system("service call SurfaceFlinger 1016 i32 0");
}
low_power_mode = data;
pthread_mutex_unlock(&manta->lock);