All of lore.kernel.org
 help / color / mirror / Atom feed
From: GNUtoo <GNUtoo@no-log.org>
To: openembedded-devel@lists.openembedded.org
Subject: Handling different touchscreen calibration systems
Date: Thu, 13 May 2010 19:17:07 +0200	[thread overview]
Message-ID: <1273771027.8785.26.camel@gnutoo-desktop> (raw)

hi,
There are several way to calibrate a touchscreen:
*ts_calibrate : it uses the framebuffer and so it must be started before
xorg(an init script can do that). works only for tslib.
*xtscal : works only for kdrive and tslib(if I understood well)
*xinput-calibrator: works with xorg and can calibrate many things,but I
had huge issues with it with tslib,with /etc/pointercal from
ts_calibrate it works fine but without it can't calibrate...
Note that it also supports other protocols like evdev,evtouch etc...
*other specific uttilities for evtouch etc...

How should someone handle this.
*in machine config?
*in the distro?
*in the image?

Also to add the complexity:
*ts_calibrate should be an init script
*xinput-calibrator and xtscal are Xsession.d scripts

Moreover theses scripts could be machine specific:

*For instance I've 2 touch screens on the bug device,and so I need a
specific init script for calibrating:
#!/bin/sh
if [ ! -e /etc/pointercal ]
then
	TSLIB_CONSOLEDEVICE=none TSLIB_FBDEVICE=/dev/fb1
TSLIB_TSDEVICE=/dev/input/bmi_lcd_ts4 ts_calibrate & 
	TSLIB_CONSOLEDEVICE=none TSLIB_FBDEVICE=/dev/fb2
TSLIB_TSDEVICE=/dev/input/bmi_lcd_ts5 ts_calibrate &
	until [ -f /etc/pointercal ]
		do
			sleep 1
		done
	killall ts_calibrate
fi

That script is shipped with a recipe named tslib-init,which I didn't
commit yet because of this mail.

*htcdream has the same issue with xinput-calibrator (require having a
calibrated /etc/pointercal so it makes it useless )

*bug 2.x seem to need ts_calibrate too but only for one screen

*om-gta02 has an evdev driver which requires to feed /sys nodes with
some calibration data,the script used is an Xsession.d script that uses
xinput-calibrator



I had the idea of making recipes for handling int scripts or Xsession.d
scripts,and including them in XSERVER in the machine configuration but
I'm not shure it's a good idea.

Denis.




             reply	other threads:[~2010-05-13 17:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13 17:17 GNUtoo [this message]
2010-05-13 19:10 ` Handling different touchscreen calibration systems Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273771027.8785.26.camel@gnutoo-desktop \
    --to=gnutoo@no-log.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.