TouchScreen Ads7846 can not be calibrated!

Leo leo20090916 at gmail.com
Thu Jan 6 19:59:38 PST 2011


Hi all experts:
   If XFixesShowCursor() does not work, Can you tell me what should I
consider or missing some configuration?


2011/1/6 Leo <leo20090916 at gmail.com>

> Hi all:
>     I use the Kernel 2.6.35.3 and run X.  TouchScreen can be added into
> device list.
> cat /var/log/Xorg.log, we can find the Ads7846's loading information.
>    But when I touch the screen, the coordinate output is always "(799, 0)",
> screen size is 480*800.
>
> Here is xinput_calibrate output:
>
> Calibrating EVDEV driver for "ADS7846 Touchscreen" id=10
>     current calibration values (from XInput): min_x=121, max_x=3931 and
> min_y=3775, max_y=244
> DEBUG we got button press event, event.xbutton.x=799 y=0
>
> I try use the tslib to calibrate and simulator to generate XEvent, that's
> ok.
> But I want to use the Evdev, So I check the calibrate code, I found
> something related
> evdev.c::EvdevProcessValuators() -->
>             v[0] = xf86ScaleAxis(v[0],
>                     pEvdev->absinfo[ABS_X].maximum,
>                     pEvdev->absinfo[ABS_X].minimum,
>                     pEvdev->calibration.max_x, pEvdev->calibration.min_x);
>             v[1] = xf86ScaleAxis(v[1],
>                     pEvdev->absinfo[ABS_Y].maximum,
>                     pEvdev->absinfo[ABS_Y].minimum,
>                     pEvdev->calibration.max_y, pEvdev->calibration.min_y);
>
> I think xf86ScaleAxis should be the key place, I got the some data from
> kernel:
> pEvdev->absinfo[ABS_X].maximum = 4095
> pEvdev->absinfo[ABS_X].minimum = 0
> pEvdev->absinfo[ABS_Y].maximum = 4095
> pEvdev->absinfo[ABS_Y].minimum = 0
>
> pEvdev->calibration.XXXX may be the data which customer set in the
> /etc/X11/xorg.conf.d .
>
> Who can tell me some hints? thanks very much
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110107/76a05504/attachment-0001.htm>


More information about the xorg-devel mailing list