nanogui: touchscreen calibration


Previous by date: 11 Mar 2002 14:20:43 -0000 Re: GrFillPoly doesn't work on concave polygon, jonathan.foster.philips.com
Next by date: 11 Mar 2002 14:20:43 -0000 Re: touchscreen calibration, Simon Wood
Previous in thread: 11 Mar 2002 14:20:43 -0000 Re: touchscreen calibration, Alex Holden
Next in thread: 11 Mar 2002 14:20:43 -0000 Re: touchscreen calibration, Simon Wood

Subject: RE: [nanogui] touchscreen calibration
From: Henry Chea ####@####.####
Date: 11 Mar 2002 14:20:43 -0000
Message-Id: <ED968F412990DE4080ADEC412897784907C6A0@gotz-fs1.semcon.se>

Hi Alex,

I was able to compile Nano-X and nxcal according to your instructions.
However, things don't quite work yet.

The platform I am using is the ADS Graphicsmaster using an SA1110 cpu.

The problem seems that the modified nano-X server does not work with my
touchscreen/driver properly.

Your instructions require /dev/ucb1x00-ts be a character device with major
10 and minor 14, which does not point to the touchscreen on my hardware.
When I tried running nano-X with ucb1x00-ts set to major 10 and minor 14, I
get the following error:

----------------------------------
Error 19 opening touch panel
Cannot initialise mouse
[1]+  Exit 1                  ./nano-X
Not all parameters were present in the calibration file /etc/nxcal.cal
Couldn't connect to Nano-X server
----------------------------------

For my hardware, the touchscreen is major 11 minor 0.

After running the command "mknod ucb1x00-ts c 11 0", I tried running the
nano-X server again.  This time nano-X does not quit prematurely.  However
any touchscreen inputs return the following error:

----------------------------------
Wrong number of bytes 6 read from touch panel (expected 16)
----------------------------------

That is understandable since the touchscreen driver I need to use for my
hardware is mou_ads, not mou_ucb1x00 .  After recompiling nano-X to use
mou_ads instead, the new nano-X server runs fine, and the nxcal program runs
without error.  However, after the nxcal program gets its four calibration
points, it fails to actually calibrate my touchscreen.  IOW, nxcal believes
that it calibrated my touchscreen fine but no actual changes are made.

This leads me to believe that the mou_ads driver for my hardware needs to be
rewritten to take advantage of the new calibration functions.  Unfortunately
I am not skilled enough to do this!

Any ideas or help?

Cheers,
//Henry Chea
Semcon Sweden AB 

-----Original Message-----
From: Alex Holden
To: Henry Chea
Cc: ####@####.####
Sent: 3/9/2002 6:46 PM
Subject: Re: [nanogui] touchscreen calibration

Henry Chea wrote:
> I am trying to get my touchscreen calibrated in Nano-X.  I am using an
ADS
> graphicsmaster platform (strongarm cpu, 640 x 480 lcd with
touchscreen)
> along with microwindows 0.89pre8.

Hi Henry. Jordan and I have written a new touchscreen driver for the 
UCB1x00 touchscreen interface in recent kernels, and I've created a new 
client side touchscreen calibration interface and calibration program.

Please try it out on your hardware and let me know if it works for you. 
You can get it from a recent snapshot of my current tree from:
http://www.linuxhacker.org/pub/cvs-snapshots/microwin-aph/

Select UCB1X00MOUSE=Y in the config file and uncomment the lines in 
launcher.cnf which say "$startup bin/nxcal" and "Recalibrate - bin/nxcal

-c". The touchscreen device file should be called /dev/ucb1x00-ts and be

a character device with major 10 and minor 14. The user the calibration 
program runs as should have permission to read and write a file called 
/etc/nxcal.cal (you can create the file as root and then chown it to the

user you run Microwindows as).

I'd also be particularly interested to hear how well the jitter 
filtering works for you as I spent quite a bit of time getting a 
solution that works well on the TuxScreen, but don't have any other 
ucb1200 based machines to test it with.

I'm hoping that people with access to the suitable hardware will port 
the other touchscreen drivers to the new calibration API so they can all

benefit from the new client calibration program.

PS. I finished implementing shaped windows yesterday and wrote a clone 
of Xeyes. It should be in the latest snapshot.

-- 
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer

Previous by date: 11 Mar 2002 14:20:43 -0000 Re: GrFillPoly doesn't work on concave polygon, jonathan.foster.philips.com
Next by date: 11 Mar 2002 14:20:43 -0000 Re: touchscreen calibration, Simon Wood
Previous in thread: 11 Mar 2002 14:20:43 -0000 Re: touchscreen calibration, Alex Holden
Next in thread: 11 Mar 2002 14:20:43 -0000 Re: touchscreen calibration, Simon Wood


Powered by ezmlm-browse 0.20.