On Friday, July 11, 2014 4:52:43 PM UTC+6, [email protected] wrote:
> Hello
> My system configuration is as follows
>
> Board: Cubietruck (A20)
> OS: Linux cubieez 3.4.61+ #8 SMP PREEMPT Mon May 12 09:27:07 ALMT 2014 armv7l
> GNU/Linux
> TS: 4-wire, resistive
>
> I followed a how-to
> http://olimex.wordpress.com/2012/12/19/a13-lcd7ts-support-in-linux/ and got
> some results, but they are not as expected.
> When I run ts_test and touch the screen i get an event but no coordinates:
> ...
> 1405074887.705537: 0 0 255
> 1405074887.715767: 0 0 255
> 1405074887.726024: 0 0 255
> 1405074887.736246: 0 0 255
> 1405074887.746502: 0 0 255
> 1405074887.756723: 0 0 255
> 1405074887.767008: 0 0 255
> 1405074887.854632: 0 0 0 #<-- here I remove finger
> ...
> But when I put my second finger coordinates do magically appear and change,
> when I move my finger:
> ...
> 1405075730.576902: 3527 1700 800
> 1405075730.589690: 3527 1700 800
> 1405075730.607623: 3528 1700 800
> 1405075730.617863: 3528 1700 800
> 1405075730.628103: 3529 1700 800
> 1405075730.648580: 3529 1700 800
> 1405075730.764631: 3529 1700 0
> ...
> After that, when I press with single finger I get last coordinates
> Please, tell me, what am I doing wrong.
>
> with best regards
>
> Anton
Ok, after doing some research it seemed to me that this module (sunxi-ts) is
broken. As I'm not guru in Linux driver programming I may be wrong, but i found
some contraversial code:
Input parameters were set to
input_set_abs_params(ts_data->input, ABS_MT_TOUCH_MAJOR, 0, 1000, 0, 0);
input_set_abs_params(ts_data->input, ABS_MT_POSITION_X, 0, 4095, 0, 0);
input_set_abs_params(ts_data->input, ABS_MT_POSITION_Y, 0, 4095, 0, 0);
but the function "report_single_point_implement" used
input_report_abs(ts_data->input, ABS_X, sample_data->x);
input_report_abs(ts_data->input, ABS_Y, sample_data->y);
This is true for the cubieboard2 repo:
https://github.com/cubieboard2/linux-sunxi/blob/sunxi-3.4-cb2/drivers/input/touchscreen/sun4i-ts.c
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.