theintel / twrpwaltonprimoh8

TWRP Recovery for Walton Primo H8 Turbo
Apache License 2.0
2 stars 0 forks source link

No touch in stock kernel #10

Open theintel opened 2 years ago

theintel commented 2 years ago

Kernel in stock recovery disables touch sensor in recovery boot.

theintel commented 2 years ago

Searching for the text "tpd_i2c" in stock recovery kernel log file /cache/recovery/last_kmsg unveiled that the touch driver was indeed removed during initiation:

``<4>[ 1.098785] -(2)[53:kworker/u8:1][] (gt1x_deinit) from [] (tpd_i2c_remove+0x10/0x28)

<4>[ 1.098796] -(2)[53:kworker/u8:1] r5:cf72d200 r4:c14a81cc <4>[ 1.098806] -(2)[53:kworker/u8:1][] (tpd_i2c_remove) from [] (i2c_device_remove+0x64/0x9c) <4>[ 1.098816] -(2)[53:kworker/u8:1][] (i2c_device_remove) from []``
theintel commented 2 years ago

This issue has become quite common among newer devices with MTK SoCs. Here is a detailed but complicated tutorial on how to patch the kernel:

https://forum.hovatek.com/thread-27132.html

theintel commented 2 years ago

Last part of the following tutorial is also helpful for fixing the issue:

https://forum.xda-developers.com/t/doogee-s55-twrp-recovery-how-to-port-mtk-recovery.3836178/

theintel commented 2 years ago

This directory contains all the necessary files related to my R&D on the issue. You can also find my detailed workflow in the readme:

https://github.com/theintel/twrpwaltonprimoh8/tree/main/work/kernelfix