Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41

Thread: Can't get eGalax Touchscreen to work.

  1. #11
    Join Date
    Oct 2007
    Beans
    4

    Re: Can't get eGalax Touchscreen to work.

    The bad eeprom error is usually related to a driver issue.
    Usually I found that usbhid driver was hijacking the device and /dev/tkpanel0 would not function.

    I was using a custom Ubuntu 6.0.6.1 Dapper I had created ages ago, but with the updated 2.6.27.7 kernel.

    You could also try this init script to ensure the correct module is loaded:
    Code:
    #!/bin/sh -e
    # init script for udev
    
    # Setup the touchkit driver. The usbhid needs to be removed before it's
    # loaded. This is reinstated immediately afterwards. It is done this
    # way to prevent the touchkit driver being hijacked by the usbhid driver
    mknod --mode=a=rw /dev/tkpanel0 c 180 240
    sleep 1
    # unload USB hid drivers
    modprobe -r usbhid
    modprobe -r tkusb
    sleep 1
    insmod /lib/modules/{kernel_version)/kernel/drivers/usb/input/tkusb.ko
    sleep 1
    # reload USB hid drivers
    insmod /lib/modules/{kernel_version)/kernel/drivers/usb/input/usbhid.ko
    
    exit 0
    Obviously, replace {kernel_version} with your kernel version.
    However, for this to work, the tkusb.ko driver has to be in the /lib/modules/... directory.

    I found the above script on a forum somewhere that was regarding a different touchpanel but with the same issue, nonetheless it helped me with my issue after a few small modifications.

    At one point, I had an issue where a user could calibrate the screen but not use it. This was related to group permissions as the user was a member of a non-standard group.

    I also got my driver from the TouchKit website too.

  2. #12
    Join Date
    Dec 2008
    Beans
    18

    Re: Can't get eGalax Touchscreen to work.

    Thank you very much I'll try that within ne next few days. AT the moment I cannot do anything, as I'm ill. lying in bed with high temperature, headache, sore throat and pain in the limps

  3. #13
    Join Date
    Dec 2008
    Beans
    18

    Re: Can't get eGalax Touchscreen to work.

    Unfortunately it doesn't seem to be the usbhid module hijacking the device I even removed the whole usbhid module by rmmod, which killed my mouse and keyboard, but a cat /dev/tkpanel0 still shows nothing.
    Just for fun I uninstall hal and after that the old driver with the /dev/tkdat0 device started to work (a little). I received data from /dev/tkdat0 with cat or hexdump. That used to work on dapper drake before. now with uninstalled hal, it works on hardy as well. but X still does not react. and there are also no errors in Xorg.o.log. or dmesg. And I dont think that I can keep without hal.. so thats no solution, but maybe an interesting hint.

    Any ideas on that anybody??

  4. #14
    Join Date
    Sep 2008
    Beans
    1

    [solved] Re: Can't get eGalax Touchscreen to work.

    I have MSI WIND U100 + UBUNTU 8.10 + Easy and fun touchkit (eGalax TouchScreen) ... same problem as you before.

    Do not need any other drivers.

    Just get the package "xserver-xorg-input-evtouch" and after install run "/usr/share/applications/calibrate.desktop" (read carefully the window with instructions.

    Me works now

  5. #15
    Join Date
    Dec 2008
    Beans
    18

    Re: Can't get eGalax Touchscreen to work.

    It sais


    Code:
    No evtouch capable device found, if you are sure you have 
    an evtouch capable touchscreen, please mail the resulting file of the command "lshal > evtouch_hal.out" to the
    ubuntu-mobile@lists.ubuntu.com mailing list, so support for your device can be added.
    Something still seems to hijack the data from the device, but I have no idea what. Does someone of you know a way to debug this / find out what is hijacking the data?
    Last edited by tsg; January 26th, 2009 at 03:03 PM.

  6. #16
    Join Date
    Jan 2009
    Beans
    1

    Re: Can't get eGalax Touchscreen to work.

    Hi

    After working on this for some time I think I found a
    reasonably solution.

    There seem to be two different types of eGalax devices
    one that works using usbhid and one using usbtouchscreen
    The problem is that with kernel 2.6.27 they added some code
    that only the HID enabled devices work and the usbtouchscreen
    driver is not loaded.

    After comparing the usbtouchscreen.c sources between the different
    versions I got it working by commenting out the follwoing lines

    ...
    #ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
    /* ignore the HID capable devices, handled by usbhid */
    {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE},
    {USB_DEVICE_HID_CLASS(0x0eef, 0x0002), .driver_info = DEVTYPE_IGNORE},
    ...

    Now the entry in /proc/bus/input/devices is created as in the
    older versions (I did this in 2.6.28.2)

    So the solution is either to patch your kernel
    or use a kernel BEFORE 2.6.27 e.g. 2.6.26 seems to work
    you can then use the builtin usbtouchscreen driver

    Hope that helps

    Regards

    max
    Last edited by maxwen; January 27th, 2009 at 12:43 PM.

  7. #17
    Join Date
    Mar 2009
    Beans
    3

    Re: Can't get eGalax Touchscreen to work.

    Hello tsg,
    i have the same prob as u have. i have also a
    Bus 001 Device 008: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen

    did u have any further success ?


    the cursor is always on the same sport and calibration is not working ..


    when i use the evdev driver the cursor is moving, but i had to swap the x/y axes and swap the y axe.
    the the touch
    PHP Code:
    <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
      <device>
        <match key="info.product" contains="eGalax">
          <match key="info.capabilities" contains="input">
            <merge key="input.x11_driver" type="string">evdev</merge>
            <merge key="input.x11_options.minx" type="string">300</merge>
            <merge key="input.x11_options.miny" type="string">300</merge>
            <merge key="input.x11_options.maxx" type="string">1900</merge>
            <merge key="input.x11_options.maxy" type="string">1900</merge>
            <merge key="input.x11_options.SwapAxes" type="string">1</merge>
            <merge key="input.x11_options.InvertY" type="string">1</merge>
          </match>
        </match>
      </device>
    </deviceinfo>

    some weeks ago i used the evtouch driver and it looks working too, at that time i didnt know how to invert and swap the axis. since then i did some kernel updates. and the cursor now it don't anymore!

    to make you feel better, i also wasted days in trying to get it work

    bye
    Philipp

  8. #18
    Join Date
    Mar 2009
    Beans
    1

    Re: Can't get eGalax Touchscreen to work.

    I'm trying to use my new touchscreen on my eeepc 701 running xandros 1.7 but I'm experiencing some problems.

    As Xandros is also debian derived I decided to write to this forum... I hope you would consider to help me anyhow.

    I succeded in getting tkusb.ko compiled but when I try to load it using insmod command I get an incompatible type message.

    The kernel source I used for the compilation is the same that I get if I do uname -a... do you know what could be the reason for this error and/or how can I debug it?

    thanks a lot & regards,
    blackdir

  9. #19
    Join Date
    Sep 2009
    Beans
    1

    Re: Can't get eGalax Touchscreen to work.

    Hello all,

    I also had big problems to get working eGalax USB Touch Screen (0eef:0001) on Ubuntu. Here is a solution how I get it working.

    I used a fresh install of 32-bit Ubuntu 9.04 (Jaunty Jackalope) with all updates. I suppose that this also works on older versions of Ubuntu.

    I followed touch screen manual instructions, tips found from this topic and instructions wrote here
    http://wiki.linuxquestions.org/wiki/EGalax_Touchscreen
    and made a few changes.

    First problem was that I had very old version of utility which has no support for the newest versions of X. From here I found the newest stable version 2.06.2905
    http://www.tvielectronics.com/Touch_...Downloads.html
    There is also beta version 2.07.3122

    First I tried with inbuilt HID kernel module and inbuilt USB kernel module without success. So I try to build TouchKit module.

    I had two problems building module tkusb. First problem was that file Module.symvers was missing. Locating this file and copying it to linux source folder fixed the problem. Second problem was that file semaphore.h was missing. Modifying file tkusb.h fixed this problem.

    Then I had a problem to load module tkusb during system startup. I try to modify file /etc/rc.local as mentioned on the instructions with no success. So I made a boot-up script addTouchKit which loads the module and put the script to folder /etc/init.d. Now the module will be loaded on startup.

    Last problem was kernel module usbhid. Touch panel used this module by default even if tkusb module was loaded. I fixed this by removing module usbhid.ko for a while during boot-up so panel got time to recognize tkusb module. I made changes to the script addTouchKit.

    It took almost one week to get the touch screen working but it was worth-while.


    Here are detailed instructions step by step:

    1) Getting required packages and TouchKit utility
    Code:
    sudo apt-get install linux-source
    cd ~
    wget http://shop-on-line.tvielectronics.com/download/TouchKit-2.06.2905-32b-k26.tar.gz
    2) Installing utility
    Code:
    sudo chmod -x TouchKit-2.06.2905-32b-k26.tar.gz
    sudo tar -xzvf TouchKit-2.06.2905-32b-k26.tar.gz
    cd eGalaxTouch32
    sudo sh setup.sh
    Utility will be installed to /usr/local/eGalaxTouch32/

    3) Building the tkusb module

    Code:
    cd /usr/src
    uname -r  # Checks linux kernel version
    sudo chmod -x linux-source-2.6.xx.tar.bz2  # Change xx 
    sudo tar -xjvf linux-source-2.6.xx.tar.bz2    
    sudo cp ./linux-headers-`uname -r`/Module.symvers ./linux-source-2.6.xx      
    sudo ln -s linux-source-2.6.xx /usr/src/linux
    cd /usr/src/linux
    sudo make oldconfig
    sudo make prepare
    sudo make modules SUBDIRS=scripts/mod/
    cd /usr/local/eGalaxTouch32/USBSrc
    sudo gedit Makefile
    Around line 16, find
    Code:
    KDIR := /lib/modules/$(shell uname -r)/build
    Replace this line with
    Code:
    KDIR := /usr/src/linux
    Code:
    sudo gedit tkusb.h
    Around line 25, find
    Code:
    include <ams/semaphore.h>
    Replace this line with
    Code:
    include <linux/semaphore.h>
    Code:
    sudo make all
    sudo cp tkusb.ko /lib/modules
    4) Modifying file /etc/X11/xorg.conf

    Code:
    sudo gedit /etc/X11/xorg.conf
    Change Option "Device" to "/dev/tkpanel0" in InputDevice section of touch screen

    Part of the file xorg.conf
    Code:
    ...
    Section InputDevice
            Identifier "EETI"
            Option    "Device"    "/dev/tkpanel0"  
             ...
     EndSection
     ...
    5) Making startup script to load the module

    Code:
    sudo gedit /etc/init.d/addTouchKit
    Content of file addTouchKit
    Code:
    #!/bin/sh
    rmmod /lib/modules/`uname -r`/kernel/drivers/hid/usbhid/usbhid.ko
    insmod /lib/modules/tkusb.ko
    sleep 1  
    insmod /lib/modules/`uname -r`/kernel/drivers/hid/usbhid/usbhid.ko
    Code:
    sudo update-rc.d addTouchKit defaults
    sudo chmod 441 /etc/init.d/addTouchKit
    Now panel is installed. Reboot your computer.

    6) Starting utility and calibrating the panel

    Code:
    cd /usr/local/eGalaxTouch32 && ./eGalaxTouch

  10. #20
    Join Date
    Dec 2008
    Beans
    18

    Re: Can't get eGalax Touchscreen to work.

    Hi wow after a year still responses. Thank you.

    I must admit, that I forgot this thread during the last months..

    In the meantime I found an ugly workaround:

    I got the touchkit module to work. with a very old ubuntu version, that does not use hal. also disabling hal, before the module is loaded seems to work. With that I was able to see events from the screen, with a cat on the device file of the touchscreen. But whatever I tried it did not work with X.
    So I wrote a little neat java program, that reads from the device file and simulates a mouse move/click. on the X server. Very dirty solution, but worked for me. I planned to use that solution, until I really solve the problem, but after a while I stopped working on the project, because I had no time.

    At the time I'm about to face the problem again.
    Afaik the HAL has been dropped in the current latest ubuntu version. This might already have solve my problem not sure.

    I will try the latest ubuntu and also try your step by step tutorial as soon as I find some time!

    Thank you very much for that!

    Of course, if I find a good solution, or your already works for me, I'll let you know here!

Page 2 of 5 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •