Re: Live Touchscreen Calibration [WAS: magictouch touch screen driver]

damian gruszka <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
Hi,
I don't think a functionality like this is really necessary. A 
calibration utility is started by a user once
to find the mapping from touchscreen coordinates to "real" screen. In 
general it is a matrix doing shifting,
stretching and rotating. To use scrn->currentMode is from my perspective 
not a hack. What can this function do
more than reading these fields from screen structure. Another question 
is, what should be done in  case of
changing geometry? Automatically adjust the matrix? That is a 90% 
solution. What about external scaling facilities?
 "Letter box" display? IMHO, this should be done by userland program 
using DeviceControl.


Best Regards
Damian

[email protected] wrote on 10.06.2005 01:00:54:

 > It would be great if you could add that... what do you mean by "live
 > calibration" ?
 >
 > It seems to me that calibration should be (mostly) a userland utility,
 > that you do not want to run everytime the Xserver starts. I probably
 > misunderstood what you meant.
 >
 > My only issue currently, is that if resolution changes, the mapping from
 > touchscreen coords to screen coords changes, thus the touchscreen driver
 > should be able to be notified, or query what the actual screen resolution
 > is.
 >
 > The trick mentioned previsously about querying the current modeline would
 > work, but it's a hack... something cleaner (portable, etc.)  would be
 > nicer.
 >
 > I admit I do not know the specifics of touchpad/stylus support, but I
 > imagine that is also the only dynamic/live resolution support that would
 > be necessary ?
 >
 > Something like XFGetCurrentMonitorResolution(displayID, &width, &height)
 > ...
 >
 > BTW, I submitted the source for the magictouch driver on this mailling
 > list, is there any chance it will appear in the XFree86 tree someday ? If
 > a comitter needs changes, fixes to it or has questions, I'll be happy to
 > help as I can.
 >
 > bruno
 >
 > On Thu, 9 Jun 2005, Fred Gleason wrote:
 >
 > > On Tuesday 07 June 2005 16:04, Tristan Van Berkom wrote:
 > > > Since touchscreen drivers seem to be getting back in style, maybe
 > > > we should write up some live calibration support ;-)
 > >
 > > I'm game.  I've actually been toying with the idea of doing 
something like
 > > this for the ELO drivers for some time.
 > >
 > > Before I go charging off and reinventing the wheel, does anything
 > simiklar to
 > > this exist already?  Ideally, it should be sufficiently generic 
that any
 > > input device that uses absolute coordinates will be able to use it.
 > >
 > > Cheers!
 > >
 >
 > _______________________________________________
 > Devel mailing list
 > [email protected]
 > http://XFree86.Org/mailman/listinfo/devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.