From: ulrik.debie-os@e2big.org
To: Marcus Overhagen <marcus.overhagen@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Benjamin Tissoires <benjamin.tissoires@gmail.com>,
Hans de Goede <hdegoede@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-input <linux-input@vger.kernel.org>,
Jiri Kosina <jkosina@suse.cz>
Subject: Re: [git pull] Input updates for 3.18-rc4
Date: Tue, 25 Nov 2014 22:23:23 +0100 [thread overview]
Message-ID: <20141125212321.GA12591@lantern> (raw)
In-Reply-To: <CAJBHPojucTj27EVLQRjDHZJe6bwZW3i-brwQ9N8mVY3rTp8koA@mail.gmail.com>
Hi,
On Wed, Nov 19, 2014 at 11:21:31PM +0100, Marcus Overhagen wrote:
> Hi,
>
> when moving a single finger [3] seems to be one of 0x21, 0x25, 0x31, 0x35
> moving two fingers [3] seems to be mostly 0x22, 0x26, 0x32, 0x36 but
> also sometimes it's 0x42, 0x46, 0x52, 0x56.
> It seems to occationally seems to switch between these two groups
> after touching the pad with three or more fingers, but not every time.
>
> Moving three fingers I see[3] beeing 0x26, 0x36, 0x76, 0x66 (probably more)
>
> regards
> Marcus
Ok, after some digging through the packet dump kindly provided by Marcus,
it is clear that Documentation/input/elantech.txt is not correctly
representing anymore the packets of the v4 hardware. There should be some
0 and 1's replaced by x because they are currently "don't know" and definitely
not always 0 or 1.
Example:
He has 0x26,0x36,0x46,0x56,0x66,0x76 in packet[3], and the documentation had
the bits as:
id2 id1 id0 1 0 0 1 0
X X
The bits marked with X can thus be different. But when those are changed to
X==don't care then it is not trivial to differentiate them from the trackpoint
that has the following signature for that byte:
0 0 ~sy ~sx 0 1 1 0
I'm considering the following change:
The test
t = get_unaligned_le32(&packet[0]);
switch (t & ~7U) {
case 0x06000030U:
case 0x16008020U:
case 0x26800010U:
case 0x36808000U:
could be moved to elantech_packet_check_v3/4() instead of the
simpler test on the lowest nibble of packet[3] (and keep the etd->tp_dev check):
if ((packet[3] & 0x0f) == 0x06 && etd->tp_dev)
return PACKET_TRACKPOINT;
I'll think a little bit more on it. Based on the packet dump I have this
seems to allow a perfect discrimation between trackpoint and touchpad packets.
Thanks,
Regards,
Ulrik
next prev parent reply other threads:[~2014-11-25 21:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 22:26 [git pull] Input updates for 3.18-rc4 Dmitry Torokhov
2014-11-19 15:32 ` Benjamin Tissoires
2014-11-19 18:00 ` Marcus Overhagen
2014-11-19 18:12 ` Dmitry Torokhov
2014-11-19 18:20 ` Marcus Overhagen
2014-11-19 18:39 ` Dmitry Torokhov
2014-11-19 19:23 ` Marcus Overhagen
2014-11-19 21:05 ` ulrik.debie-os
2014-11-19 21:49 ` Marcus Overhagen
2014-11-19 21:54 ` ulrik.debie-os
2014-11-19 22:21 ` Marcus Overhagen
2014-11-25 21:23 ` ulrik.debie-os [this message]
2014-11-26 14:33 ` Benjamin Tissoires
2014-11-27 20:41 ` ulrik.debie-os
2014-11-20 14:44 ` Benjamin Tissoires
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=20141125212321.GA12591@lantern \
--to=ulrik.debie-os@e2big.org \
--cc=benjamin.tissoires@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcus.overhagen@gmail.com \
/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).