diff options
author | davidycchen <davidycchen@google.com> | 2018-12-18 10:14:16 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-12-18 10:14:16 -0800 |
commit | 7f7e8b9ac8a91a415ac208ae767ff8eef784db6c (patch) | |
tree | 4e635feb055d902497e15b39cd9aae93e5998a01 /dumpstate | |
parent | 1b50d7cabb10e72f1ae868fd986027f0b48ec299 (diff) | |
parent | e7b97788dda2d492df8aae4d0542080fc619881b (diff) | |
download | bonito-7f7e8b9ac8a91a415ac208ae767ff8eef784db6c.tar.gz |
Merge changes from topic "touch_dump_sequence" into pi-dev am: c51014923a
am: e7b97788dd
Change-Id: Iae0e9e6b6c88bacd8f59cfb189265d9833a8a1b5
Diffstat (limited to 'dumpstate')
-rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index daebebb6..9913c7d8 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -238,24 +238,32 @@ static void DumpTouch(int fd) { touch_sysfs_path + "buildid"); DumpFileToFd(fd, "Synaptics touch config version", touch_sysfs_path + "config"); + RunCommandToFd(fd, "keep touch stay awake", + {"/vendor/bin/sh", "-c", + "echo 02 >" + touch_sysfs_path + "suspend"}); DumpFileToFd(fd, "Synaptics touch noise information", touch_sysfs_path + "noise_state"); - RunCommandToFd(fd, "Touch Cm Raw data", - {"/vendor/bin/sh", "-c", - "echo 20 >" + touch_sysfs_path + "read_report" - " && cat " + touch_sysfs_path + "read_report"}); - RunCommandToFd(fd, "Touch Cm Jitter", - {"/vendor/bin/sh", "-c", - "echo 02 >" + touch_sysfs_path + "read_report" - " && cat " + touch_sysfs_path + "read_report"}); - RunCommandToFd(fd, "Touch Cs Raw data", - {"/vendor/bin/sh", "-c", - "echo 63 >" + touch_sysfs_path + "read_report" - " && cat " + touch_sysfs_path + "read_report"}); - RunCommandToFd(fd, "Touch Cs Jitter", + for (int i = 0; i < 5; i++) { + RunCommandToFd(fd, "Touch Cm Raw data", + {"/vendor/bin/sh", "-c", + "echo 20 >" + touch_sysfs_path + "read_report" + " && cat " + touch_sysfs_path + "read_report"}); + RunCommandToFd(fd, "Touch Cm Jitter", + {"/vendor/bin/sh", "-c", + "echo 02 >" + touch_sysfs_path + "read_report" + " && cat " + touch_sysfs_path + "read_report"}); + RunCommandToFd(fd, "Touch Cs Raw data", + {"/vendor/bin/sh", "-c", + "echo 63 >" + touch_sysfs_path + "read_report" + " && cat " + touch_sysfs_path + "read_report"}); + RunCommandToFd(fd, "Touch Cs Jitter", + {"/vendor/bin/sh", "-c", + "echo 59 >" + touch_sysfs_path + "read_report" + " && cat " + touch_sysfs_path + "read_report"}); + } + RunCommandToFd(fd, "keep touch stay awake disable", {"/vendor/bin/sh", "-c", - "echo 59 >" + touch_sysfs_path + "read_report" - " && cat " + touch_sysfs_path + "read_report"}); + "echo 00 >" + touch_sysfs_path + "suspend"}); } } |