WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: usbtouchscreen xvesa  (Read 3507 times)

Offline smultita

  • Newbie
  • *
  • Posts: 13
    • EmbLin
usbtouchscreen xvesa
« on: April 05, 2011, 04:24:41 AM »
Is it possible to use an usbtouchscreen under xvesa or
some workaround possible ( XTestFakeMotionEvent, /dev/input/eventx, gpm repeater mode)?

If I start a clean tinycore and connect my USB touchscreen it does work (exept for calibration)
and /dev/input/event6 is created.

Is this some generic driver in the kernel?
Then were is usbtouchscreen.ko for (which if I thought creates this input event)?

I installed and run evtest and get the following output
evtest /dev/input/event6

<snip>
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x4e7 product 0x8 version 0x100
Input device name: "Elo TouchSystems, Inc. Elo TouchSystems AccuTouch 3000U"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 272 (LeftBtn)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value   2719
      Min      184
      Max     3932
    Event code 1 (Y)
      Value   2571
      Min      184
      Max     3932
    Event code 40 (Misc)
      Value      0
      Min        0
      Max      256
  Event type 4 (Misc)
    Event code 4 (ScanCode)
Testing ... (interrupt to exit)
Event: time 1302169762.098830, type 3 (Absolute), code 0 (X), value 3032
Event: time 1302169762.098842, type 3 (Absolute), code 1 (Y), value 898
Event: time 1302169762.098844, type 3 (Absolute), code 40 (Misc), value 255
Event: time 1302169762.098858, -------------- Report Sync ------------
Event: time 1302169762.111334, type 4 (Misc), code 4 (ScanCode), value 90001
Event: time 1302169762.111351, type 1 (Key), code 272 (LeftBtn), value 1
Event: time 1302169762.111355, type 3 (Absolute), code 0 (X), value 3031
</snip>

To get it working with calibration would the folowing work:
I write a program which reads the /dev/input/event6 and translates it (calibrate)
- into XTestFakeMotionEvent() or 
- into a new created /dev/input/event7
or does this give a conflict (multiple pointer movement)?




« Last Edit: April 07, 2011, 05:12:42 AM by smultita »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: usbtouchscreen xvesa
« Reply #1 on: May 01, 2011, 03:22:17 AM »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline smultita

  • Newbie
  • *
  • Posts: 13
    • EmbLin
Re: usbtouchscreen xvesa
« Reply #2 on: May 02, 2011, 02:27:20 AM »
I've written a program reading /dev/input/eventx and translate into XTestFakeMotion and Button evens.
This enables touch in XVesa (and Xorg) and should work for most USB-HID Touch devices.
I will submit a tcz soon

« Last Edit: May 02, 2011, 12:34:17 PM by smultita »

Offline smultita

  • Newbie
  • *
  • Posts: 13
    • EmbLin
Re: usbtouchscreen xvesa
« Reply #3 on: May 15, 2011, 11:59:56 PM »
extension xvtouch.tcz submitted

Offline tomekb

  • Newbie
  • *
  • Posts: 1
Re: usbtouchscreen xvesa
« Reply #4 on: February 27, 2014, 11:05:51 PM »
Good work - but why you fixed it on DISPLAY=:0?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1021
Re: usbtouchscreen xvesa
« Reply #5 on: February 28, 2014, 04:00:09 PM »
I have a script which builds an extension for ELO touchscreens using the source from their website, but it requires Xorg. I added the calibration program to .xsession so it would start every time since I wasn't saving calibration data. If you want it let me know and I will get it from my work computer this weekend.

Andy Johnson