All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Éric Piel" <E.A.B.Piel@tudelft.nl>
To: Henrik Rydberg <rydberg@euromail.se>
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:02:51 +0200	[thread overview]
Message-ID: <4BE7F5EB.9060904@tudelft.nl> (raw)
In-Reply-To: <4BE6EBF6.7060900@euromail.se>

Op 09-05-10 19:08, Henrik Rydberg schreef:
> Éric Piel wrote:
>> Op 08-05-10 19:45, Henrik Rydberg schreef:
>>> Hi Éric,
>>>
>> :
>>> Please run the ./scripts/checkpatch.pl on patches before submitting them, to
>>> remove trivial formatting errors.
>> Ooops, I usually run it... forgot this time, while it would have been
>> very worthy. Thanks for noticing.
>> Here is a version fixed.
> 
> Thanks, comments below.
:
Thanks for the feedback. I'll fix the comments and resend.

>> @@ -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. Actually at some low pressures I could
swear it detects my blood pulse ;-) 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?

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"?

Eric
--
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:[~2010-05-10 12:02 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 [this message]
2010-05-10 12:27         ` Henrik Rydberg
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=4BE7F5EB.9060904@tudelft.nl \
    --to=e.a.b.piel@tudelft.nl \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=rafl@debian.org \
    --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 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.