The Motorola Development Community


Go Back   MotorolaFans.com Forums > Developments > Development
Notices

Development Hacking, development, scripts etc

Reply

MotoFans NWBE

i9i9i9's Avatar

Join Date: Jun 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Location: y

Quote  
#1
10-29-2005
Default Calibration touchscreen

Find format of /ezxlocal/download/appwrite/setup/pointercal and /etc/pointercal:

Code:
/etc/pointercal contains 7 data values separated by spaces

The second and fourth values are both zero.  The seventh value is 65536, which 
is used to scale up the calculations.

(1) This is the ratio of the screen width to the device width times the 
scalar... or,

        ( screen_topLeft_x - screen_bottomRight_x )
        ------------------------------------------- * 65536
        ( device_topLeft_x - device_bottomRight_x )

(3) This uses the ratio in (1) to calculate the screen X offset.

        65536 * screen_topLeft_x - (1) * device_topLeft_x

The remaining two values are the same ideas as above, only applied to height:

(5) is equivalent to (1), except replace "width" with "height" and "x" with "y"

(6) is equivalent to (3), except replace "width" with "height," "x" with "y," 
and "(1)" with "(5)."

The source code for writing to /etc/pointercal is in 
$QTDIR/src/kernel/qwsmouse_qws.cpp.  (See QCalibratedMouseHandler::calibrate( 
QWSPointerCalibrationData *cd ) for this information )

I'm CC:'ing this e-mail to the qt-embedded-interest mailing list since someone 
might find it interesting, and since I'd asked earlier and not received a 
response (I'm going to assume because nobody who had time to respond knew, and 
not because it was an idiotic question, although generally the latter 
assumption is safer whenever I'm involved.)
Reply With Quote


User Information
Current Phone: 6656565
Firmware: 6
Location: y

i9i9i9 is offlineReport Post
MotoFans NWBE

Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Quote  
#2
11-14-2008
Default

I stumbled upon this looking for a way to recalibrate my touchscreen. Would this be any help?

It's out of calibration on the top of the screen, and gets gradually closer to calibration as you move to the bottom. I can't access the top left buttons at all
Reply With Quote


User Information
Current Phone: MING
XCSkierFreak is offlineReport Post
Reply

Tags
calibration, touchscreen

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:55 PM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.