From e61c8498e67203d440897849e126e05d8bde3380 Mon Sep 17 00:00:00 2001 From: Wendly Li Date: Fri, 29 Jul 2022 10:19:33 +0000 Subject: [PATCH 1/2] touch: change touch sysfs node ownership for dumpstate Bug: 214118904 Test: adb bugreport Change-Id: Ia0e133e86b11421e7b97aaea4e551f8a2fd6933f Signed-off-by: Wendly Li --- conf/init.lynx.rc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/conf/init.lynx.rc b/conf/init.lynx.rc index ae113fd..10140a5 100644 --- a/conf/init.lynx.rc +++ b/conf/init.lynx.rc @@ -77,3 +77,15 @@ on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_complet on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1 write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1 + +# Touch +on property:vendor.device.modules.ready=1 + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/force_active + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/fw_ver + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_base + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_diff + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_raw + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/self_test + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_base + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_diff + chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_raw From af608806529923e1dfefe9f751b8aecdfd5e3219 Mon Sep 17 00:00:00 2001 From: David Chao Date: Fri, 19 Aug 2022 16:21:55 +0800 Subject: [PATCH 2/2] thermal: enable VIRTUAL-CHARGE sensor for thermal_recorder Remove "Hidden" to enable VIRTUAL-CHARGE sensor for thermalservice, So that thermal_recorder can record the temperature and seveirty for tuning. Bug: 242944140 Test: thermalservice can read VIRTUAL CHARGE sensors. Temperature{mValue=26.606302, mType=3, mName=VIRTUAL-SKIN, mStatus=0} Temperature{mValue=26.577953, mType=-1, mName=VIRTUAL-SKIN-CHARGE, mStatus=0} Temperature{mValue=26.92495, mType=-1, mName=VIRTUAL-SKIN-CHARGE-WLC, mStatus=0} Change-Id: Icc38895d19ff7d89e307e96c2b35e26d43c1a753 --- thermal_info_config_lynx.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/thermal_info_config_lynx.json b/thermal_info_config_lynx.json index 05773ee..eeead6f 100644 --- a/thermal_info_config_lynx.json +++ b/thermal_info_config_lynx.json @@ -193,7 +193,6 @@ { "Name":"VIRTUAL-SKIN-CHARGE", "Type":"UNKNOWN", - "Hidden":true, "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", @@ -235,7 +234,6 @@ { "Name":"VIRTUAL-SKIN-CHARGE-WLC", "Type":"UNKNOWN", - "Hidden":true, "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"WEIGHTED_AVG",