Questions about synaptics coordinate

2012-03-26 Thread Leon Shaw
Hi Peter, I looked into eventcomm.c and got confused. 1. Shouldn't apply_st_scaling be something like: (value - st_min[axis]) * proto_data-st_to_mt_scale[axis] + priv-minx_or_y; instead of value * proto_data-st_to_mt_scale[axis] + proto_data-st_to_mt_offset[axis]; since st_min is normally not 0?

[PATCH synaptics] Fix st-mt scaling

2012-03-29 Thread Leon Shaw
From: Leon Shaw shaw.l...@gmail.com Signed-off-by: Leon Shaw shaw.l...@gmail.com --- src/eventcomm.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/eventcomm.c b/src/eventcomm.c index 28d034f..2d03743 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c

Re: Questions about synaptics coordinate

2012-03-30 Thread Leon Shaw
, Peter Hutterer peter.hutte...@who-t.net wrote: On Thu, Mar 29, 2012 at 08:47:33PM +0800, Leon Shaw wrote: Thanks for you explanation. So we don't have a way to get the actual bezel limit, and the only reliable limit is 0x–0x17FF (according to Synaptics PS/2 TouchPad Interfacing Guide

Re: [PATCH synaptics] Fix st-mt scaling

2012-04-20 Thread Leon Shaw
On Thu, Apr 12, 2012 at 7:57 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Fri, Mar 30, 2012 at 02:58:51PM +0800, Leon Shaw wrote: On Fri, Mar 30, 2012 at 6:56 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Thu, Mar 29, 2012 at 10:21:09AM -0700, Chase Douglas wrote: On 03/29