From d987c60bc8b31228fbfbd7561fb1a58dab6f47da Mon Sep 17 00:00:00 2001 From: Georg Veichtlbauer Date: Fri, 26 Jul 2024 01:30:24 +0800 Subject: [PATCH] LG8n: powerhint: Add DT2W Signed-off-by: Shirayuki39 --- BoardConfig.mk | 2 +- configs/power/powerhint.json | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 3a7ca41..5820301 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -143,7 +143,7 @@ TARGET_BOARD_PLATFORM := mt6789 BOARD_HAS_MTK_HARDWARE := true # Power -TARGET_TAP_TO_WAKE_NODE := /proc/gesture_function +TARGET_TAP_TO_WAKE_NODE := TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp # Properties diff --git a/configs/power/powerhint.json b/configs/power/powerhint.json index 7c93b6f..2ce9910 100644 --- a/configs/power/powerhint.json +++ b/configs/power/powerhint.json @@ -185,6 +185,16 @@ "Path": "vendor.mediatek.powerhal.rendering", "Values": ["EXPENSIVE_RENDERING", ""], "Type": "Property" + }, + { + "Name": "DoubleTapToWake", + "Path": "/proc/gesture_function", + "Values": [ + "0", + "1" + ], + "DefaultIndex": 0, + "ResetOnInit": true } ], "Actions": [ @@ -325,6 +335,12 @@ "Node": "GPUBlockBoost", "Duration": 0, "Value": "50" + }, + { + "PowerHint": "DOUBLE_TAP_TO_WAKE", + "Node": "DoubleTapToWake", + "Duration": 0, + "Value": "1" } ] }