From: Daniel Stone <daniel-rLtY4a/8tF1rovVCs/uTlw@public.gmane.org>
To: Ping Cheng <pinglinux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "X.Org Devel List"
<xorg-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
Dmitry Torokhov
<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-input <linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [RFC] Multi-Touch (MT) support - arbitration or not
Date: Sun, 7 Nov 2010 11:30:37 -0500 [thread overview]
Message-ID: <20101107163037.GR14865@fooishbar.org> (raw)
In-Reply-To: <AANLkTin1svszp87Pysi5OCt5=JTSB-yVaAWF-42gfn9T-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 1892 bytes --]
Hi,
On Fri, Nov 05, 2010 at 11:47:28AM -0700, Ping Cheng wrote:
> Recent changes and discussion about MT support at LKML, UDS, and
> xorg-devel encouraged me to migrate Wacom MT devices to the slot-based
> MT protocol (introduced in kernel 2.6.36).
Nice!
> My goal is to understand how X server would like the MT data to be
> reported from the kernel. I hope to keep kernel and X server driver MT
> support in sync so we can avoid unnecessary confusion or extra work in
> the userland.
:)
> The existing solution for single touch events is to arbitrate touch
> when pen is in prox. This is based on the assumption that we do not
> want to have two cursors competing on the screen.
What do you mean by 'arbitrate' here? I guess you're talking about which
events should send ABS_[XY]?
> 1. Arbitrate all touch data in the kernel.
>
> This is the simplest solution for device driver developers. But I do
> not feel it is end user and userland client friendly.
>
> [...]
>
> 3. Report first finger touch as ABS_X/Y events when pen is not in prox;
> Report pen data as ABS_X/Y events when there is no finger touch;
> Report touch data as MT_TOOL_TOUCH and pen data as MT_TOOL_PEN
> events when both pen and touch data are received. No ABS_X/Y are
> reported when pen and tocuh or multi-touch data are received.
>
> I feel this one makes sense to userland since pen can be considered as
> another touch.
I'd say that either #1 or #3 is the best idea here, simply because they
seem to be the most straightforward, and thus easier to support.
Assuming that xf86-input-wacom will track the state itself and decide
(using whatever criteria) which events should send core x/y motion, then
all you need to do with ABS_[XY] is just make a best effort to have it
more or less work for dumb userspace clients.
Cheers,
Daniel
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 219 bytes --]
_______________________________________________
xorg-devel-go0+a7rfsptAfugRpC6u6w@public.gmane.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
next prev parent reply other threads:[~2010-11-07 16:30 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-05 18:47 [RFC] Multi-Touch (MT) support - arbitration or not Ping Cheng
2010-11-06 15:16 ` Chris Bagwell
2010-11-06 15:53 ` Michal Suchanek
2010-11-06 20:38 ` Rafi Rubin
2010-11-08 3:39 ` Peter Hutterer
2010-11-07 23:32 ` Ping Cheng
[not found] ` <AANLkTin1svszp87Pysi5OCt5=JTSB-yVaAWF-42gfn9T-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-07 16:30 ` Daniel Stone [this message]
2010-11-07 21:07 ` Michal Suchanek
2010-11-07 23:38 ` Ping Cheng
2010-11-07 23:49 ` Ping Cheng
2010-11-08 0:53 ` Mohamed Ikbel Boulabiar
2010-11-08 3:51 ` Peter Hutterer
2010-11-08 8:08 ` Benjamin Tissoires
2010-11-08 21:54 ` Chris Bagwell
2010-11-08 23:33 ` Ping Cheng
2010-11-09 3:42 ` Chris Bagwell
2010-11-09 3:31 ` Peter Hutterer
2010-11-09 4:14 ` Chris Bagwell
2010-11-10 4:46 ` Peter Hutterer
2010-11-11 3:57 ` Chris Bagwell
2010-11-11 18:23 ` Ping Cheng
2010-11-09 6:59 ` Dmitry Torokhov
2010-11-09 16:28 ` Chris Bagwell
2010-11-09 20:10 ` Ping Cheng
2010-11-10 5:02 ` Peter Hutterer
2010-11-10 10:00 ` Henrik Rydberg
2010-11-10 23:53 ` Peter Hutterer
2010-11-11 0:48 ` Henrik Rydberg
2010-11-11 1:22 ` Dmitry Torokhov
2010-11-11 8:06 ` Michal Suchanek
2010-11-11 8:26 ` Dmitry Torokhov
2010-11-11 9:35 ` Michal Suchanek
2010-11-11 19:01 ` Ping Cheng
2010-11-11 19:24 ` Dmitry Torokhov
2010-11-11 19:41 ` Henrik Rydberg
2010-11-11 19:55 ` Dmitry Torokhov
2010-11-11 21:25 ` Ping Cheng
2010-11-11 21:38 ` Henrik Rydberg
2010-11-11 22:10 ` Ping Cheng
2010-11-11 23:21 ` Michal Suchanek
2010-11-12 8:21 ` Henrik Rydberg
2010-11-14 20:40 ` Ping Cheng
2010-11-09 18:10 ` Ping Cheng
2010-11-09 20:36 ` Michal Suchanek
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=20101107163037.GR14865@fooishbar.org \
--to=daniel-rlty4a/8tf1rovvcs/utlw@public.gmane.org \
--cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pinglinux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=xorg-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/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).