Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Linux drivers for Lilliput Touchscreen?

  1. #11
    Newbie
    Join Date
    Jun 2002
    Location
    Parkersburg, WV
    Posts
    52
    Quote Originally Posted by htd
    I have the same issues - i have got a egalax touchscreen and run kernel 2.6.7rc1 (now has got a egalax driver!).

    Using /dev/input/mouse0 and the mouse driver like kevlar does results at least in a weird working touchscreen - but using your tips from http://www.groomlakelabs.com/grandam...reen-HowTo.txt

    does result in even more weird behaviour. Sometimes the cursor doesn't move at all - i guess that's related to the MinX, MinY, etc. options, but i don't know how to setup valid values for this (i'm still trying different values).

    What i also didn't find was where to get the evtest utility... it isn't installed on my gentoo system and i don't know whicht package it is related to.

    I hope i can get to work with the new kernel driver, then i don't have to use these closed source drivers from egalax, although it's probably the easiest way to get it working

    HTD
    Don't use /dev/input/mouse0, use the event interface. The mouse handle attempts to give coordinates in relative data, and this simply seems broken (Which can not be fixed in this driver, but in the linux input subsystem instead). If you look back at the howto, you will see the the event interface is used. (ex: /dev/input/event1). The howto should help you find the appropriate event handle. Sorry, I should have clarified this in my last post. In short, use the entire howto to help you get the device working. Although it is for mtouchusb (3m touch controllers), you should get the same results, only using a different device. Make sure you build the kernel for touchkitusb and not mtouchusb with this device though .

    For evtest, you can d/l it from:

    http://groomlakelabs.com/grandamp/co.../applications/

    To build, just do:
    gcc -o evtest evtest.c
    chmod 755 evtest
    ./evtest /dev/input/event1 (Or what ever event interface is assigned to the device)

    Hope this helps!

  2. #12
    Newbie
    Join Date
    Jun 2002
    Location
    Parkersburg, WV
    Posts
    52
    Quote Originally Posted by htd
    With these settings my touchscreen works quite ok (last issue is that the vertical movement is inverted... when i touch the bottom of the screen the cursor moves to the top and vice-versa)
    horizontal movement works normally.
    So you are saying that the verticle movement is still inverted?

  3. #13
    Newbie
    Join Date
    May 2004
    Posts
    7

    I GotZ it TO WOrkZ

    ok i got it working all nice and prefect

    Do what tejohnson said to do #8-11 on
    http://www.groomlakelabs.com/granda...creen-HowTo.txt
    then


    1) vi /usr/src/linux/drivers/usb/input/touchkitusb.c
    go to line 55
    55:#define TOUCHKIT_GET_X(dat) (((dat)[3] << 7) | (dat)[4])
    56:#define TOUCHKIT_GET_Y(dat) (((dat)[1] << 7) | (dat)[2])


    and swap the X and the Y so it looks like this
    #define TOUCHKIT_GET_Y(dat) (((dat)[3] << 7) | (dat)[4])
    #define TOUCHKIT_GET_X(dat) (((dat)[1] << 7) | (dat)[2])


    recompile the module or kernel which ever and load.
    2) Put this in your X config

    Section "InputDevice"
    Identifier "touchscreen0"
    Driver "evtouch"
    Option "Device" "/dev/input/event2"
    Option "DeviceName" "touchscreen"
    Option "MinX" "49"
    Option "MaxX" "1980"
    Option "MinY" "100"
    Option "MaxY" "1960"
    Option "ScreenNumber" "1"
    Option "DragTimer" "200"
    Option "MoveLimit" "600"
    Option "ReportingMode" "Raw"
    EndSection

    3) start X and it should work.
    i have the screen Number on there because im running dual monitors, you might not need this

    hope this helps

  4. #14
    VENDOR - SpatialMinds millec's Avatar
    Join Date
    Dec 2002
    Location
    Mt. Vernon, WA
    Posts
    204

    Thumbs up

    FYI... these drivers also work with the xenarc monitors. I just got my serial xenarc monitor working under Gentoo tonight.

    --Craig

  5. #15
    htd
    htd is offline
    Newbie
    Join Date
    Oct 2003
    Posts
    5
    ismell: thanks for your patch info of the linux source.

    I tried to fix it in evtouch X11-driver code (adding an option like InvY for mouse), i never thought of hacking the kernel driver directly, seems like i didn't see the forest because of all the trees

  6. #16
    Newbie matqua's Avatar
    Join Date
    Dec 2003
    Location
    Australia
    Posts
    23
    Yeah i have gotten my Lilliput to work under Gentoo with the usb touch. Just used the fc2 driver pack from egalax, and ran the make commands manually, the only hickup was that it wanted to find the rc.local config file, just touch it and it will compile and install perfectly.

    Hope this helps someone.
    Matthew
    Mitsubishi Lancer Hatch
    VIA EPIA 800V
    128RAM - 10 GB HDD
    200 Watt PSU - 300 Watt Inverter
    Lilliput 7" Touchscreen
    D-Link USB FM Radio
    Dlink DWL-520+ b/g Wifi Card
    Fortuna GPSmart
    Alpine Amp and Splits
    Gentoo Linux/Windows 2000

  7. #17
    Newbie
    Join Date
    Oct 2004
    Posts
    1

    Another gentoo carputer

    Hey, just wondering what exact commands i need to type to manually make the FC2 shell script for the lilliput. I tried make, make install, and a few others, beings as my only linux experience is with gentoo i'm at a loss of what to type in to "manually make" the install. Any help is appreciated. Thanks

  8. #18
    Low Bitrate
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    68
    Hi all!
    I have a lilliput 619GL-70NP 7" touchscreen, and I would like to make it work under debian (for now...)
    I tried to follow the steps of the howto linked above, but it still doesn't work...when i touch the screen, cursor goes always in one of the screen corner...

    here is my lsmod:

    Module Size Used by
    [...]
    ehci_hcd 32004 0
    tsdev 7392 0
    mousedev 10476 2
    usbhid 32192 0
    joydev 9984 0
    touchkitusb 5440 0
    ohci_hcd 21764 0
    usbcore 119012 6 ehci_hcd,usbhid,touchkitusb,ohci_hcd
    evdev 9600 1
    [...]

    then the content of /proc/bus/input/devices:

    [...]
    I: Bus=0003 Vendor=0eef Product=0001 Version=0100
    N: Name="eGalax Inc."
    P: Phys=usb-0000:00:03.0-1/input0
    H: Handlers=event2 mouse0 ts0
    B: EV=b
    B: KEY=400 0 0 0 0 0 0 0 0 0 0
    B: ABS=3
    [...]

    i installed the X evtouch driver:
    wget http://stz-softwaretechnik.com/~ke/l...h-0.6.1.tar.gz
    tar xfz evtouch-0.6.1.tar.gz
    cp evtouch-0.6.1/evtouch_drv.o /usr/X11R6/lib/modules/input

    then I added the lines to /etc/X11/XF86Config-4:
    Section "InputDevice"
    Identifier "touchscreen0"
    Driver "evtouch"
    Option "Device" "/dev/input/event2"
    Option "DeviceName" "touchscreen"
    Option "MinX" "2300"
    Option "MinY" "2300"
    Option "MaxX" "14000"
    Option "MaxY" "14000"
    Option "DragTimer" "200"
    Option "MoveLimit" "600"
    Option "ReportingMode" "Raw"
    EndSection
    and <<InputDevice "touchscreen0">> under serverlayout.

    what's wrong?
    maybe I should modify some option?
    thanks in advance!
    bye
    barb3tta

  9. #19
    Low Bitrate
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    68
    Now It works, thanks to ismell...

    But I can't reach borders... cursor is a bit distant from where I touch the screen and i stops follow the pen about 5px before the borders...

    I think I should adjust options in XF86Config-4 ... but how?

    thanks in advance.

    bye

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 02-24-2004, 01:17 AM
  2. touchscreen drivers
    By IIJasonII in forum Input Devices
    Replies: 0
    Last Post: 10-19-2003, 09:18 AM
  3. Note to DigitalWW guy re: touchscreen drivers
    By GingerPrince in forum LCD/Display
    Replies: 10
    Last Post: 09-18-2003, 03:46 AM
  4. Code my own XP touchscreen drivers?
    By MikeHunt79 in forum General MP3Car Discussion
    Replies: 10
    Last Post: 09-17-2003, 05:11 PM
  5. touchscreen drivers preventing standy
    By hapination in forum Input Devices
    Replies: 3
    Last Post: 04-02-2003, 11:54 PM

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
  •