Problemas difíciles de un dispositivo simple: pantalla táctil

Problemas difíciles de un dispositivo simple, pantalla táctil capacitiva en ft5406

Limpié una nube un día y encontré mis notas sobre el problema de una pantalla táctil con una pantalla táctil capacitiva en ft5406. Así es como apareció este artículo, ¿qué pasa si alguien más se topa con algo como esto durante el desarrollo ...





De alguna manera me topé con un problema con una pantalla táctil capacitiva en ft5406, la pantalla táctil en un momento simplemente colgó y se negó a seguir funcionando. Bueno, ahora más sobre esto. 





Hierro: marsboard sun7i A20. 





Software: uboot 2017, kernel 4.10, LUbuntu 16.04. 





La esencia del problema. 





, , . .. , .  





, Xinput, Xorg, . 





.. touchscreen xinput, (xinput), xinput test – xinput test-xi2 - , XI 2.0 (The X Input Extension 2.x), . . , , - .





, evt-ft5x06 ( ft5406) evtest, , . , , , . xserver-xorg-input-evdev , ( ft5406) , ( ) , .





, : 





  • xserver-xorg-input-libinput 





  • xserver-xorg-input-mtrack





/usr/share/X11/xorg.conf.d , libinput , mtrack , , touchpad, . .. , touchpad , . 





.. multitouch, XI 2.0 , . 





, , devicetree ( devicetree kernell , 3.11) , ... 





/drivers/input/touchscreen/ edt-ft5x06.c : 





static const struct edt_i2c_chip_data edt_ft5x06_data = { 
     ...
    .max_support_points = 5, 
    ...
}; 
      
      



5 1. .  





. , , , . 





,   





static irqreturn_t edt_ft5x06_ts_isr(int irq, void *dev_id) 







, . 





.





. , .. ( ) . 








All Articles