Re: small thing about ts

From: Andrew Zabolotny <zap.a.t.homelink.ru>
Date: Fri Apr 09 2004 - 12:03:42 EDT

On Fri, 9 Apr 2004 00:36:15 +0200
Alain2210 <alain2210@free.fr> wrote:

> it seems that the touchscreen works better if in shamcop_ts.c the function
> report_touchpanel has the line
> input_report_abs (&ts->input, ABS_PRESSURE, pressure);
> before the two others. It avoids some event with 0 coordinate.
This is simply a bug in the old tsdev. I have fixed this issue (not in CVS
right now but will commit today, I swear).

Also I modified tsdev to create two devices in /dev/input - ts%d and tsraw%d.
The first one must be linked to h3600_ts and second to h3600_tsraw. The only
thing that is not supported (compared to original h3600 touchscreen driver) is
filtering and dejittering; I don't feel it is right thing to do it in the
driver. Besides, for Dell Axim I'm doing smoothing and filtering at a lower
level, in the wm9705 touchscreen driver, so there's no need for it at a higher
level. If you get problems with noise in your driver I'd suggest you to do
filtering inside your touchscreen driver; besides, you can execute several
reads and choose the most 'likely' one, something tsdev cannot do.

Initially the ts%d device is set so that the output is set to 240x320 (or
whatever the settings in menuconfig were set for X and Y resolution), but the
driver supports the TS_SET_CAL ioctl, thus old apps that do calibration
properly will be able to use the touchscreen without problems.

--
Greetings,
   Andrew
Received on Fri Apr 09 17:34:29 2004

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:49 EDT