Originally Posted by flar2
Note the red line going from PMIC_1 to the LCD panel. The Touch panel shares power with the LCD panel, and it's routed through the panel on its way to the touch sensor. The only other connection to Touch is the i2c bus. Without power, it can't sense touches and trigger the interrupt.
The way I got it to detect touches during suspend was to modify the touch panel driver so it doesn't send the command to power off the panel when sweep2wake or doubletap2wake are enabled: https://github.com/flar2/ElementalX-...bccb77014b31a7
Since then, I've messed around with the regulators, off cmds and clocks trying to reduce the power consumption, but drain remains at about 2.5% per hour with the wake features enabled.
Thanks for posting.
-do we have a similar diagram for the LG G2; is the touch panel powered off the LCD panel's vrail like N5?
-How did we determine that
ctrl->off_cmds.cmds.payload = 0x11
is what is needed to do this? Can we just try sending 1-255 to see what happens? IE we find a way to keep the LCD powered, but shut it off so it's not actually using power. I presume the only way to do this would be to find a command or register value on the touch I2C that powers off the LCD panel. How many addresses are there that we need to test write values to to find said needle?
-Are we talking an LG internal spec sheet or an I2C slave sheet? It would be possible to find the latter with the right connections....