From e20d70740a846f66a64d4529d01a843c0c33c0b3 Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Mon, 29 Jan 2018 17:08:32 +1100 Subject: [PATCH] universal7885: switch to using AOD DT2W Samsung touchscreens support using double-tap to wake to trigger always on display. Implement support for the sysfs API used to en/disable this. Note that this requires a kernel change to send KEY_POWER on the dt2w event instead of KEY_BLACK_UI_GESTURE - e.g. https://github.com/fourkbomb/android_kernel_samsung_universal7880/commit/b783d5e0fdcfce9dc45cf3759b509f775f4a51fe [Linux4: This makes DT2W work on full screen instead of only lower half] Change-Id: I80898c8810216a90cc11b4e8b0f12a1918cd17a3 Signed-off-by: roynatech2544 --- universal7885-common/configs/power/powerhint.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/universal7885-common/configs/power/powerhint.json b/universal7885-common/configs/power/powerhint.json index 220f30f..03e8ef0 100644 --- a/universal7885-common/configs/power/powerhint.json +++ b/universal7885-common/configs/power/powerhint.json @@ -43,8 +43,8 @@ "Name": "DoubleTapToWakeEnable", "Path": "/sys/class/sec/tsp/cmd", "Values": [ - "aot_enable,0", - "aot_enable,1" + "aod_enable,0", + "set_aod_rect,720,1560,0,0", ], "DefaultIndex": 0, "ResetOnInit": false @@ -113,7 +113,7 @@ "PowerHint": "DOUBLE_TAP_TO_WAKE", "Node": "DoubleTapToWakeEnable", "Duration": 0, - "Value": "aot_enable,1" + "Value": "set_aod_rect,720,1560,0,0" }, { "PowerHint": "AUDIO_STREAMING_LOW_LATENCY",