All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henrik Rydberg <rydberg@euromail.se>
To: "Éric Piel" <E.A.B.Piel@tudelft.nl>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Florian Ragwitz <rafl@debian.org>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>
Subject: Re: [PATCH 1/2] elantech: Improved protocol support for hardware 2
Date: Mon, 10 May 2010 14:27:07 +0200	[thread overview]
Message-ID: <4BE7FB9B.3050805@euromail.se> (raw)
In-Reply-To: <4BE7F5EB.9060904@tudelft.nl>

>>> @@ -467,6 +480,8 @@ static void elantech_set_input_params(struct psmouse
>>> *psmouse)
>>>  		break;
>>>
>>>  	case 2:
>>> +		__set_bit(BTN_TOOL_QUADTAP, dev->keybit);
>>> +		input_set_abs_params(dev, ABS_TOOL_WIDTH, ETP_WMIN_V2, ETP_WMAX_V2,
>>> 0, 0);
>> Is there an appropriate signal-to-noise ratio for the width? How does the device
>> handle fingers going away? Does it send one or several zero-width events?
> What do you mean by SNR for the width? The minimal variation which is
> significant for an actual change in the width of the finger? On my
> hardware it was fairly precise, and a unit was stable as long as I kept
> the finger pressed the same way.

Yes, that was what I was thinking of. If there is a lot of variation, it makes
sense to use the fuzz parameter to reduce the number of events emitted from the
input core.

> Actually at some low pressures I could
> swear it detects my blood pulse ;-)

It probably does - question is if that means the fuzz should be increased
somewhat. :-)

> That said, in all the measures the
> values were between 13 and 55, but I put as min and max 0 and 64. I did
> this because I'm not sure it's the same with every version of the
> hardware (apparently some old versions of the hardware even just report
> 0 all the time). It sounded more conservative this way. Is that the
> right way?

It sounds fine. The min and max are not exactly enforced by the input core, but
having the theoretic scale helps a lot when setting up applications.

> When you leave the last finger, the device sends one message with "0
> finger". However, as it is currently working, the driver then just sends
> one "BTN_TOUCH 0", but not any change in the ABS_TOOL_WIDTH. According
> to the input protocol, should it also sends in this case a
> "ABS_TOOL_WIDTH 0"?

It is fine with just BTN_TOUCH for the non-MT protocol.

The reason I asked specifically about this is partly because the current defuzz
mechanism might need to be extended for some special values, like zero for the
width and pressure events. For example, rather than emit zero, the input core
will emit anything between zero and the value of the fuzz parameter, upon
receiving a zero value.

Dmitry, this problem is very similar, but not identical to, the flat parameter
used for joysticks. Is there or has there been any thought about a similar
mechanism for the ABS events?

Henrik

  reply	other threads:[~2010-05-10 12:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-08 16:37 [PATCH 1/2] elantech: Improved protocol support for hardware 2 Éric Piel
2010-05-08 17:45 ` Henrik Rydberg
2010-05-09  0:41   ` Éric Piel
2010-05-09 17:08     ` Henrik Rydberg
2010-05-10 12:02       ` Éric Piel
2010-05-10 12:27         ` Henrik Rydberg [this message]
2010-05-10 20:09 ` [PATCH 1/2 v3] " Éric Piel

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=4BE7FB9B.3050805@euromail.se \
    --to=rydberg@euromail.se \
    --cc=E.A.B.Piel@tudelft.nl \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=rafl@debian.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.