HI Pavel,
Am 19.02.2017 um 15:17 schrieb Pavel Machek pavel@ucw.cz:
Hi!
About loosing precision: there is already noise (jitter) in real-world devices so that you can't achieve subpixel precision anyways (unless your panel has a very low resolution). Please see my answer to Dmitry some mails ago.
Maybe you can achieve better precision with averaging.
Can you? What do you want to average here? Multiple sequential measurements? This makes the touch slower and hence imprecise and unuseable in another way. Anyways, the tsc2007 chip can already do such averaging.
Anyway "input is already noisy" does not mean "so it is okay to degrade it more".
You have not yet said how you think it is degraded *more* than in your example.
Solve it properly. That means passing calibration data from kernel to userland.
As written before, the really proper solution would be to provide floating or fixed point subpixel input events. Not arbitrarily scaling up in kernel and leaving downscaling to user space (where everybody can make it worse).
But I don't think it is worth implementing subpixel touch events for real world devices due to the jitter I mentioned.
BR, Nikolaus