From beb3273e9bd40fb6cb74dc8fa09e899d04207f46 Mon Sep 17 00:00:00 2001 From: Luofan Chen Date: Sun, 27 Aug 2023 00:52:15 +0800 Subject: [PATCH] sm8550-common: power: Use correct node for dt2w Change-Id: If4237095d7f06aae0b83e896511d17fc0d00cdd9 --- power/power-mode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/power/power-mode.cpp b/power/power-mode.cpp index 09b98ad..449f38d 100644 --- a/power/power-mode.cpp +++ b/power/power-mode.cpp @@ -39,8 +39,8 @@ bool isDeviceSpecificModeSupported(Mode type, bool* _aidl_return) { bool setDeviceSpecificMode(Mode type, bool enabled) { switch (type) { case Mode::DOUBLE_TAP_TO_WAKE: - ::android::base::WriteStringToFile(enabled ? "sod_enable,1" : "sod_enable,0", - "/sys/devices/virtual/sec/tsp/cmd"); + ::android::base::WriteStringToFile(enabled ? "1" : "0", + "/sys/devices/virtual/input/lxs_ts_input/enable_knock"); ::android::base::WriteStringToFile(enabled ? "1" : "0", "/sys/devices/dsi_panel_driver/pre_sod_mode"); return true; @@ -53,4 +53,4 @@ bool setDeviceSpecificMode(Mode type, bool enabled) { } // namespace power } // namespace hardware } // namespace android -} // namespace aidl \ No newline at end of file +} // namespace aidl