⌨ Labor omnia vincit ☮

openSUSE :: eGalaxTouch X.Org input driver in Open Build Service

Posted in GNU/Linux, openSUSE by anaumov on 17.03.2012

Let’s start by saying that the eGalaxTouch is a X.Org input driver developed by EETI for their touch screens.
Here you can download the suitable driver for your Linux Kernel and architecture. After untar it you will get a directory named eGalaxTouch32 or eGalaxTouch64. Inside this directory you can find a setup.sh script. This complicated script will handle the entire instalaton proccess. It works fine, but the script blasted files and symbolic links all over the filesystem, and there is no way to clean it. As a packager I want to use more professional mechanism to install or remove it. So I built a RPM/DEB packages for that.

How it works?

There are just 4 things that you needed to care about: egalax_drv.so, the binary driver used by the X.Org server; eGalaxTouch, the utility for calibrating and setting preferences; TKCal, a lower level utility for setting options in the hardware; and script also add some information about new configuration to X.Org config-file (I changed it: package create the new config file called /etc/X11/xorg.conf.d/50-egalax.conf).

Section "InputDevice"
        Identifier "EETI"
        Driver "egalax"
        Option "Device" "/dev/ttyS1"
        Option "Parameters" "/var/lib/eeti.param"
        Option "ScreenNo" "0"
EndSection

As you can see I use /dev/ttyS1. EGalaxTouch support S232, USB, PS2, and I2C controllers. So, if you use, for example, USB, you have to change device-string like this:

        Option "Device" "usbauto"

X -version

Here is also one important thing what you have to know: X.Org server and input drivers/modules should have same versions (support same API). EGalaxTouch driver contain modules for different X.Org versions. That means, that package have to check X.Org version during installation to know which input module should be used. I tested package on openSUSE 11.4/12.1 and Ubuntu 10.04 and it looks stable. Anyway, let me know if it will not works for you.

Don’t forget after installing the package and restarting X.Org Server also run eGalaxTouch and TKCal. This will let you calibrate the touchscreen. It takes a bit time to complete, but it increases the precision of the touch position.

Good luck and happy touching🙂

18 Responses

Subscribe to comments with RSS.

  1. Den said, on 21.05.2012 at 05:05

    Hi thanks for your blog, I am trying to make an EGalax touchscreen work on some display… I was curious if this would work on ubuntu 11.10 mini version and that has no X running. I am using it as a kiosk and start ubuntu into browser mode. Initially i had axis swapped and could not figure out where to calibrate it, it was asking me for X server and in my distro x is running in the browser… i bypass desktop and boot right to web browser. The kernel is 3.0 i was afraid to try it, but then tried it anyway, and now i am stuck with “no signal in display”… do you know maybe it would never work on kernel 3.0?

    • Alex said, on 21.05.2012 at 10:32

      Hi Dan,

      thanks for your reply.

      I installed my package from OBS now on Ubuntu 12.04 and it looks broken. The problem is the version of kernel, like you said… but I can’t rebuild the driver, because on the eeti page are no sources for the new kernel available until now. I don’t know when they are going to share new sources. Once they do, I will build the new packages.

      • Den said, on 22.05.2012 at 03:31

        Wow, thanks Alex, really appreciate your feedback… Do you know if it is posible to recover? I mean get to the original point (what files to remove)… thanks so much for your feedback…Den

      • Alex said, on 22.05.2012 at 09:00

        Did you install my package? If yes, just delete it: make dpkg -P egalaxtouch or aptitude purge egalaxtouch. If not, delete /usr/lib/xorg/modules/input/egalax_drv.so and config section about egalax in /usr/share/X11/xorg.conf.d/ (I think it was 50-synaptics.conf).

  2. Jesse said, on 17.01.2013 at 23:03

    Do you have any plans to add Ubuntu 12.04 packages? I see from your other comments that you were waiting on EETI for updated sources. It appears as if they have new ones now (as of 2012/09/10). Your work looks great and I would love to see what you can do with this.

    • anaumov said, on 18.01.2013 at 00:33

      Thank you for feedback!

      Unfortunately I have no egalax touch screen devices now and I can’t play with drivers packaging anymore (do it “in the blind” (without testing) does not make sense).

  3. Rubani said, on 02.04.2013 at 15:34

    Hi.
    how can i enable and disable touch at form dynamic, with a button.
    Existe algun API?
    Quiero habilitar y deshabilitar el TOUCH con un boton.
    Es posible?

    help me. please.

    • anaumov said, on 03.04.2013 at 10:11

      Hi,
      I have no idea, sorry.
      If you are talking about “Hot Swap, it’s depend on your device, I guess.
      I think driver supports some APIs, but it works on X Server and you will need to restart it in anyway…

  4. MyLive said, on 22.08.2013 at 07:20

    i have OpenSuse 11.4 … if i “touch” the Screen, the X-Server will restarts .. i dont know why ..

    • anaumov said, on 22.08.2013 at 10:20

      Did you install my driver? Did you update linux kernel? Do you have any errors in logs? To help you I need more info…

  5. sanjay said, on 03.09.2013 at 21:08

    Hi,
    In our system(RHEL 6.2) there is two RS232 COM ports. I am interfacing our display with a COM port for touch after installing eGalax touch driver and touch is working fine. after installation of driver system’s second COM2 Port stopped working.
    And if i remove driver then both COM ports are working fine why ??

    • anaumov said, on 05.09.2013 at 00:28

      Hi,
      it seems like driver take both COM ports, right? In this case, just edit /etc/X11/xorg.conf.d/50-egalax.conf file. Look at Option “Device” line and try to play with parameters.

      • sanjay said, on 11.09.2013 at 03:33

        I did not get any such file in /etc/X11/xorg.conf.d folder so please help for dome other solution

      • anaumov said, on 11.09.2013 at 14:01

        And what say rpm -ql egalaxtouch?
        By the way, I didn’t test it on CentOS… RPMs are there, but I’m not sure about stability.

        If someone buys to me some device, that will have “egalax-touch-panel”, I can rebuild RPM-/DEB-packages for a new kernel and all Linux distributions.

  6. sanjay said, on 23.09.2013 at 17:13

    What are the services used by egalax driver ??

    • anaumov said, on 23.09.2013 at 19:57

      x.org

      • sanjay said, on 24.09.2013 at 03:18

        I asked about services not config file i.e x.org!!!!please help

      • anaumov said, on 24.09.2013 at 20:54

        egalax – XOrg input driver. It depends from XOrg and kernel. No services (that you can run via systemd, for example).


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: