[Gta04-owner] Linux 3.2-rc3 on GTA04

NeilBrown neilb at suse.de
Tue Nov 29 01:25:23 CET 2011


On Mon, 28 Nov 2011 23:58:39 +0000 Neil Jerram <neil at ossau.homelinux.net>
wrote:

> On 26.11.2011 11:43, NeilBrown wrote:
> > Hi again,
> >
> >  I have just updated
> >     git://neil.brown.name/gta04#merge
> >
> >  to 3.2-rc3.
> 
> > All input very welcome,
> 
> For me it boots successfully into X.  Touchscreen input seems to be 
> off/wrong in a couple of ways though:
> 
> - the Y coordinate appears to be inverted; i.e. Y_reported = 640 - 
> Y_intended
> 
> - the reported X coordinate is a little (about 10% of screen width) to 
> the left of where I actually pressed.
> 
> "Reported" values are inferred from where the cursor is drawn, and also 
> from the effect of whatever is underneath that screen position.

Sounds like you might need to run ts_calibrate again.  I wonder why.

ts_calibrate stores calibration info in /etc/pointercal
The calibration handles stretching and rotation and reflecting etc.

I would probably take a copy of that file, then run ts_calibrate, then
 look at the difference.

You need to run ts_calibrate without X running, and you might need to 
tell it where to find the touchscreen device.
e.g.
  
  export  TSLIB_TSDEVICE=/dev/input/event1
  ts_calibrate

touch it is safer to get udev to create a more meaningful device name.
i.e. have a file
/etc/udev/rules.d/55-touchscreen.rules

containing

SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0"

Then whichever /dev/input/eventXX device is the touchscreen will get linked to
  /dev/input/touchscreen0

and you can use "/dev/input/touchscreen0" instead of "/dev/input/event1".



> That's as far as I've got for now.
> 
>           Neil
> 
> (Note that I'm new to kernel compiling, so it's possible that I've done 
> something wrong in the process...  What I did was:
>    download the toolchain you specified
>    engage brain :-) and download the i686 one instead, since I don't 
> actually have x86_64
>    export PATH and CROSS_COMPILE as you specified
>    export ARCH=arm
>    . the angstrom environment-setup
>    make gta04a3_defconfig
>    make uImage
>    make modules
>    export INSTALL_MOD_PATH=`pwd`/install
>    mkdir install
>    make modules_install
>    copy arch/arm/boot/uImage onto GTA04
>    copy install/lib/modules/3.2.0-rc3+ onto GTA04
> )

Looks good.  
I add INSTALL_MOD_STRIP=1  to the 'make modules_install' line so they aren't
so big, but the rest is much the same.

NeilBrown


> 
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo/gta04-owner

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20111129/32d76084/attachment.bin>


More information about the Gta04-owner mailing list