mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Paulo Marques <pmarques@grupopie.com>
Cc: Vojtech Pavlik <vojtech@suse.cz>,
	LKML <linux-kernel@vger.kernel.org>,
	Linux-Input <linux-input@atrey.karlin.mff.cuni.cz>
Subject: Re: [RFC/RFT] [patch] Elo serial touchscreen driver
Date: Wed, 9 Feb 2005 22:39:30 +0100	[thread overview]
Message-ID: <20050209213930.GM10594@lug-owl.de> (raw)
In-Reply-To: <420A77DF.6040108@grupopie.com>

[-- Attachment #1: Type: text/plain, Size: 4248 bytes --]

On Wed, 2005-02-09 20:51:43 +0000, Paulo Marques <pmarques@grupopie.com>
wrote in message <420A77DF.6040108@grupopie.com>:
> Jan-Benedict Glaw wrote:
> >On Wed, 2005-02-09 18:08:10 +0000, Paulo Marques <pmarques@grupopie.com>
> >wrote in message <420A518A.9040500@grupopie.com>:
> >That's IMHO not brain-damaged, but pure physics: just consider scratches
> >or dust (or other substances) applied to the touch foil. This happens
> >all the time, so the touch screen gets out of calibration. This won't
> >happen on a screen used only twice a day. But think about a touch screen
> >that's tortured all the day with pencils, finger rings, dirty fingers,
> 
> The brain-damaged part wasn't the calibration. It was the calibration 
> being done in the touchscreen itself, instead of letting the PC handle 
> it for them. We will always need calibration, of course.

Again, you cannot map 0..\inf Ohm or 0..\inf nF to a given set
[0..0xffff] of coordinates. The physical characteristics of touchscreens
*can* change, so you need to recalibrate the A/D converter itself.

> >Min/Max values (as of protocol theory) is possibly not the very best you
> >can do with the hardware. I more thing about submitting these (after
> >physical calibration) to the kernel driver to supply them to it's users.
> 
> You're missing my point completely... :(
> 
> What I was suggesting was that we don't use physical calibration *at all*.

But there *needs* to be a way to do that. I don't want to place this
functionality into the kernel, but we need to have a program for that at
some time. Current solutions are bad hacks and don't actually work
reliably.

> We let the touch screen send the widest range it can muster, so that we 
> don't have quantization errors. We then calibrate in software as for any 
> other touch screen, using the coordinates sent as "raw data".

That cannot be done. Just hit a resistor-based touchscreen once with a
hammer. You'll probably see that you need a physical recalibration
then... Or flood it with water-solved citronic acid and let is on the
screen for some days. That's funny, but it's real life...

> >>Modern touchscreens just send the A/D data to the PC, and let the real 
> >>processor do the math (it can even do more complex calculations, like 
> >>compensate for rotation, etc.). IMHO calibration should be handled by 
> >>software.
> >
> >Is this done eg. by Elo, Mutouch, Fujitsu, T-Sharc (to only name the
> >most common)? I don't think so...
> 
> If you don't try to configure the "physical calibration" of a Elo, 
> MuTouch, etc, they send coordinates in a nice 0..2^N-1 format. That is 
> the best approach IMHO.

It is -- as long as the physical characteristics don't change all that
much. Unfortunately (at least for real-life POS usage) this happens
frequently.

> >[...]
> >This only happens if you don't configurethe MSR properly :-) Most of
> >them can be configured to send quite complex (as in: structured) init
> >sequences that cannot be generated by a keyboard (ie multiple break
> >codes without make codes and the like). 
> 
> Even if they can not be generated by a keyboard, if you don't handle 
> them in special way, you'll get a lot of rubbish. We do handle the 
> special sequences when available, but there still barcode scanners that 
> don't generate a nice sequence.
> 
> There are even barcode scanners that generate things like <press 
> Alt>+<numeric X>+<numeric Y>+<numeric Z>+<release Alt> without even 
> bothering to release the numeric keys, to generate ASCII code XYZ :P

Which then either needs to be parsed by userspace (which needs access to
raw make/break codes and be able to send data to the kbd) or we write
keyboard-specific Input API drivers for them.

However, a userspace library for that (if raw access to the keyboard is
given) could do the same job.

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-02-09 21:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-08 16:42 Vojtech Pavlik
2005-02-08 16:54 ` Dmitry Torokhov
2005-02-09 13:23 ` Paulo Marques
2005-02-09 17:00   ` Vojtech Pavlik
2005-02-09 17:14     ` Jan-Benedict Glaw
2005-02-09 17:30       ` Vojtech Pavlik
2005-02-09 18:08         ` Paulo Marques
2005-02-09 19:18           ` Vojtech Pavlik
2005-02-09 19:54             ` Paulo Marques
2005-02-09 20:06               ` Jan-Benedict Glaw
2005-02-09 20:03             ` Jan-Benedict Glaw
2005-02-09 20:10               ` Vojtech Pavlik
2005-02-09 21:53                 ` Jan-Benedict Glaw
2005-02-09 19:58           ` Jan-Benedict Glaw
2005-02-09 20:51             ` Paulo Marques
2005-02-09 21:39               ` Jan-Benedict Glaw [this message]
2005-02-09 21:53                 ` Vojtech Pavlik
2005-02-10 10:46                   ` Jan-Benedict Glaw
2005-02-10 13:06                     ` Paulo Marques
2005-02-10 13:43                       ` Jan-Benedict Glaw
2005-02-10 15:35                         ` Paulo Marques
2005-02-10 15:55                           ` Jan-Benedict Glaw
2005-02-10 16:16                           ` 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=20050209213930.GM10594@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmarques@grupopie.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®