Touch screen abilitation on other Ubuntu distrib.on mini6410

fede72bari
Dear All,

we had to install a different distribution of Ubuntu than the one given by
FriendlyARM on our mini6410 for several reasons. We are not able to
activate the touch screen function. Could somebody give us an help on which
components/driver are necessary and how install and configure them? Thank
you a lot.

F.

skalsiu88
First, you have to check respons yours Touchscreen:

cat /dev/input/eventX

If you touch the screen, should be some garbage output. If this is OK
remove Synaptics Driver:

sudo apt-get remove xserver-xorg-input-synaptics

Install tslib:

sudo apt-get install xserver-xorg-input-tslib libts-bin

Calibrate Touchscreen:

TSLIB_TSDEVICE=/dev/input/eventX
TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_TSDEVICE TSLIB_CONFFILE
ts_calibrate

After calibration process restart the X-Server. Probably everything will be
ok :D

Łukasz Skalski
www.lukasz-skalski.com

fede72bari
thank you skalsius88
I have 2 problems when I try your procedure:
1. I find the touchscreen event executing
   cat /dev/touchscreen-1wire
   and not on
   cat /dev/input/eventX
2. when I execute ts_calibrate I receive this error
   ts_open: not a directory

I've created the rootfs packet through rootstock and on boot the system
execute this code
#! /bin/sh
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
if [ ! -s /etc/pointercal ] ; then

mkdir /dev/input  2>/dev/null
mknod /dev/input/event1 c 13 64 2>/dev/null
mknod /dev/fb0 c 29 0 2>/dev/null

mknod /dev/touchscreen c 10 180 2>/dev/null
mknod /dev/touchscreen-1wire c 10 181 2>/dev/null
mknod /dev/s3c2410_serial3 c 204 67 2>/dev/null

ts_cal
mv /pointercal /etc
fi
exec /sbin/init
:
obviously the "ts_cal" command fail because is not found!

where is my mistake?

Juergen Beisert
You need the 'one-wire-ts-input' module from FA to be able to work with the
tslib and the '/dev/touchscreen-1wire'. The '/dev/input/eventX' method only
works if you are running a regular mainline kernel.

fede72bari
Where can I find this module?
Where should I put it? Is it a problem of kernel compilation?
Could you please explain to me the steps to do?
I downloaded all the documentation about the mini6410 FA board but I can't
find instructions on how to proceed.

Federico
Dear Juergen,

we worked around a bit and fixed some things. Now we are freezed again in a
trouble that we discovered other people here experienced and still haven't
fixed. This is what get now: everything seems to work correctly during the
first boot on which the (graphical) calibration starts, but when we reboot
after the first boot/calibration the event of touch screen is not captured
anymore or even not generated. If we try to run manually by prompt command
the calibration procedure after the first calibration boot this gives an
error. It's very strange because the first and the next boot processes are
the same and so seem to be the environment variables: the only difference
between the first boot and the next ones is an "if" that just launch the
calibration procedure by the same boot. Therefore, we cannot understand why
the command of the calibration works just when it is evocated by the first
boot and not when we launch the same command manually by the terminal? Why
the event of thouched screen is not detected? Every suggestion could help.
Thanks.

Federico and Daniele.