Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Crunchbang - touchscreen drivers, nearly there.

  1. #1
    Join Date
    Nov 2006
    Beans
    312

    [SOLVED] Crunchbang - touchscreen drivers, nearly there.

    Hi all,

    ...bit of background:

    I have a small mini-itx box that's been knocking around for a few years - it's really my test box - if things can run ok on that machine, then they are going to be fine on my others (it's the lowest common denominator).

    I have a 'home automation' system that I've been developing for the past year,and annoyingly I couldn't get the drives working under any linux distro for my touchscreen, and so I installed WinXP and wrote the front-end for that part in VB.NET.

    I'd like to get rid of that machine, simply because it's the fly in the ointment. All my other machines run Linux of some flavour and the whole thing hangs together well.

    The WinXP machine, despite having auto-updates turned off, sometimes reboots itself in the night, thinking that it's doing me a favour. Periodically, it will also turn on it's internal firewall which buggers up my connections to my MySQL server etc...

    So, I'd dearly like to blow it out altogether.

    I'm quite happy to re-write the touchscreen application for Linux (well, happy is perhaps an overstatement), but only if I can get the touchscreen working.

    I followed this tutorial:

    http://www.hanckmann.net/?q=node/28

    ...and for the first time ever, the touchscreen is *nearly* working.

    I compiled the drivers, installed, run the calibration program and when I touch the calibration targets, it detects my touch and works fine.

    The only problem is that the cursor won't actually follow my finger.

    I'm so close, but so far.....
    Last edited by dchurch24; October 21st, 2009 at 07:58 PM.
    CPUs: AMD 64 * 4 2mhz, RAM: 8gb
    HDD: 6tb HDD (2 USB 1tb, 3 SATA, 1 NAS)
    GPU: NVIDIA 2 GeForce 7800 GTX SLIx2 (4x23 Philips Widescreen TFT)
    OS: Ubuntu Studio 9.10 (rt) AMD64

  2. #2
    Join Date
    Oct 2007
    Beans
    Hidden!

    Re: Crunchbang - touchscreen drivers, nearly there.

    why do you want it to "follow your finger"?
    You mean dragging doesnt work?

  3. #3
    Join Date
    Nov 2006
    Beans
    312

    Re: Crunchbang - touchscreen drivers, nearly there.

    Dragging, or simply touching the screen to create a 'mouse click'.

    On the existing winxp box, if I touch the screen it acts as though I have left-clicked the mouse.

    On this machine, the 'beep' occurs, so I know the serial interface/drivers have detected my touch-'click', but the mouse pointer stays in the same place on the screen - i.e. not where my finger has just clicked.

    The mouse pointer ignores my screen presses.
    CPUs: AMD 64 * 4 2mhz, RAM: 8gb
    HDD: 6tb HDD (2 USB 1tb, 3 SATA, 1 NAS)
    GPU: NVIDIA 2 GeForce 7800 GTX SLIx2 (4x23 Philips Widescreen TFT)
    OS: Ubuntu Studio 9.10 (rt) AMD64

  4. #4
    Join Date
    Oct 2007
    Beans
    Hidden!

    Re: Crunchbang - touchscreen drivers, nearly there.

    ah, so its not working at all. well not as a pointing device for X anyway.
    Probably a mistake in the xorg.conf? Perhaps post it and have a look in xorg.0.log

  5. #5
    Join Date
    Nov 2006
    Beans
    312

    Re: Crunchbang - touchscreen drivers, nearly there.

    Indeed! Compiling and installing the drivers has done *something* though, as my finger-presses were detected when running the calibration program.

    xorg.conf:
    Code:
    Section "InputDevice"
            Identifier      "Generic Keyboard"
            Driver          "kbd"
            Option          "XkbRules"      "xorg"
            Option          "XkbModel"      "pc105"
            Option          "XkbLayout"     "gb"
            Option          "XkbOptions"    "lv3:ralt_switch"
    EndSection
    
    Section "InputDevice"
            Identifier      "Configured Mouse"
            Driver          "mouse"
            Option          "CorePointer"
    EndSection
    
    Section "Device"
            Identifier      "Configured Video Device"
    EndSection
    
    Section "Monitor"
            Identifier      "Configured Monitor"
    EndSection
    
    Section "Screen"
            Identifier      "Default Screen"
            Monitor         "Configured Monitor"
            Device          "Configured Video Device"
    EndSection
    
    Section "ServerLayout"
            Identifier      "Default Layout"
            Screen          "Default Screen"
            InputDevice     "elo"
    EndSection
    
    Section "InputDevice"
               Identifier "elo"
               Driver "elo"
               Option "Device" "/dev/input/elo_ser"
               Option "SendCoreEvents" "true"
    EndSection
    There is no "/dev/input/elo_ser", so:

    xorg.0.log:
    Code:
    (II) XINPUT: Adding extended input device "TOUCHSCREEN" (type: elo TouchScreen)
    (--) Configured Mouse: PnP-detected protocol: "ExplorerPS/2"
    (II) Configured Mouse: ps2EnableDataReporting: succeeded
    elo touchscreen on. local->fd ffffffff..
     After open. local->fd ffffffff
    Unable to open elo touchscreen device: No such file or directorycouldn't enable device 4
    SetClientVersion: 0 9
    SetKbdSettings - type: -1079159380 rate: 30 delay: 500 snumlk: 252
    SetGrabKeysState - disabled
    There is, however:

    by-id by-path event0 event1 event2 event3 event4 event5 mice mouse0 mouse1

    Could it be that I need mouse1 (presumably?) in the xorg.conf instead of elo_ser?
    Last edited by dchurch24; October 21st, 2009 at 11:04 AM.
    CPUs: AMD 64 * 4 2mhz, RAM: 8gb
    HDD: 6tb HDD (2 USB 1tb, 3 SATA, 1 NAS)
    GPU: NVIDIA 2 GeForce 7800 GTX SLIx2 (4x23 Philips Widescreen TFT)
    OS: Ubuntu Studio 9.10 (rt) AMD64

  6. #6
    Join Date
    Nov 2006
    Beans
    312

    Re: Crunchbang - touchscreen drivers, nearly there.

    Hmmmm....tried it with mouse1 and mouse0, still no joy.
    CPUs: AMD 64 * 4 2mhz, RAM: 8gb
    HDD: 6tb HDD (2 USB 1tb, 3 SATA, 1 NAS)
    GPU: NVIDIA 2 GeForce 7800 GTX SLIx2 (4x23 Philips Widescreen TFT)
    OS: Ubuntu Studio 9.10 (rt) AMD64

  7. #7
    Join Date
    Oct 2007
    Beans
    Hidden!

    Re: Crunchbang - touchscreen drivers, nearly there.

    edit: oops just a sec

  8. #8
    Join Date
    Nov 2006
    Beans
    312

    Re: Crunchbang - touchscreen drivers, nearly there.

    Hmmm...I ran the ./install again (remotely this time (with sudo) - I am now at work), and woohooo - the "/dev/input/elo_ser" now appears.

    I have changed the xorg.conf back, but I won't know if it has worked until I get home in about an hour.

    Presumably I need to restart X?

    Fingers crossed!
    CPUs: AMD 64 * 4 2mhz, RAM: 8gb
    HDD: 6tb HDD (2 USB 1tb, 3 SATA, 1 NAS)
    GPU: NVIDIA 2 GeForce 7800 GTX SLIx2 (4x23 Philips Widescreen TFT)
    OS: Ubuntu Studio 9.10 (rt) AMD64

  9. #9
    Join Date
    Oct 2007
    Beans
    Hidden!

    Re: Crunchbang - touchscreen drivers, nearly there.

    Quote Originally Posted by dchurch24 View Post
    Hmmm...I ran the ./install again (remotely this time (with sudo) - I am now at work), and woohooo - the "/dev/input/elo_ser" now appears.

    I have changed the xorg.conf back, but I won't know if it has worked until I get home in about an hour.

    Presumably I need to restart X?

    Fingers crossed!
    Ah thats good news indeed. Yes you'll have to restart X.
    If its not working still, run xev and see if it picks up any activity if you touch the screen.

  10. #10
    Join Date
    Nov 2006
    Beans
    312

    Re: Crunchbang - touchscreen drivers, nearly there.

    Hey, thanks for your help today. Much appreciated.

    When I get home I'll know if it worked and I'll keep you posted!
    CPUs: AMD 64 * 4 2mhz, RAM: 8gb
    HDD: 6tb HDD (2 USB 1tb, 3 SATA, 1 NAS)
    GPU: NVIDIA 2 GeForce 7800 GTX SLIx2 (4x23 Philips Widescreen TFT)
    OS: Ubuntu Studio 9.10 (rt) AMD64

Page 1 of 2 12 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
  •