嵌入式爱好者

t507关闭多次报点

2024-1-22 09:13| 发布者: 会飞的大灰狼| 查看: 67| 评论: 0

类目: 知识库  >  T507系列产品     文档编号: 1271

在t507上,目前的配置使用evtest测试触摸数据上报时会一次触摸上报多次
在某些应用中会有多次触摸事件上传,导致应用事件重复触发,
Event: tine 106.393606,type 3 (EV_ABs),code 57 (ABS_MT_TRACKING_ID),value 1Event: tine 106.393606,type 3 (EV_ABS), code 53 (ABS_AT_POSITION_x), value 537Event: time 106.393606,type 3 (EV_ABS), code 54(ABS_MT_POSITION_Y), value 2017Event: tine 106.393606,type 3 (EV_ABS),code 48 (ABS_ T_TouCH_MAJOR),value 24Event: tine 106.393606,type 1 (EV_KEY),code 330 (BTN_TOUCH), value 1
Event: time 106.393606,type 3(EV_ABS), code 0 (ABS_x), value 537
Event: tine 106.393606,type 3 (EV_ABS),code 1 (ABS_Y), value 2017Event: time 106.393606,-------------- SYN_REPORT -.---------
Event: tine 106.409587,type 3 (EV_ABS),code 57 (ABS_MT_TRACKING_ID),value 1Event: time 106.409587,type 3 (EV_ABS), code 53 (ABs_MT_PoSITION_X),value 537Event: tine 106.409587,type 3 (EV_ABS), code 54 (ABs_MT_POSITION_Y), value 2017Event: time 106.409587,type 3 (EV_ABS), code 48(ABS_MT_TOUuCH_MAJOR), value 24Event: time 106.409587,type 3 (EV_ABS), code 0 (ABS_X),value 537
Event: tine 106.409587,type 3 (EV_ABS), code 1 (ABS_Y), value 2017Event: time 106.409587,-----------.-- SYN_REPORT -..---------
Event: tine 106.423577,type 3(EV_ABS),code 57 (ABS_MT_TRACKING_ID),value 1Event: tine 106.423577,type 3 (Ev_ABS), code 53 (ABS_AT_POSITION_X), value 537Event: time 106.423577,type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y),value 2017Event: time 106.423577,type 3 (EV_ABS), code 48(ABS_MT_TOUuCH_MAJOR), value 24Event: time 106.423577,type 3 (EV_ABS), code 0 (ABS_X), value 537
Event: time 106.423577,type 3 (EV_ABS), code 1 (ABS_Y), value 2017Event: tine 106.423577,-------i.----- SYN_REPORT ------------
Event: tine 106.438571,type 3 (EV_ABS),code 57(ABS_MT_TRACKING_ID),value 1Event: tine 106.438571,type 3 (EV_ABS),code 53 (ABs_MT_POSITION_X), value 537Event: tine 106.438571,type 3 (Ev_ABS),, code 54(ABS_AT_PoSITION_Y), value 2017Event: tine 106.438571,type 3 (EV_ABS),code 48 (ABS_ T_TouCH_MAJOR),value 24Event: time 106.438571,type 3 (EV_ABS),code 0 (ABs_x), value 537
Event: time 106.438571,type 3 (Ev_ABS), code 1 (ABS_Y), value 2017

修改方法:
在linux-4.9/drivers/input/input.c中,修改input_handle_abs_event中的
 if (*pold == *pval)
                        return INPUT_IGNORE_EVENT;
释放注释,多次上报数据一致则忽略。
后续evtest测试触摸上报改为一次触摸上报一次数据。

已解决

未解决

只是看看

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-22 11:12

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部