tslib Issue
Hi,
I have successfully build and then run several OE images on my target hardware (h1940) - and have noticed an interesting oddity (bug?).
If I run the opie-image for example, everything works just great. However, if I run an X-based image (like, say x11-gpe-image) when the GUI starts up tslib calibration is run ... but then basically thrown away, as the driver for the touchscreen is set to evdev by default (and the touchscreen isn't calibrated / does not work right). If I manually build and install xf86-input-tslib, and then configure the input as tslib (not evdev) - once I restart gpe-dm it works as expected!
Is this supposed to be the case, or perhaps something not configured quite right in the builds?
Thanks!
... Russell
I am seeing the same thing using the omap3-palmtop-image for Gumstix Overo. On first boot, /etc/X11/Xinit.d/89xTs_Calibrate doesn't find /etc/pointercal so it runs ts_calibrate. The calibration doesn't take effect until I reboot though - restarting gpe-dm doesn't solve the problem.
I think that the library /usr/lib/ts/linear.so looks for /etc/pointercal and defaults to some preset values if the file doesn't exist. I thought that restarting gpe-dm would reload linear.so (which fuser suggests it does) but this doesn't solve the problem. It would appear that I am missing something...
--
Neil
Quoted 17 lines · On 11-02-01 12:37 PM, [email protected] wrote:
Hi,
I have successfully build and then run several OE images on my target hardware (h1940) - and have noticed an interesting oddity (bug?).
If I run the opie-image for example, everything works just great. However, if I run an X-based image (like, say x11-gpe-image) when the GUI starts up tslib calibration is run ... but then basically thrown away, as the driver for the touchscreen is set to evdev by default (and the touchscreen isn't calibrated / does not work right). If I manually build and install xf86-input-tslib, and then configure the input as tslib (not evdev) - once I restart gpe-dm it works as expected!
Is this supposed to be the case, or perhaps something not configured quite right in the builds?
Thanks!
... Russell
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
After a few cycles of:
# rm /etc/pointercal # shutdown -r now # stat /etc/pointercal
I found that pointercal is only accessed on the first restart after it has been modified/created.
The problem seems to be that Xorg is started before ts_calibrate runs for the first time. I found a fairly simple hack that seems to fix the problem.
# cp /etc/X11/Xinit.d/89xTs_Calibrate /etc/rc5.d/S89xTs_Calibrate
Though this fails to address the situation where ts_calibrate is run and pointercal already exists - a manual reboot is still necessary for the new calibration to take effect. Does anyone know of a better, more permanent fix?
--
Neil
Quoted 47 lines · Neil MacMunn
I am seeing the same thing using the omap3-palmtop-image for Gumstix Overo. On first boot,
/etc/X11/Xinit.d/89xTs_Calibratedoesn't find/etc/pointercalso it runsts_calibrate. The calibration doesn't take effect until I reboot though - restarting gpe-dm doesn't solve the problem.I think that the library
/usr/lib/ts/linear.solooks for/etc/pointercaland defaults to some preset values if the file doesn't exist. I thought that restarting gpe-dm would reload linear.so (which fuser suggests it does) but this doesn't solve the problem. It would appear that I am missing something...--
NeilQuoted 18 lines · On 11-02-01 12:37 PM, [email protected] wrote:
Hi,
I have successfully build and then run several OE images on my target hardware (h1940) - and have noticed an interesting oddity (bug?).
If I run the opie-image for example, everything works just great. However, if I run an X-based image (like, say x11-gpe-image) when the GUI starts up tslib calibration is run ... but then basically thrown away, as the driver for the touchscreen is set to evdev by default (and the touchscreen isn't calibrated / does not work right). If I manually build and install xf86-input-tslib, and then configure the input as tslib (not evdev) - once I restart gpe-dm it works as expected!
Is this supposed to be the case, or perhaps something not configured quite right in the builds?
Thanks!
Quoted 7 lines
... Russell
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 5 lines · On (01/02/11 14:37), [email protected] wrote:
Hi,
I have successfully build and then run several OE images on my target hardware (h1940) - and have noticed an interesting oddity (bug?).
If I run the opie-image for example, everything works just great. However, if I run an X-based image (like, say x11-gpe-image) when the GUI starts up tslib calibration is run ... but then basically thrown away, as the driver for the touchscreen is set to evdev by default (and the touchscreen isn't calibrated / does not work right). If I manually build and install xf86-input-tslib, and then configure the input as tslib (not evdev) - once I restart gpe-dm it works as expected!
are you using X11 with evdev driver then tslib will not be used at all. You have to use xinput-calibrator.
Quoted 12 lines
Is this supposed to be the case, or perhaps something not configured quite right in the builds?
Thanks!
... Russell
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Hi,
Perhaps a dumb question, but - should the recipe for x11-gpe-image be updated then? I ask because it's what set up tslib (rather than xinput-calibrator), and then evdev.
Thanks!
... Russell
Quoted 1 line · Khem Raj
Quoted 21 lines · On (01/02/11 14:37), [email protected] wrote:
Quoted 5 lines
Hi,
I have successfully build and then run several OE images on my target hardware (h1940) - and have noticed an interesting oddity (bug?).
If I run the opie-image for example, everything works just great. However, if I run an X-based image (like, say x11-gpe-image) when the GUI starts up tslib calibration is run ... but then basically thrown away, as the driver for the touchscreen is set to evdev by default (and the touchscreen isn't calibrated / does not work right). If I manually build and install xf86-input-tslib, and then configure the input as tslib (not evdev) - once I restart gpe-dm it works as expected!
are you using X11 with evdev driver then tslib will not be used at all. You have to use xinput-calibrator.
Quoted 5 lines
Is this supposed to be the case, or perhaps something not configured quite right in the builds?
Thanks!
Quoted 7 lines
... Russell
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 5 lines
_______________________________________________
Openembedded-users mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users
From [email protected] Sun Feb 13 07:08:10 2011
Received: from mail-fx0-f47.google.com ([209.85.161.47])
by linuxtogo.org with esmtp (Exim 4.72) (envelope-from <[email protected]>) id 1PoV7y-0000AN-Qc for [email protected]; Sun, 13 Feb 2011 07:08:10 +0100 Received: by fxm17 with SMTP id 17so3929381fxm.6 for <[email protected]>; Sat, 12 Feb 2011 22:07:03 -0800 (PST)
DKIM-Signature: v