WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)  (Read 2885 times)

Offline AngryUser

  • Newbie
  • *
  • Posts: 3
Hi everyone,

I have a panel computer: PEX-090T-8A. It has Vx86VGA-9160 display chip and eGalax touch screen sensor.

I need to set up the touch screen correctly.

I first tried using Xorg 7.7. Touch screen calibrated great, but the overall performance was terrible, it was seen as redrawn screen. This screen only supports vesa and fbdev drivers and I have tried both.

Next I tried TinyX (Xvesa and Xfbdev) and the performance was good enough but I can't adjust the touchscreen in any way. I tried using tslib. During calibration (ts_calibrate) and validation(ts_test) everything is correct. I run the ts_uinput daemon creates which creates the device:

Code: [Select]
I: Bus=0006 Vendor=0000 Product=0000 Version=0000
N: Name="ame"
P: Phys=
S: Sysfs=/devices/virtual/input/input9
U: Uniq=
H: Handler=mouse2 event4
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=3

I'm assigning a new device as a mouse.

Code: [Select]
Xfbdev -mouse /dev/input/mouse2 -nolisten tcp -I >/dev/null 2>&1 &

But the cursor is still incorrect positioning, there is something like acceleration, when moving the cursor slowly overtakes the finger, and when tape is always shifted.

Can you tell me what to do, in which direction to move?  :-\

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)
« Reply #1 on: May 06, 2019, 04:25:42 AM »
Looking at tinyx's --help output, there are two mouse options that look related. -a and -t, acceleration and threshold, try playing with them.
edit: Those values can also be tuned at runtime via xset, for faster testing.
The only barriers that can stop you are the ones you create yourself.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)
« Reply #2 on: May 06, 2019, 09:14:48 AM »
Hi AngryUser
... I first tried using Xorg 7.7. Touch screen calibrated great, but the overall performance was terrible, it was seen as redrawn screen.  ...
That sounds like something I recently experienced where you could see the progress of a window as it was painted. Turns out
the culprit was using a  vga=  boot code. Removing that cleared it up.

Offline AngryUser

  • Newbie
  • *
  • Posts: 3
Re: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)
« Reply #3 on: May 06, 2019, 03:37:02 PM »
Rich,
Thank you so much!

Removing the vga= boot code really helped.

I've wasted so much time. :'(

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)
« Reply #4 on: May 06, 2019, 03:55:04 PM »
Hi AngryUser
You are welcome. Glad to hear it helped.

Offline AngryUser

  • Newbie
  • *
  • Posts: 3
Re: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)
« Reply #5 on: May 07, 2019, 04:05:16 AM »
Early rejoiced.

It worked on my laptop but today tried on a panel computer and the performance is still poor.

Looks like TinyX is the only option.

Changing the acceleration -a to 1 and even to 0 did not help.

Why is the touchscreen marked as a mouse if the values coming from it are absolute?
Maybe the wrong driver is being used?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)
« Reply #6 on: May 07, 2019, 05:17:35 AM »
TinyX does not have drivers like Xorg, it uses built-in code specific to that binary (vesa or fbdev). For input it has such code for keyboard and mouse, no support for absolute devices like touchscreens. You could of course write such support for it.
The only barriers that can stop you are the ones you create yourself.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: How to use eGalax touchscreen with TinyX (Xvesa or Xfbdev)
« Reply #7 on: May 07, 2019, 06:41:24 AM »
You might be better off using Xorg-7.7 with xf86-input-libinput instead of xf86-input-evdev for touchscreens.

To do this, manually edit Xorg-7.7.tcz.dep, replace xf86-input-evdev.tcz with xf86-input-libinput.tcz and reboot.