[Gta04-owner] Linux 3.2-rc3 on GTA04

Johannes Schauer j.schauer at email.de
Tue Nov 29 11:00:03 CET 2011


Hi,

On Tue, Nov 29, 2011 at 02:44:56AM +0000, Neil Jerram wrote:
> 
> gta04:~# ts_calibrate
> xres = 480, yres = 640
> selected device is not a touchscreen I understand
> 
> And then touching on the screen with the stylus has no apparent effect.
> 
> I can probably research this further myself, but if you happen to
> know what else is wrong....

this is how to calibrate using ts_calibrate:

TSLIB_CALIBFILE=/etc/pointercal TSLIB_TSDEVICE=/dev/input/event0 TSLIB_CONSOLEDEVICE=none ts_calibrate

ts_calibrate doesnt take commandline arguments but reads environment
variables instead.

this will generate /etc/pointercal like this:

9743 -19 -3304336 -188 -11764 44979608 65536

(NO newline at the end!)

but you would have a rather old rootfs for /etc/pointercal to have any
effect.

the "modern" way to save calibration information is either via a udev
rule or with a config file in /etc/X11/xorg.conf.d/

here is my /etc/X11/xorg.conf.d/tsc2007.conf:

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "TSC2007 Touchscreen"
        Option  "Calibration"   "339 3524 3798 225"
EndSection

it works fine with my debian testing setup.

instead of setting a config file you can also use xinput to have some
immmediate effect like this:

xinput set-int-prop "TSC2007 Touchscreen" "Evdev Axis Calibration" 32 339 3524 3798 225

maybe those settings should be documented somewhere?

cheers, josch


More information about the Gta04-owner mailing list