nanogui: Nano-X touchscreen


Previous by date: 24 Jun 2005 18:03:25 +0100 Re: broken config keys in xconfigure unveiled, Greg Haerr
Next by date: 24 Jun 2005 18:03:25 +0100 Re: Nano-X touchscreen, ER
Previous in thread:
Next in thread: 24 Jun 2005 18:03:25 +0100 Re: Nano-X touchscreen, ER

Subject: Nano-X touchscreen
From: "ER" ####@####.####
Date: 24 Jun 2005 18:03:25 +0100
Message-Id: <20050624170258.1339E3D21@xprdmailfe10.nwk.excite.com>

Hi all,
Below is a description of the problem I'm having adding a new touchscreen device to nano-X.
Your help is appreciated.

Thanks,
--ER


----- Original Message -----
From: "ER" ####@####.####
To: ####@####.####
Sent: Friday, June 24, 2005 10:19 AM
Subject: Re: Nano-X touchscreen


:
: Sorry, that didn't seem to work, I still got the following after removing
the timestamp.
: ......
: [TOUCHME] Wrong number of bytes 0 read from touch panel (expected 6)
: [TOUCHME] Wrong number of bytes 0 read from touch panel (expected 6)
: .....
:
: If it makes a difference, the driver is based on the tslib api. Piece of
the driver looks like this:
:
: input_report_abs (&adc->input_d, ABS_X, adc->x_last);
: input_report_abs (&adc->input_d, ABS_Y, adc->y_last);
: input_report_abs (&adc->input_d, ABS_PRESSURE,
: pen_down ? (ADC_VALUE_MAX -
(adc->rgl[11]>>6)) : 0);
:
: where input_d is a struct input_dev.
: If any of that makes a difference.
:
: thanks,
: --ER
:
:
:
: ---------------------------------------------------------------------
: How about leaving as short, but reading 6 bytes as suggested
: by removing last structure item?
:
: Greg
:
: : Hi Greg,
: : I'm working on the MW touchscreen interface and I ran into several
: problems.
: : I'm using kernel 2.6 and the ts_event interface is defined as
: : struct ts_event {
: : short pressure;
: : short x;
: : short y;
: : short miliseconds;
: : };
: :
: : when I use this in the header file, I get an error:
: : "Wrong number of bytes 0 read from touch panel expected 6
: :
: : when I use long instead of short I get no error but I'm not getting any
: response. I also print the event values and they appear to be well out of
: range, for example:
: : ...
: : event.x: 690000, event.y: 1572867, event.pressure: 2509
: : ...
: : Do you have any info/idea/docs that you help me understand this
interface
: so I can do this properly.
: :
: : Thanks,
: : --ER




_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Previous by date: 24 Jun 2005 18:03:25 +0100 Re: broken config keys in xconfigure unveiled, Greg Haerr
Next by date: 24 Jun 2005 18:03:25 +0100 Re: Nano-X touchscreen, ER
Previous in thread:
Next in thread: 24 Jun 2005 18:03:25 +0100 Re: Nano-X touchscreen, ER


Powered by ezmlm-browse 0.20.