[<<] [<] Page 1 of 3 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
touchscreen calibration
From: Henry Chea ####@####.#### Date: 9 Mar 2002 17:22:34 -0000 Message-Id: <ED968F412990DE4080ADEC412897784907C69B@gotz-fs1.semcon.se> Hi all, I am desperately hoping that someone can help me with this problem.. 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. I have tried using/modifying tpcal which is a contrib in the microwindows package, but I can't figure out how to use the 7 numbers it outputs. I also tried using nxcal which comes with the Pixil OE package, but the program doesn't respond to any touchscreen inputs for some reason. It simply draws the first screen asking to press the crosshairs, but doesn't do anything past that. I found out how to enter calibration data as follows: { int fd = open("/dev/ts", O_RDWR); int xmin, ymin, xmax, ymax; ioctl(fd, 10, xmin); ioctl(fd, 11, ymin); ioctl(fd, 3, xmax); ioctl(fd, 4, ymax); } But for the life of me cannot figure out how to get the proper values for xmin, ymin, xmax, and ymax. Does anybody have a calibration program that is functional, or any helpful tips on how to fix this problem? Greg Haerr, I noticed from the archives that you mentioned something about Century Software releasing a touchscreen calibrator for Microwindows. Has one actually been released? Any help would be greatly appreciated. Thanks! Cheers, //Henry Chea Semcon Sweden AB | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] touchscreen calibration
From: Alex Holden ####@####.#### Date: 9 Mar 2002 17:52:08 -0000 Message-Id: <3C8A4A67.6050305@linuxhacker.org> 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] touchscreen calibration
From: Julian Smart ####@####.#### Date: 9 Mar 2002 21:14:03 -0000 Message-Id: <5.0.2.1.1.20020309205937.03c3b140@pop3.norton.antivirus> At 17:46 09/03/2002 +0000, you wrote: >PS. I finished implementing shaped windows yesterday and wrote a clone of >Xeyes. It should be in the latest snapshot. Cool!! Does this mean you've done transparent pixmap drawing too...? Julian ======================================================================== Julian Smart ####@####.#### 3 Water Street http://www.anthemion.co.uk Stamford, Lincs +44 (0)1780 765976 U.K. PE9 2NJ ======================================================================== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] touchscreen calibration
From: Alex Holden ####@####.#### Date: 9 Mar 2002 22:42:54 -0000 Message-Id: <3C8A8E94.20608@linuxhacker.org> Julian Smart wrote: > Cool!! Does this mean you've done transparent pixmap drawing too...? Not yet but I am working on it... -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] touchscreen calibration
From: Simon Wood ####@####.#### Date: 11 Mar 2002 14:46:08 -0000 Message-Id: <44632C76B97BD211AF6B00805FADCAB208790B7E@exchange.saltaire.pace.co.uk> If I remember correctly I think you find that the nxcal application outputs the values for calibration to the STDOUT, these will need to be redirected into the calibration file for the touchscreen driver (/etc/tpcal??). At least I believe that's how it work(ed/s) on my Mips palmtop. Simon -----Original Message----- From: Henry Chea ####@####.#### Sent: Monday, March 11, 2002 2:15 PM To: ####@####.#### Subject: RE: [nanogui] touchscreen calibration 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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] touchscreen calibration
From: Alex Holden ####@####.#### Date: 11 Mar 2002 15:49:47 -0000 Message-Id: <3C8CD0B4.5040801@linuxhacker.org> Henry Chea wrote: > The problem seems that the modified nano-X server does not work with my > touchscreen/driver properly. I thought the ADS Graphicsmaster used a ucb1200 based touchscreen interface? That's what linux/Documentation/arm/SA1100/GraphicsMaster says. Or are you running an old kernel that doesn't have the new ucb1x00 interface perhaps? -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] touchscreen calibration
From: Alex Holden ####@####.#### Date: 11 Mar 2002 15:51:39 -0000 Message-Id: <3C8CD12A.8010404@linuxhacker.org> Simon Wood wrote: > If I remember correctly I think you find that the nxcal application outputs > the values for calibration to the STDOUT, these will need to be redirected > into the calibration file for the touchscreen driver (/etc/tpcal??). Sorry, this confusion is due to my not realising there was already a progam called nxcal when I wrote my new Nano-X calibrator program. I'll change the name. -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] touchscreen calibration
From: Jordan Crouse ####@####.#### Date: 11 Mar 2002 15:58:36 -0000 Message-Id: <1015861791.18313.44.camel@cosmic> I'll bet Simon means tpcal: microwin/src/contrib/GPL/tpcal nxcal works for me - its a good name, to the point, and similar to all the other nx utilities. Jordan On Mon, 2002-03-11 at 08:45, Alex Holden wrote: > Simon Wood wrote: > > If I remember correctly I think you find that the nxcal application outputs > > the values for calibration to the STDOUT, these will need to be redirected > > into the calibration file for the touchscreen driver (/etc/tpcal??). > > Sorry, this confusion is due to my not realising there was already a > progam called nxcal when I wrote my new Nano-X calibrator program. I'll > change the name. > > -- > ------------ Alex Holden - http://www.linuxhacker.org ------------ > If it doesn't work, you're not hitting it with a big enough hammer > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] touchscreen calibration
From: Simon Wood ####@####.#### Date: 11 Mar 2002 15:59:51 -0000 Message-Id: <44632C76B97BD211AF6B00805FADCAB208790B7F@exchange.saltaire.pace.co.uk> I think that I might be more confused.... I'm thinking of the tpcal application in the 'src/contrib' directory. Apologies for any confusion, Simon Wood -----Original Message----- From: Alex Holden ####@####.#### Sent: Monday, March 11, 2002 3:46 PM To: Simon Wood Cc: ####@####.#### Subject: Re: [nanogui] touchscreen calibration Simon Wood wrote: > If I remember correctly I think you find that the nxcal application outputs > the values for calibration to the STDOUT, these will need to be redirected > into the calibration file for the touchscreen driver (/etc/tpcal??). Sorry, this confusion is due to my not realising there was already a progam called nxcal when I wrote my new Nano-X calibrator program. I'll change the name. -- ------------ Alex Holden - http://www.linuxhacker.org ------------ If it doesn't work, you're not hitting it with a big enough hammer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 3 [>] [>>] |