From ac7cf04563456d166c6addef20f95303f334ca85 Mon Sep 17 00:00:00 2001 From: Georg Veichtlbauer Date: Tue, 30 Jan 2024 09:29:36 +0100 Subject: [PATCH] sdm710-common: powerhint: Add DT2W Change-Id: I7d0dfe249798864a39afd4f339b692584faaf3ec --- BoardConfigCommon.mk | 3 --- configs/powerhint.json | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 603235d..64a2a3a 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -120,9 +120,6 @@ BOARD_VENDOR := xiaomi BOARD_USES_QCOM_HARDWARE := true TARGET_BOARD_PLATFORM := sdm710 -# Power -TARGET_TAP_TO_WAKE_NODE := "/sys/touchpanel/double_tap" - # Properties TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop diff --git a/configs/powerhint.json b/configs/powerhint.json index 0d4f4d6..d735303 100644 --- a/configs/powerhint.json +++ b/configs/powerhint.json @@ -235,6 +235,16 @@ "" ], "Type": "Property" + }, + { + "Name": "DoubleTapToWake", + "Path": "/sys/touchpanel/double_tap", + "Values": [ + "0", + "1" + ], + "DefaultIndex": 0, + "ResetOnInit": true } ], "Actions": [ @@ -609,6 +619,12 @@ "Node": "PMQoSCpuDmaLatency", "Duration": 2000, "Value": "2c" + }, + { + "PowerHint": "DOUBLE_TAP_TO_WAKE", + "Node": "DoubleTapToWake", + "Duration": 0, + "Value": "1" } ] }