From 50932d16a41b45fc38f2e31e09193fee3ff8ebd4 Mon Sep 17 00:00:00 2001 From: Anand S Date: Thu, 19 Sep 2024 19:20:34 +0530 Subject: [PATCH] bangkk: Correct double tap and udfps nodes Change-Id: I323ffa5a0e4a33ee73005d12cdb3f919845b6bdb --- rootdir/etc/init/hw/init.mmi.overlay.rc | 9 ++++++--- sensors/Sensor.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/rootdir/etc/init/hw/init.mmi.overlay.rc b/rootdir/etc/init/hw/init.mmi.overlay.rc index 2206a1e..8572da6 100644 --- a/rootdir/etc/init/hw/init.mmi.overlay.rc +++ b/rootdir/etc/init/hw/init.mmi.overlay.rc @@ -4,6 +4,12 @@ import /vendor/etc/init/hw/init.nfc.sec.rc on post-fs chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq + + # Sensors + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled + chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed on post-fs-data @@ -80,9 +86,6 @@ on boot chown root input /sys/class/sensors/Moto\ CapSense\ Ch3/poll_delay chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/enable chown root input /sys/class/sensors/Moto\ CapSense\ Ch4/poll_delay - # Change ownership for touch gesture - chown root input /sys/class/sensors/dt-gesture/enable - chown root input /sys/class/sensors/dt-gesture/poll_delay # touch chown system system /sys/class/touchscreen/primary/interpolation chmod 0660 /sys/class/touchscreen/primary/interpolation diff --git a/sensors/Sensor.h b/sensors/Sensor.h index 4bc0676..f85a892 100644 --- a/sensors/Sensor.h +++ b/sensors/Sensor.h @@ -120,7 +120,7 @@ class SysfsPollingOneShotSensor : public OneShotSensor { int mPollFd; }; -const std::string kTsPath = "/sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/"; +const std::string kTsPath = "/sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/"; const std::string kTsDoubleTapPressedPath = kTsPath + "double_tap_pressed"; const std::string kTsDoubleTapEnabledPath = kTsPath + "double_tap_enabled";