Touchscreen HOWTO

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#81 Post by greengeek »

I have a touchscreen enabled Windows tablet (Acer Iconia W501) which uses a 64 bit AMD cpu. I have been trying various 32 and 64 bit puppies with varying degrees of touchscreen success, but would like a recommendation for which puppy would be considered 'standard' enough for testing the concepts in this thread (which I only just stumbled across today...)

Tempestuous - I don't want to waste your time trying non-standard puppies so can you suggest a 'standard' puppy that I could do some meaningful testing with?

(So far I have good reliable behaviour using Slacko 5.3.3t so I know the eGalax usb touchscreen is functional. With 533t the touchscreen is treated like a touchpad - responding to finger direction, and treating a screen tap like a mouse click. It does not provide positional accuracy, so I cannot generate a click at the exact point where my finger touches the screen, but I can position the cursor at the correct position and tap the screen anywhere to click at the cusror position)

I know there are many drivers, and a variety of kernels which treat the drivers differently, so I am not sking for miracles - I just want to work with a 'standard, official' puppy and see where i get to...

gcmartin

Lighthouse64 provides some working functionality-past 3yrs

#82 Post by gcmartin »

Hello @Greengeek. This post assumes one would use their finger on the screen to carry out some needs.

Assuming your smartDevice is x86 64bit Touch technology
I think you may have already tried LightHouse64 on your tablet. If not, you will find some good functionality. Touch an open area on the desktop and navigate the PUP menu system. Open ROX or FM and drag/drop or expand/shrink a window. Taps and double-taps working. All of this desktop touching behaves as if one has a single-button mouse on a system which understands it.

BUT, there is no long-pause and there is not touch mouse-button 2 currently.

Just about everything you can do with a single button mouse was thought of in the build. This included the changing around of mouse activity on an open area of a desktop.

Recently, Slacko64 has resolved a tracking issue with finger and mouse accuracy. But the mouse 1 on desktop has not been addressed yet by any PUP where the tap brings the Menu into visibility for navigation and application launch. This now opens the door for other Puppy advancements in finger-touch control of system activity in the X-Window desktop.

One 3 year-old path in the forest has been paved for us in this OOTB full function PUP distro.

Hope this helps

Tyler
Posts: 1
Joined: Fri 15 Aug 2014, 08:14

Almost works

#83 Post by Tyler »

Hi all.

I try to setup a Master Touch MT500USB screen on Puppy Precise 5.7.1
I installed evtouch-0.8.8 driver, but touchscreen doesn't work correctly.
When I tap screen, cursor moves in little area (approx. 1cm x 1cm), which is scaled from whole screen area.

I did steps from 1st post in this topic.

My xorg.conf

Code: Select all

#barry Kauler 2011
#pre-constructed xorg.conf, for use by /usr/sbin/xorgwizard-automatic
#110627 working on mageia1 build, this needs fixing.
#111029 Terryphi reported 1cm screen displacement, changed vert freq range from 56-76 to 59-76.
#120329 more placemarkers for xorgwizard-automatic script.
#121013 change depth from 16 to 24. note, some arm boards need 16.

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
#	Load "synaptics" #loadsynaptics

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
#    Load        "type1"
#    Load        "freetype"

# This loads xtrap extension, used by xrandr
#    Load       "xtrap"

# This loads the GLX module (if present). xorg 7.4/5, need explicit disable to disable... change "Disable" to "Load" if reqd...
#    Disable       "glx" #LOADGLX

# This loads dri module (if present). 7.4 loads it by default, have to disable... change "Disable" to "Load" if reqd...
#    Disable       "dri" #LOADDRI

EndSection

# **********************************************************************
# Files section.  This allows default font paths to be set
# **********************************************************************

Section "Files"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

    #FontPath   "/usr/share/fonts/X11/misc/"
    #FontPath   "/usr/share/fonts/liberation/"
    FontPath   "/usr/share/X11/fonts/misc/"
    FontPath   "/usr/share/X11/fonts/Type1/"
    FontPath   "/usr/share/X11/fonts/TTF/"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

    Option "RandR" "on"

