eGalax Touch Screen driver

3,527 views
Skip to first unread message

MaNu

unread,
Dec 27, 2010, 10:21:48 AM12/27/10
to Beagle Board
Hi,

I bought a Lilliput 669GL monitor with touch screen via USB (eGalax).
It works ok, at 800x480, but for the hdmi cable: bad quality... not
well shielded.

Took few days trying to install the touch screen driver in Ubuntu
10.10 but it's resulting very difficult. The issue is that the driver
is only compatible for distributions which used xorg.conf. (Ubuntu 8
and previously I think). The script that installs the driver doesn't
work if doesn't find /etc/X11/xorg.conf.

Googling I found one way to create this file:

- enter in console mode
- stop gdm
- Xorg -configure

The command returns a list of video drivers a later:

No devices to configure. Configuration failed.
dxxSigGiveUp: Closing Log

So file xorg.conf is not created...

I've also tried to create a blank file and to use one template found
in '/usr/share/doc..' In both cases I got install the driver but once
I reboot the system it freezes up in:

[ OK ]bling additional executable binary formats binfmt-support

and it doesn't load X11...

Any suggest?

Thank you very much.

MaNu

unread,
Dec 29, 2010, 9:59:34 AM12/29/10
to Beagle Board
Well... I managed to boot X11: changing permissions...
I've installed the latest version of the driver (beta version), but
when I reboot and try to execute the calibration tool I get:

/usr/bin/eGalaxTouch: 1: Syntax error: '(' unexpected

I get this error when I execute the tool using "sudo". If execute as
"user" or as "su" a get:

/usr/bin/eGalaxTouch: cannot execute binary file

I guess the problem deals with the permissions...because I've
installed the driver in my desktop and works ok whatever execute the
tool ...

Any suggest?

Thank u very much.

Robert Nelson

unread,
Dec 29, 2010, 12:31:40 PM12/29/10
to beagl...@googlegroups.com
On Wed, Dec 29, 2010 at 8:59 AM, MaNu <manw...@hotmail.com> wrote:
> Well... I managed to boot X11: changing permissions...
> I've installed the latest version of the driver (beta version), but
> when I reboot and try to execute the calibration tool I get:
>
> /usr/bin/eGalaxTouch: 1: Syntax error: '(' unexpected
>
> I get this error when I execute the tool using "sudo". If execute as
> "user" or as "su" a get:
>
> /usr/bin/eGalaxTouch: cannot execute binary file
>
> I guess the problem deals with the permissions...because I've
> installed the driver in my desktop and works ok whatever execute the
> tool ...

Nope, the issue is worse:

from: eGalaxTouch-3.03.4510-32b-k26.tar.gz

voodoo@voodoo-e6400:/tmp/eGal/eGalaxTouch32/eGalaxTouch32$ file eGalaxTouch
eGalaxTouch: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not
stripped

---------------------------------------------------------------------^^^^^

It's a x86 binary, so completely useless on arm...

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

MaNu

unread,
Dec 29, 2010, 3:49:14 PM12/29/10
to Beagle Board
Thank you Robert,

I found the following info that I think is related with my problem:

http://elinux.org/Xenarc_USB_touchscreen_for_Beagleboard/OMAP3_EVM

Do you think this procedure should work? I'm on it... just in case...

Thank you.

On 29 dic, 18:31, Robert Nelson <robertcnel...@gmail.com> wrote:

Robert Nelson

unread,
Dec 29, 2010, 4:09:36 PM12/29/10
to beagl...@googlegroups.com
On Wed, Dec 29, 2010 at 2:49 PM, MaNu <manw...@hotmail.com> wrote:
> Thank you Robert,
>
> I found the following info that I think is related with my problem:
>
> http://elinux.org/Xenarc_USB_touchscreen_for_Beagleboard/OMAP3_EVM
>
> Do you think this procedure should work? I'm on it... just in case...

i'd give it try,

