linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Ping Cheng <pinglinux@gmail.com>
Cc: Henrik Rydberg <rydberg@euromail.se>, linux-input@vger.kernel.org
Subject: Re: [PATCH] input : wacom - report resolution for ABS_MT events
Date: Fri, 28 Jan 2011 11:37:31 -0800	[thread overview]
Message-ID: <20110128193731.GH6252@core.coreip.homeip.net> (raw)
In-Reply-To: <AANLkTikgTYQvhTzEHWw0Yhigno7TLJ8jm9jaw10mOhk+@mail.gmail.com>

On Fri, Jan 28, 2011 at 11:01:39AM -0800, Ping Cheng wrote:
> On Fri, Jan 28, 2011 at 10:46 AM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
> > On Fri, Jan 28, 2011 at 10:23:59AM -0800, Ping Cheng wrote:
> >> On Fri, Jan 28, 2011 at 9:30 AM, Henrik Rydberg <rydberg@euromail.se> wrote:
> >> > Hi Ping,
> >> >
> >> >> This is mainly required by the serial pen and touch devices since
> >> >> both pen and touch are on the same port. Updated the USB ones to
> >> >> keep MT event definition consistent among serial and USB devices.
> >> >
> >> > Why is this change performed? What does the patch do? Please elaborate
> >> > a little bit.
> >>
> >> Let's see if I can explain it clearer or not.
> >>
> >> We need to report resolution to userland for wacom_w8001.c. Since pen
> >> and touch data are reported through the same logical port for serial
> >> devices, using input_abs_set_res  for ABS_X/Y,  we can only pass the
> >> resolution for pen or touch. So, I let ABS_X/Y report pen resolution
> >> since most legacy ST clients process pen data over touch. However, for
> >> multi-touch clients, especially for those that support gestures, touch
> >> resolution is needed to calculate the physical distance between two
> >> touch points. Using  ABS_MT_POSITION_X/Y does not cause confusion and
> >> it is quite intuitive.
> >
> > We just went through the round of why we should scale events from
> > different tools when they use the same event devices and I do not see
> > why MT data is any different.
> 
> At the time when we worked on that, we did not consider resolution. We
> only scaled the logical values.
> 
> > Devices have only one set of physical axes (MT or not)
> 
> You are right if the device only supports one type of tools. Yes, ST
> or pen can go with ABS_X/Y. MT goes with MT. However, we are dealing
> with a dual tool case: pen and touch on the same port. Using only one
> set of axes would not be able to cover both tool events and pass the
> resolution to the userland.
> 
> > so I believe
> > min, max and resultion should be reported on ABS_X, Y, X, etc, or, if
> > you want to have this data in ABS_MT_POSITION, it should be trhe same.
> 
> max/min is different from resolution. We can scale max/min since they
> are logical data. But we can not change the device's physical size.
> That's the root cause of the "stubborn" nature of resolution.

This is the same device so it should have the same physical dimensions,
right?

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-01-28 19:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28  1:47 [PATCH] input : wacom - report resolution for ABS_MT events Ping Cheng
2011-01-28 17:30 ` Henrik Rydberg
2011-01-28 18:23   ` Ping Cheng
2011-01-28 18:46     ` Dmitry Torokhov
2011-01-28 19:01       ` Ping Cheng
2011-01-28 19:37         ` Dmitry Torokhov [this message]
2011-01-28 20:08           ` Ping Cheng
2011-01-28 20:54             ` Dmitry Torokhov
2011-01-28 21:57               ` Ping Cheng
2011-01-29  0:05                 ` Dmitry Torokhov
2011-01-29  6:19                   ` Ping Cheng
2011-01-28 19:12     ` Henrik Rydberg
2011-01-28 20:08       ` Ping Cheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110128193731.GH6252@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=pinglinux@gmail.com \
    --cc=rydberg@euromail.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).