[PATCH] Input: MT - add input sync to refresh touch points after screen locked
From: Ai Chao
Date: Sat Apr 26 2025 - 22:12:36 EST
If the touchscreen support ten-figers press it to lock touchscreen. When
the touchscreen is locked, the ABS_MT_TRACKING_ID event remains
buffered. We need to used input-sync to refresh the event buffer.
Signed-off-by: Ai Chao <aichao@xxxxxxxxxx>
---
drivers/input/input-mt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c
index 337006dd9dcf..659d752ca830 100644
--- a/drivers/input/input-mt.c
+++ b/drivers/input/input-mt.c
@@ -147,6 +147,7 @@ bool input_mt_report_slot_state(struct input_dev *dev,
if (!active) {
input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, -1);
+ input_sync(dev);
return false;
}
--
2.47.1