Hi all experts:<br> If XFixesShowCursor() does not work, Can you tell me what should I consider or missing some configuration? <br><br><br><div class="gmail_quote">2011/1/6 Leo <span dir="ltr"><<a href="mailto:leo20090916@gmail.com">leo20090916@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi all:<br> I use the Kernel 2.6.35.3 and run X. TouchScreen can be added into device list. <br>
cat /var/log/Xorg.log, we can find the Ads7846's loading information.<br> But when I touch the screen, the coordinate output is always "(799, 0)", screen size is 480*800.<br>
<br>Here is xinput_calibrate output:<br><br style="color: rgb(102, 255, 153);"><span style="color: rgb(102, 255, 153);">Calibrating EVDEV driver for "ADS7846 Touchscreen" id=10</span><br style="color: rgb(102, 255, 153);">
<span style="color: rgb(102, 255, 153);"> current calibration values (from XInput): min_x=121, max_x=3931 and min_y=3775, max_y=244</span><br style="color: rgb(102, 255, 153);"><span style="color: rgb(102, 255, 153);">DEBUG we got button press event, event.xbutton.x=799 y=0</span><br>
<br>I try use the tslib to calibrate and simulator to generate XEvent, that's ok.<br>But I want to use the Evdev, So I check the calibrate code, I found something related <br>evdev.c::EvdevProcessValuators() --><br>
v[0] =<span style="color: rgb(255, 0, 0);"> xf86ScaleAxis</span>(v[0],<br> pEvdev->absinfo[ABS_X].maximum,<br> pEvdev->absinfo[ABS_X].minimum,<br> pEvdev->calibration.max_x, pEvdev->calibration.min_x);<br>
v[1] = xf86ScaleAxis(v[1],<br> pEvdev->absinfo[ABS_Y].maximum,<br> pEvdev->absinfo[ABS_Y].minimum,<br> pEvdev->calibration.max_y, pEvdev->calibration.min_y);<br>
<br>I think <span style="color: rgb(255, 0, 0);">xf86ScaleAxis <font color="#000000">should be the key place, I got the </font></span>some data from kernel:<br>pEvdev->absinfo[ABS_X].maximum = 4095<br>pEvdev->absinfo[ABS_X].minimum = 0<br>
pEvdev->absinfo[ABS_Y].maximum = 4095<br>pEvdev->absinfo[ABS_Y].minimum = 0<br><br>pEvdev->calibration.XXXX may be the data which customer set in the /etc/X11/xorg.conf.d .<br><br>Who can tell me some hints? thanks very much<br>
</blockquote></div><br>