WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: usbtouchscreen xvesa  (Read 3891 times)

Offline smultita

  • Newbie
  • *
  • Posts: 13
    • EmbLin
usbtouchscreen xvesa
« on: April 05, 2011, 07: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, 08:12:42 AM by smultita »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: usbtouchscreen xvesa
« Reply #1 on: May 01, 2011, 06: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, 05: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, 03:34:17 PM by smultita »

Offline smultita

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

Offline tomekb

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

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: usbtouchscreen xvesa
« Reply #5 on: February 28, 2014, 07: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