From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Hans-Christian Egtvedt <hc@mivu.no>
Cc: linux-kernel@vger.kernel.org, Vojtech Pavlik <vojtech@suse.cz>,
linux-input@atrey.karlin.mff.cuni.cz
Subject: Re: [PATCH] new driver for ITM Touch touchscreen
Date: Tue, 8 Mar 2005 12:25:09 -0500 [thread overview]
Message-ID: <d120d500050308092554b49728@mail.gmail.com> (raw)
In-Reply-To: <1110297660.3198.15.camel@server.customer.mivu.no>
On Tue, 08 Mar 2005 17:01:00 +0100, Hans-Christian Egtvedt <hc@mivu.no> wrote:
> On Fri, 2005-03-04 at 11:54 -0500, Dmitry Torokhov wrote:
> > On Fri, 04 Mar 2005 17:20:24 +0100, Hans-Christian Egtvedt <hc@mivu.no> wrote:
> > > On Fri, 2005-03-04 at 09:52 -0500, Dmitry Torokhov wrote:
> > > > On Fri, 4 Mar 2005 14:03:37 +0200, Alexey Dobriyan <adobriyan@mail.ru> wrote:
> > > > > On Friday 04 March 2005 12:30, Hans-Christian Egtvedt wrote:
> > > > As far as the driver goes:
> > > >
> > > > - yes, it does need input_sync;
> > >
> > > One problem with input_sync is that the panel get's too fast, and double
> > > click is experienced quite often, maybe some threshold is needed for low
> > > values in Z-direction?
> > >
> > > I'm probably doing something wrong here since I experience easy
> > > doubleclicks when I just lightly touch the screen.
> >
> > Yes, I think you need to use some threshold when reporting BTN_TOUCH
> > event. Still, always report ABS_PRESSURE as is. This way the
> > touchscreen is useable via legacy interfaces (mousedev. tsdev) and if
> > a specialized userspace driver is written it still can get pretty much
> > unmangled data from /dev/input/eventX. This will also allow such
> > driver adjust touchpad sensitivity, if needed.
>
> Do you have any pointers to where I should go to implement this
> threshold? Is there an easy or smart way doing it?
>
I am not sure... that BTN_TOUCH - look slike it works off a single
flag reported by hardware. You porobably do not need to change it.
Try loading mousedev module (after adding input_sync back to your
driver) - it provides cooked PS/2 protocol to userspace - it should
bind to your driver. Then you can use GPM or X (read from
/dev/input/mice) to test the touchscreen and see if you have issue
with double clicks.
--
Dmitry
next prev parent reply other threads:[~2005-03-08 17:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-04 10:30 [PATCH] new driver for ITM Touch touchscreen Hans-Christian Egtvedt
2005-03-04 12:03 ` Alexey Dobriyan
2005-03-04 14:52 ` Dmitry Torokhov
2005-03-04 16:20 ` Hans-Christian Egtvedt
2005-03-04 16:54 ` Dmitry Torokhov
2005-03-04 18:51 ` Hans-Christian Egtvedt
2005-03-04 20:38 ` Vojtech Pavlik
2005-03-04 20:35 ` Vojtech Pavlik
2005-03-08 16:01 ` Hans-Christian Egtvedt
2005-03-08 17:25 ` Dmitry Torokhov [this message]
2005-03-08 17:49 ` Vojtech Pavlik
2005-03-08 18:23 ` Paulo Marques
2005-03-10 16:18 ` Vojtech Pavlik
2005-03-10 16:41 ` Hans-Christian Egtvedt
2005-03-10 16:46 ` Vojtech Pavlik
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=d120d500050308092554b49728@mail.gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=dtor_core@ameritech.net \
--cc=hc@mivu.no \
--cc=linux-input@atrey.karlin.mff.cuni.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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.