From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH 0/2] input: mt: Add EVIOC mechanism for MT slots Date: Thu, 27 May 2010 00:24:38 -0700 Message-ID: <20100527072438.GA13188@core.coreip.homeip.net> References: <1274788379-11026-1-git-send-email-rydberg@euromail.se> <20100525173446.GA4634@core.coreip.homeip.net> <4BFC2A7D.50501@euromail.se> <20100525202340.GD4455@core.coreip.homeip.net> <20100527070310.GC17625@core.coreip.homeip.net> <4BFE1A5A.8010802@cena.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-pw0-f46.google.com ([209.85.160.46]:37671 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756967Ab0E0HYo (ORCPT ); Thu, 27 May 2010 03:24:44 -0400 Content-Disposition: inline In-Reply-To: <4BFE1A5A.8010802@cena.fr> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Benjamin Tissoires Cc: Ping Cheng , Henrik Rydberg , Andrew Morton , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Mika Kuoppala , Peter Hutterer , Stephane Chatty , Rafi Rubin , Michael Poole On Thu, May 27, 2010 at 09:08:10AM +0200, Benjamin Tissoires wrote: > Le 27/05/2010 09:03, Dmitry Torokhov a =E9crit : > >On Wed, May 26, 2010 at 08:59:35AM -0700, Ping Cheng wrote: > >>On Tue, May 25, 2010 at 1:23 PM, Dmitry Torokhov > >> wrote: > >>>On Tue, May 25, 2010 at 09:52:29PM +0200, Henrik Rydberg wrote: > >>>>Dmitry Torokhov wrote: > >>>>>Hi Henrik, > >>>>> > >>>>>On Tue, May 25, 2010 at 01:52:57PM +0200, Henrik Rydberg wrote: > >>>>>>These patches are in response to the discussion about input sta= te > >>>>>>retrieval. > >>>>>> > >>>>>>The current EVIOCGABS method does not work with MT slots. Thes= e > >>>>>>patches provides a mechanism where a slot is first selected via= a call > >>>>>>to EVIOCSABS, after which the corresponding MT events can be ex= tracted > >>>>>>with calls to EVIOCGABS. > >>>>>> > >>>>>>The symmetric operation, to set the MT state via EVIOCSABS, see= ms to > >>>>>>violate input data integrity, and is therefore not implemented. > >>>>>> > >>>>> > >>>>>This looks sane, however the question remains - is there any use= rs for > >>>>>this data? Like I mentioned, I can see the need to fetch state o= f > >>>>>switches and ranges of absolute axis, and even non-multitouch AB= S values > >>>>>(due to the fact that some input devices, like sliders, may stay= in a > >>>>>certain position for long periods of time), but I expect multito= uch data > >>>>>to be "refreshed" very quickly. > >>>>> > >>>>>Thanks. > >>>>> > >>>> > >>>>There were some voices addressing this issue, and the patches are= here, > >>>>available for whomever to pick up. Drop them if you wish, I will = not send them anew. > >>>> > >>> > >>>I'll save them in my queue but will hold off applying until I hear > >>>userspace folks requesting such functionality. > >> > >>Hi Dmitry, > >> > >>You do have a valid point - the (x,y) from a touch object would mos= t > >>likely change all the time. Even if the object itself is in a stead= y > >>state on the digitizer, i.e., without any intentional movement, the > >>electronic noise would most likely lead to some (x,y) changes. So, = the > >>chance that we need to retrieve (x,y) is rare. > >> > >>However, it is possibe that when X driver starts, an object was > >>already on the digitizer. And the digitizer is of such a high quali= ty > >>:), it filtered all the noises so we can not locate the touch witho= ut > >>a EVIOCGABS call. > >> > >>Plus, from a pure coding/development point of view, it is not a bad > >>practice to provide the equivalent features for _MT_ support as we = did > >>for the existing input devices. At least, it doesn't hurt to make t= he > >>support consistent across devices/tools (considering touch as a new > >>input device/tool). > > > >Ping, > > > >I did not say that there was a problem with the patch, I agree with = it. > >However if no one using this - why should we bother? Will _you_ util= ize > >this functionality in Wacom X driver? If so let me know and I will m= erge > >it. > > >=20 > Hi Dmitry, >=20 > I'm the guy who submitted some patchs to enable multitouch in the > xf86-input-evdev driver. And I think that I will use the MT_SLOTS as > soon as they are available. It is much easier for the upper part to > have this protocol instead of the protocol type A. >=20 This is not the question about slotted protocol (which is everyone agrees is needed), the question is whether anyone will use EIVICGABS to retrieve the initial MT values in case someone started touching the device before X opened the corresponding /dev/input/eventX. --=20 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