在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测试触摸上报改为一次触摸上报一次数据。 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 11:12
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.