From c80c7e348cbae5d6c1abc38aa2c1d6fbfa2032e1 Mon Sep 17 00:00:00 2001 From: Max Weffers Date: Thu, 10 Jan 2019 17:45:20 +0100 Subject: [PATCH] clover: dt2w: move double tap to wake to new node --- BoardConfig.mk | 2 +- rootdir/etc/init.device.rc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index f7843e2..60973a9 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -27,7 +27,7 @@ include device/xiaomi/sdm660-common/PlatformConfig.mk DEVICE_PATH := device/xiaomi/clover # DT2W -TARGET_TAP_TO_WAKE_NODE := "/sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode" +TARGET_TAP_TO_WAKE_NODE := "/proc/touchscreen/enable_dt2w" # Kernel TARGET_KERNEL_SOURCE := kernel/xiaomi/clover diff --git a/rootdir/etc/init.device.rc b/rootdir/etc/init.device.rc index b704eaf..cfa660c 100644 --- a/rootdir/etc/init.device.rc +++ b/rootdir/etc/init.device.rc @@ -52,8 +52,8 @@ on boot start macaddress_setup # Set permission for double tap to wake support - chown system system /sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode - chmod 0660 /sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gesture_mode + chmod 0660 /proc/touchscreen/enable_dt2w + chown system system /proc/touchscreen/enable_dt2w service macaddress_setup /vendor/bin/sh /vendor/bin/init.macaddress_setup.sh class main