# With this, Xorg won't talk to HAL to add evdev devices and you'll be back
# with the old Xorg behavior (pre-7.4)...

    Option "AutoAddDevices" "false"

# For no-Hal, kirk also suggests this...

#    Option "AllowMouseOpenFail" "true"

# Xorg 7.4, Ubuntu Jaunty, CTRL-ALT-BACKSPACE is disabled by default...

    Option "DontZap" "false"

EndSection


Section "ServerLayout"
#	InputDevice "Synaptics Mouse" "AlwaysCore" #serverlayoutsynaptics
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "touchscreen" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "dummy"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbRules" "xorg"
	Option      "XkbModel" "pc102" #xkbmodel0
	Option      "XkbLayout" "us,ru" #xkeymap0
	Option      "XkbVariant" ",winkeys"
	Option 		"XkbOptions"   "grp:ctrl_shift_toggle,grp_led:scroll"
	#Option      "XkbVariant" "" #xkbvariant0
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2" #mouse0protocol
	Option	    "Device" "/dev/mouse"
	#Option      "Emulate3Buttons"
	#Option      "Emulate3Timeout" "50"
	Option      "ZAxisMapping" "4 5" #scrollwheel
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    35-81
	VertRefresh  59-76
	#UseModes     "Modes0" #monitor0usemodes
	Option      "PreferredMode" "1280x1024" #monitor0prefmode
	EndSection
	
Section "Modes"
	Identifier "Modes0"
	#modes0modeline0
EndSection

#110627 remove...
##server can find BusID automatically, comment out...
#Section "Device"
#	Identifier  "Card0"
#	Driver      "vesa" #card0driver
#	VendorName  "Unknown Vendor"
#	BoardName   "Unknown Board"
##	BusID       "PCI:0:2:0" #card0busid
#EndSection

Section "Screen"
	Identifier "Screen0"
#	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	#Option         "metamodes" "1280x800_60 +0+0" #METAMODES_0
	Subsection "Display"
		Depth       24
		Modes       "1280x1024" #screen0modes
	EndSubsection
EndSection
#PuppyHardwareProfile=Intel_R__Sandybridge_Ivybridge_GraphicsC_19
Section "InputDevice"
    Identifier "touchscreen"
    Driver "evtouch"
#    Driver "Mastouch"
#    Driver "evdev"
    Option "Device" "/dev/input/event0"
    Option "DeviceName" "touchscreen"
    Option "MinX" "0"
    Option "MinY" "0"
    Option "MaxX" "1280"
    Option "MaxY" "1024"
    Option "ReportingMode" "Raw"
    Option "Emulate3Buttons"
    Option "Emulate3Timeout" "50"
    Option "SendCoreEvents" "On"
#    Option "Calibrate" "1"
#    Option "AlwaysCore"
EndSection

Section "InputDevice"
    Identifier "dummy"
    Driver "void"
    Option "Device" "/dev/input/mice"
EndSection
# cat /proc/bus/input/devices

Code: Select all

I: Bus=0003 Vendor=0df9 Product=0001 Version=0110
N: Name="MASTouch TouchSystems MASTouch USB Touchscreen"
P: Phys=usb-0000:00:1d.0-1.4/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: PROP=0
B: EV=1b
B: KEY=70000 0 0 0 0 0 0 0 0
B: ABS=100 3
B: MSC=10
One thing I don't like, which is strange are some lines from Xorg.0.log

Code: Select all

[  1725.173] (II) LoadModule: "evtouch"
[  1725.173] (II) Loading /usr/lib/xorg/modules/input/evtouch_drv.so
[  1725.173] (EE) Failed to load /usr/lib/xorg/modules/input/evtouch_drv.so: /usr/lib/xorg/modules/input/evtouch_drv.so: undefined symbol: xf86GetMotionEvents
[  1725.173] (II) UnloadModule: "evtouch"
[  1725.173] (II) Unloading evtouch
[  1725.173] (EE) Failed to load module "evtouch" (loader failed, 7)
[  1725.173] (EE) No input driver matching `evtouch'
Does anybody could help me to get touchscreen working?

Thanks in advance.

Post Reply