linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Nelson Castillo" <arhuaco@freaks-unidos.net>
To: Linux Input Mailing List <linux-input@vger.kernel.org>
Subject: [RFC] Touchscreen Filters in Kernel Space
Date: Fri, 9 Jan 2009 02:17:57 -0500	[thread overview]
Message-ID: <2accc2ff0901082317k504c52baxc75be6fbda106fe2@mail.gmail.com> (raw)

Hello.

We have been working on a solution for a problem we have: lots of noise in the
touchscreen of the Openmoko Neo1973/FreeRunner.

Thanks to teamwork now we have a working solution that depends on the named
filters.

We are using a small touchscreen filtering framework in kernel
space for the S3C2410/S3C2442 touchscreen controllers. The filters can be used
by other drivers as well (we've noticed a few drivers include
averaging and some other
custom filters).

We do not want to port tslib to kernel space. The big difference is
that in tslib
you cannot give feedback to an interrupt handler. tslib does what it can, but
we have the power in kernel space to do better.

With the current implementation we try to get as many points as we need to in
order to provide a clean input event that does not need further
user-space mangling.
If we fail to get a valid point after some time we just ignore the
event. In our tests
this approach has been performing very well. Some of us think it would be nice
if a program can gather clean touchscreen data from /dev/inputX.

Here is a document that explains the filters with links to source code
that lives in our
GIT repository and some videos (the videos are not polished but they
illustrate what
we'd like to show).

https://wiki.openmoko.org/wiki/Touchscreen_Filters

We hope this work is suitable for mainline inclusion. if it is not, we
also hope to get some
feedback from the Linux input developers.

We will be waiting for your comments.

Thanks,
Nelson, on behalf of all who contributed to what is proposed in this email.

             reply	other threads:[~2009-01-09  7:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-09  7:17 Nelson Castillo [this message]
2009-01-09  7:38 ` [RFC] Touchscreen Filters in Kernel Space Nelson Castillo

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=2accc2ff0901082317k504c52baxc75be6fbda106fe2@mail.gmail.com \
    --to=arhuaco@freaks-unidos.net \
    --cc=linux-input@vger.kernel.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).