You shouldn't need to build evtouch, as it's built in ubuntu's repo:
http://packages.ubuntu.com/maverick/xserver-xorg-input-evtouch

MaNu

unread,
Dec 29, 2010, 5:37:45 PM12/29/10
to Beagle Board
I copied evtouch, same version, from my laptop; I changed xorg.conf
and created 69-touchscreen.rules: It still not working. In fact: X
doesn't boot.

I surrender :-( At least, using Ubuntu...

Does anyone install eGalax driver for the BB in any distribution
(maemo, meego, android) ?

Thanks you.

On 29 dic, 22:09, Robert Nelson <robertcnel...@gmail.com> wrote:

Robert Nelson

unread,
Dec 29, 2010, 5:50:47 PM12/29/10
to beagl...@googlegroups.com
On Wed, Dec 29, 2010 at 4:37 PM, MaNu <manw...@hotmail.com> wrote:
> I copied evtouch, same version, from my laptop; I changed xorg.conf
> and created 69-touchscreen.rules: It still not working. In fact: X
> doesn't boot.

What exactly did you copy from your x86 laptop? (they won't work if
they are x86 binaries)

>
> I surrender :-( At least, using Ubuntu...
>
> Does anyone install eGalax driver for the BB in any distribution
> (maemo, meego, android) ?

Regards,

Lioric Z3

unread,
Dec 29, 2010, 7:47:57 PM12/29/10
to beagl...@googlegroups.com
Is not eGalax support already in the kernel? Im positively certain that they are part of mainline


Lioric


> Date: Wed, 29 Dec 2010 16:50:47 -0600
> Subject: Re: [beagleboard] Re: eGalax Touch Screen driver
> From: robert...@gmail.com
> To: beagl...@googlegroups.com
> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>

MaNu

unread,
Jan 19, 2011, 3:43:02 PM1/19/11
to Beagle Board
Hello again,

finally I've decided to move to Android: Ubuntu runs too slow for my
needs.

Now I'm more confused than ever in how to enable a touch screen on the
BB.

I've been "googling" a lot but I haven't found any useful info. I've
just got one conclusion: I must to use tslib. I didn't find any
successful project using android + egalax touch screen: it seems that
this panel is not completely USB HID compliant.

Any advice? Does anyone know any usb touch screen tested and
documented in Android?. I have no problem in change my TS or/and my
TFT (lilliput)...

Thanks in advance.

On 29 dic 2010, 23:50, Robert Nelson <robertcnel...@gmail.com> wrote:
> On Wed, Dec 29, 2010 at 4:37 PM, MaNu <manwe...@hotmail.com> wrote:
> > I copied evtouch, same version, from my laptop; I changed xorg.conf
> > and created 69-touchscreen.rules: It still not working. In fact: X
> > doesn't boot.
>
> What exactly did you copy from your x86 laptop? (they won't work if
> they are x86 binaries)
>
>
>
> > I surrender :-( At least, using Ubuntu...
>
> > Does anyone installeGalaxdriverfor the BB in any distribution

Rico & Gaby Naef

unread,
Jan 20, 2011, 2:16:23 PM1/20/11
to Beagle Board
Hello
I found this aftera a lot of trial and error.

http://wiki.ubuntuusers.de/Baustelle/Verlassen/Touchscreen

http://wiki.ubuntuusers.de/XServer?redirect=no

The X-server is automated that's why entries in xorg.conf will not
work.
I'm going to try once more and see what happens.
Did not receive much from the cat /dev/input/evtouch_event until now

> Hello again,

> Thanks in advance.

--
Rico & Gaby Naef

!!!!! Achtung !!!!!
Neue Adresse famil...@bluewin.ch
*** ********

MaNu

unread,
Feb 10, 2011, 2:40:21 PM2/10/11
to Beagle Board
Well...

I've been doing more attempts... trying to make it work my touch
screen: there was no way. I've built Android's file system with TSlib
but it still not working. I can't see anything when I touch the
screen: no event.

After googling a lot, I only have read many many problems with egalax
TS in linux in general and no one successful case in Android. So, I
surrender.

I can't understand how is so difficult to make it work a TS in
android. It doesn't make sense: all the tablet PCs and mobile phones
that use Android have a TS....

Can someone give a hint please? Any TS verified for beagle board in
Android?

In the announcement of Froyo 2.2, in this forum, is said that touch
screen is supported from previous releases. I asked but no one
response to me:

http://groups.google.com/group/beagleboard/browse_thread/thread/38e5370b8a07cfe6/ddfee4cd38cc4f42?lnk=gst&q=froyo+2.2#ddfee4cd38cc4f42

As you can see I'm very puzzled XD

Thank you in advance by any comment.

On 20 ene, 20:16, Rico & Gaby Naef <familyn...@bluewin.ch> wrote:
> Hello
> I found this aftera a lot of trial and error.
>
> http://wiki.ubuntuusers.de/Baustelle/Verlassen/Touchscreen
>
> http://wiki.ubuntuusers.de/XServer?redirect=no
>
> The X-server is automated that's why entries in xorg.conf will not
> work.
> I'm going to try once more and see what happens.
> Did not receive much from the cat /dev/input/evtouch_event until now
>
>
>
> > Hello again,
> > finally I've decided to move to Android: Ubuntu runs too slow for my
> > needs.
> > Now I'm more confused than ever in how to enable a touch screen on the
> > BB.
> > I've been "googling" a lot but I haven't found any useful info. I've
> > just got one conclusion: I must to use tslib.  I didn't find any
> > successful project using android +egalaxtouch screen: it seems that
> > this panel is not completely USB HID compliant.
> > Any advice? Does anyone know any usb touch screen tested and
> > documented in Android?.  I have no problem in change my TS or/and my
> > TFT (lilliput)...
> > Thanks in advance.
> > On 29 dic 2010, 23:50, Robert Nelson <robertcnel...@gmail.com> wrote:
> >> On Wed, Dec 29, 2010 at 4:37 PM, MaNu <manwe...@hotmail.com> wrote:
> >>> I copied evtouch, same version, from my laptop; I changed xorg.conf
> >>> and created 69-touchscreen.rules: It still not working. In fact: X
> >>> doesn't boot.
>
> >> What exactly did you copy from your x86 laptop? (they won't work if
> >> they are x86 binaries)
>
> >>> I surrender :-( At least, using Ubuntu...
>
> >>> Does anyone installeGalaxdriverfor the BB in any distribution
> >>> (maemo, meego, android) ?
>
> >> Regards,
>
> >> --
> >> Robert Nelsonhttp://www.rcn-ee.com/
>
> --
> Rico & Gaby Naef
>
>                               !!!!!  Achtung !!!!!
> Neue Adresse     familyn...@bluewin.ch
>                                        ***      ********

MaNu

unread,
Feb 18, 2011, 3:15:37 PM2/18/11
to Beagle Board
Hi all,

finally I found a successful and easy way, at least to me, to use any
resistive touchscreen with the BB on any OS . My experiences ( I hope
will be useful for some of you):

EGALAX TOUCH DRIVER: Usb touchscreen controller very common on small
monitors (overcoat for cars). Not HID compliant. Drivers are not
compatible with ARM architecture. I couldn't make it work in any OS
(Ubuntu, Angstrom and Android).

TSHARC OCTOPUS. USB touchscreen controller for 4,5 and 8 wires. Ideal
if you buy the TFT and the touchscreen separately. HID compliant.
Drivers work perfectly with ARM. CONS: board is quite expensive (80$)
and hard to find.Don't work in Android. On other hand you can build
your own board, the schematic is easy and you just need the IC (10$)
and few additional components but... the minimum order for the IC
rounds 40 parts (distributed by Microchip).

ADS7846: Probably the most robust solution. I'm newbie on ARM and
almost on Linux. By now I think I'm not able to rebuild the kernel and
make it work. In the future I would like to use this solution.

CUSTOM CONTROLLER. The way I've taken finally. Use any 8bit
microcontroller with USB DEVICE and AD converter (5$-8$). Use the AD
converter to take the touches later send the data to the BB emulating
a USB mouse (the protocol is easy). Cheap, easy and driver is not
needed: works with UBUNTU, ANGSTROM and ANDROID. CONS: 1. You need to
have some experience in uC&USB. 2.The mouse cursor is not elegant, at
all: I'm working in hide it.

Regards.

On 10 feb, 20:40, MaNu <manwe...@hotmail.com> wrote:
> Well...
>
> I've been doing more attempts... trying to make it work my touch
> screen: there was no way. I've built Android's file system with TSlib
> but it still not working. I can't see anything when I touch the
> screen: no event.
>
> After googling a lot, I only have read many many problems withegalax
> TS in linux in general and no one successful case in Android. So,  I
> surrender.
>
> I can't understand how is so difficult to make it work a TS in
> android. It doesn't make sense: all the tablet PCs and mobile phones
> that use Android have a TS....
>
> Can someone give a hint please? Any TS verified for beagle board in
> Android?
>
> In the announcement of Froyo 2.2, in this forum, is said that touch
> screen is supported from previous releases. I asked but no one
> response to me:
>
> http://groups.google.com/group/beagleboard/browse_thread/thread/38e53...

Koen Kooi

unread,
Feb 18, 2011, 5:25:13 PM2/18/11
to beagl...@googlegroups.com, Beagle Board

Op 18 feb. 2011 om 21:15 heeft MaNu <manw...@hotmail.com> het volgende geschreven:

> Hi all,
>
> finally I found a successful and easy way, at least to me, to use any
> resistive touchscreen with the BB on any OS . My experiences ( I hope
> will be useful for some of you):
>
> EGALAX TOUCH DRIVER: Usb touchscreen controller very common on small
> monitors (overcoat for cars). Not HID compliant. Drivers are not
> compatible with ARM architecture. I couldn't make it work in any OS
> (Ubuntu, Angstrom and Android).
>

That's funny, I used an egalaxy ts today in angstrom on an am3517 board without problems. Just a matter of installing xf86-input-evtouch and calibrating it.

MaNu

unread,
Feb 19, 2011, 4:34:23 AM2/19/11
to Beagle Board
I said I couldn't, no that it's not possible. Did you use the driver
and the calibration tool provided by EETI?

On 18 feb, 23:25, Koen Kooi <k...@beagleboard.org> wrote:

Rico & Gaby Naef

unread,
Feb 19, 2011, 6:49:46 AM2/19/11
to beagl...@googlegroups.com
That is encouraging.
Can you share how you did it.
It probably depends what kind of version angstrom and driver mixture
you have.
In my casa I could not get it to work.
The calibration tool would always crash.

Can you share your setup.
Like:
USB Vednor Product
Angstrom version.
xf86 driver version
Settings you did manually
etc...

Thanks

--
Rico & Gaby Naef

!!!!! Achtung !!!!!
Neue Adresse famil...@bluewin.ch
*** ********

David Szczuka

unread,
May 8, 2011, 4:49:25 PM5/8/11
to beagl...@googlegroups.com
Hello all,

I too have this screen. Installed in my car. I currently have the latest Ubuntu Natty demo image image from rcn-ee.net installed.  (Very nice!  Thanks Robert!).  Ubuntu picks up the touch screen as a hid device but the input is all over the screen, seemingly random.  I'm not sure what tack to take, the drivers distributed by Lilliput and EETI seem to have some source, and some binary utilities... only for x86 and x86_64.  I haven't tried to compile their drivers yet, If it were that easy I imagine someone here would have succeeded.

I did however find some info not mentioned here in this thread anyway:
http://www.gossamer-threads.com/lists/linux/kernel/1218099

Looking over the history of usbtouchscreen.c, it doesn't look like this patch has been applied.  I am going to attempt to apply this patch and see what happens.  I am totally new to touchscreens in Linux and I'm not really sure where to go from there.  Should I comment out the line that ignores this device ID, will that make the OS see the input as a touchscreen rather than a mouse?

Anyway, I expect I will find out when I get around to recompiling the kernel.

Dave

David Szczuka

unread,
May 12, 2011, 5:40:35 PM5/12/11
to Beagle Board
Yay!

I have it working, well mostly anyway, as an evdev input device, not a
touchscreen.

I followed the instructions on to download and build xinput_calibrator
http://samiux.blogspot.com/2010/07/howto-ubuntu-1004-on-gigabyte-touchnote.html

I calibrated, but I haven't yet been able to get the calibration to
stick with udev rules or an x.org config file.
There are 2 event inputs with the same name, so you can't set the
input properties by name and the device ID's aren't the same every
time, so to restore my calibration right now I just run this script:

#!/bin/bash
for i in `xinput list | grep eGalax | sed -e 's/.*id=\(.*\)\t.*/\1/g'`
do
xinput set-prop $i "Evdev Axis Calibration" 174, 3976, 3967,
295
xinput set-prop $i "Evdev Axes Swap" 1
done


and my clicks work quite well on my Lilliput at 800x480, although the
cursor seems to have a tenancy to jump to the left side of the screen
and then back while dragging or selecting, I'm not exactly sure why.
It is quite usable though.

aaron....@gmail.com

unread,
Jan 6, 2012, 1:19:24 PM1/6/12
to beagl...@googlegroups.com
@Manu... have you gotten any further on this? I have a zytronic zxy100 controller with a touchscreen, i need to get it working in android.  The zytronic people said they had a client get it working with BB and android...

snmatte

unread,
Feb 23, 2012, 8:02:00 AM2/23/12
to Beagle Board
David,
regarding your problem while dragging/selecting.
Yesterday I was facing same issue.
I found out that using following command creates the issue

xinput set-prop $i "Evdev Axes Swap" 1

Instead of above command you may want to use following command.
This command may have syntax error. you can sort out syntax error and
try.

xinput set-prop $i "Coordinate Transfomration Matrix" "0 1 0 1 0 0 0 0
1"
With this command there was no issue of mouse jumping left/right
corner.

poco...@gmail.com

unread,
Aug 12, 2013, 6:07:35 AM8/12/13
to beagl...@googlegroups.com, manw...@hotmail.com
Today I recompile kernel and enable touchscreen for egalax by make menuconfig. And it works well.
Follow this guide to recompile kernel and I did those steps:

. /home/core/.oe/environment-angstromv2012.05
export MACHINE=beagleboard
./oebb.sh config beagbone

MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel -c menuconfig

der...@gmail.com

unread,
Nov 14, 2013, 4:08:07 PM11/14/13
to beagl...@googlegroups.com, manw...@hotmail.com, poco...@gmail.com
Hi, I'm looking to do this, what Guide did you follow?  Was this for the Angstrom Distro?  

Nguyen Tran Nhan

unread,
Nov 15, 2013, 7:21:32 AM11/15/13
to der...@gmail.com, beagl...@googlegroups.com, manw...@hotmail.com
Just need to recompile kernel and enable touchscreen driver. After update new kernel, touchscreen will work well.

Thank you,
Nhan

stevea...@gmail.com

unread,
Mar 4, 2014, 4:46:14 AM3/4/14
to beagl...@googlegroups.com, der...@gmail.com, manw...@hotmail.com, poco...@gmail.com
Hi,

Does anybody have detailed instructions on how to do that? I've found several procedures on the webs for the Pi, but the BBBlack procedures seem fragmented/incomplete.

Regards, Steve
Reply all
Reply to author
Forward
0 new messages