Touchscreen HOWTO

How to do things, solutions, recipes, tutorials
Message
Author
tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#46 Post by tempestuous »

Yes, I can see it's getting confusing. So here are the complete steps:
Boot to the Puppy 5.1 CD, and install toughbooksmk-k2.6.33.2.pet
Now load the toughbooksmk module, plus evdev module -

Code: Select all

modprobe toughbooksmk
modprobe evdev
It may be necessary to add this to /etc/modules.conf -

Code: Select all

alias char-major-13-67 evdev
It wouldn't hurt.
Now modify your /etc/X11/xorg.conf file;
Add these two new InputDevice sections -

Code: Select all

Section "InputDevice"
    Identifier "touchscreen"
    Driver "evtouch"
    Option "Device" "/dev/ttyS2"
    Option "DeviceName" "touchscreen"
    Option "MinX" "82"
    Option "MinY" "146"
    Option "MaxX" "4036"
    Option "MaxY" "3999"
    Option "SendCoreEvents" "On"
EndSection

Section "InputDevice"
    Identifier "dummy"
    Driver "void"
    Option "Device" "/dev/input/mice"
EndSection
Notice ttyS2.
In Section "ServerLayout" find the line:
InputDevice "Mouse0" "CorePointer"
and below that line add this -

Code: Select all

InputDevice "touchscreen" "CorePointer"
InputDevice "dummy"
Now it's time to restart the X server.
Ctrl<Alt>Backspace will exit X and leave you at the command prompt.

UPDATE: before relaunching X, it's very important to run this command -

Code: Select all

inputattach -smk /dev/ttyS2
Now you can launch X with "xwin"
Last edited by tempestuous on Tue 28 Dec 2010, 02:46, edited 1 time in total.

CoronelN
Posts: 68
Joined: Wed 22 Dec 2010, 17:18

#47 Post by CoronelN »

Thanks mate

It did not start and had to run the xorg wizard...
Looks like i will need that compiled kernel... if only i knew how to do it myself.


Merry Xmas
N

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#48 Post by tempestuous »

CoronelN, I'm back from Christmas break, but before I compile the modified kernel, I realise that it's very important to run the "inputattach ..." command before X is launched.
I have updated the instructions two posts earlier. Can you try this? You might be lucky and not need a modified kernel.

CoronelN
Posts: 68
Joined: Wed 22 Dec 2010, 17:18

#49 Post by CoronelN »

Tempestuos, thanks you very much i hope you spent a nice xmas and the next year be all that you expect! (my way of best wishes in my esp-fran-glish..)

I tried as you suggested and X11 doenst starts.

maybe i need that kernel after all... one question thou... whenever i update to a newer version of puppy lets say lupu-518 or 520... i will need to apply the kernel ?
I mean as far as i undersand the kernel doesnt necessarly changes between versoins... or i am wrong ?

my question is because if i need a new kernel each time i'd rather ask you to show me how to compile it than brother you every update...

Thanks again ! a 1000 thanks!
N

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#50 Post by mcelmeel »

Hi,

I am completely new to Linux and obviously Puppy 5.1.1 and have spent the last 2 days working out how to create a Puppy LiveUSB and install Java and run a Java app. I finally got that all working and now the problem i have is getting my Elo touchscreen working correctly. I run the xorg wizard and probed for a suitable driver and then used xvidtune to fill out the space. So the display is working fine but its the touch input that i'm having the trouble with.

This thread has brought some light to my situation. i have read through it thourghly and have a small understanding of what I need to do but still don't really know where to start.

I put the command into the console;
modprobe elo and got a warning: deprecated config file so i renamed the file with a .OLD extention as advised by another website.

Then i entered the command again which seemed to work correctly. Then i entered modprobe elographics_drv and got error FATAL: Module elographics_drv not found. The module is definately there as I have found it in a search of files.

If anyone would be able to give me some help or guide me through this process, I would be extremely grateful.

Thanks,

Anthony

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#51 Post by tempestuous »

mcelmeel wrote:now the problem i have is getting my Elo touchscreen working correctly.
I can give you some advice regarding this particular touchscreen driver, but I cannot guarantee it's actually the correct touchscreen driver for you.
You should really tell us exactly what your computer hardware is.
mcelmeel wrote:i have read through it thourghly and have a small understanding of what I need to do but still don't really know where to start.
Well assuming the elo touchscreen driver is correct, you should refer to the earlier post in this thread
"HOWTO - serial touchscreens"
http://www.murga-linux.com/puppy/viewto ... 651#295651
Your kernel module would be elo and your Xorg input plugin would be elographics or elo2300 (the "_drv" extension should not be used in the xorg.conf file).
mcelmeel wrote:I put the command into the console;
modprobe elo and got a warning: deprecated config file
That error message is trivial. Your elo kernel module would have loaded just fine ... but is the elo module really correct for you?
mcelmeel wrote:Then i entered modprobe elographics_drv and got error FATAL: Module elographics_drv not found.
No, no. "elographics_drv" is an Xorg input plugin, not a kernel module. It's not loaded by the modprobe command, it's loaded by the Xorg server, after being configured in the xorg.conf file.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#52 Post by tempestuous »

CoronelN, I have sent you information regarding a modified kernel by private message.

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#53 Post by mcelmeel »

Hi tempestuous,

Thank-you very much for your reply. The exact monitor I'm using is a Elo Entuitive 1746L/1749L. The computer hardware is a Neoware Thin Client (Neoware CA19).

I have checked the Elo website for drivers and they provide drivers for the popular Linux OS but not for Puppy.

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#54 Post by mcelmeel »

Hi,

I think I may mis understood the instructions at the start of the thread. Do i enter into the console;

modprobe elo
modprobe evdev ## (i thought this was part of the fijitsu example only)

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#55 Post by tempestuous »

Yes, both.

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#56 Post by mcelmeel »

I have done that and am in the middle of editing the xorg.conf file. I set the driver as elographics but i have found another thread where a guy has got his elo touchscreen to work using driver evtouch. Do you think i should try this instead? Thanks.

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#57 Post by mcelmeel »

just realised that it was an ubuntu forum, so maybe just stick with the elographics. I was looking for the minX settings, do you think they will be the same as a different Linux distro?

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#58 Post by mcelmeel »

OK, I'm still trying to get the touchscreen input working and am getting closer and learning more but just can't get it right.

Its a usb input so i'm using the usbtouchscreen kernel module and evtouch xorg file.

i followed the instructions very carefully and edited the xorg.conf file correctly with the new device data copied exactly from the post as well as the code into System Layout.

Everytime i do it and then reboot, it says that X has not worked correctly or something and that I have to run xorgwizard again.

I have tried several times with no joy. Have you any idea what I may be doing wrong?

Also, each time i start the first instruction;

modprobe usbtouchscreen
modprobe evdev ##

i get the error: deprecated file /etc/modprobe.conf and i have to rename the file .OLD. Would this have anything to do with it not working as the same error message displays during the reboot right befire the X thing?

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#59 Post by mcelmeel »

Hi, I have tried the whole process again with still the same outcome, X will not run and i have to run the xorgwizard again everytime.

I deleted my lupusave file so that all settings were reset (i think thats what happens) and then i started the whole install again with the same outcome.

Any help would be greatly appreciated.

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#60 Post by mcelmeel »

sorry guys if i seem to be filling this thread up with just my posts but i want to give as much info as possible incase someone is able to help.

what is happening is that when i follow the instructions and add all the code to xorg.conf, then when i restart the x server the following happens

FATAL: deprecated etc/modprobe.conf something something /etc/modprobe.d/

Starting X...
Exiting X
xwin [f95|wnm] to start x
If x did not start, enter xorgwizard. poweroff or reboot.

i get this everytiime or something like this as it is all from memory as i can not copy it. I have to run the xorgwizard each time to get the system working again and when this is done, all the code entered into xorg.conf is gone.

Also, there is reaction from the mouse pointer via touch but it is well off calibration but i can not change this since the code is gone inc MinX,MinY etc.

Any help would be greatly appreciated.

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#61 Post by mcelmeel »

Hi Guys,

This is getting more stranger for me and so fustrating. I tried the install again and once again it was unable to start X and i had to run xorgwizard. When the wizard has finished and the computer loaded, the touchscreen mouse works perfectly. the pointer goes exactly where ever i press it. I thought that i finally had it. After a short time using it, the pointer was slightly off calibration. then as i continued to use the computer, the calibration changed and got worse. after running xorgwizard again, the mouse was working perfectly and continued to do so until the first program that i opened. this caused the calibration to go off. then when i started another program, the calibration changed bringing me to the conclusion that starting a program changes the calibration. This has me completely stumped. Has anyone any idea what may be causing this or has anyone expericenced it before. Also, the config settings are not in the xorg.conf file.

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#62 Post by mcelmeel »

Hi Guys,

Still no joy getting the touchscreen to work. I have tried everything i can think of, changed to puppy 4.3.1, followed instructions on the elo website. sometime i can get the cursor working but always off calibration and can never get it calibrated.

Is there anyone there that may be able to help me at all, please?

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#63 Post by mcelmeel »

Hi Guys,

I got the touchscreen working but have stumbled across another problem that I'm hoping someone may know the solution to.

The touchscreen is being used as a kiosk which is coin operated. When the system first loads and a coin is put it to activate the USB conection to the touchscreen, it works fine. But when the timer runs out and another coin has to be inserted, the touchscreen moves way off calibration. Does anyone know if there is any setting i could use in xorg.conf to prevent the calibration changing when the usb connection is cut and then connected again.

I can paste my xorg.conf setting here is needed, just that i'm using my vista computer at the minute.

Thanks,

Anthony

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#64 Post by mcelmeel »

Here is the code from my xorg.conf file.

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "touchscreen" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc102"
Option "XkbLayout" "gb" #xkeymap0
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 "InputDevice"
Identifier "touchscreen"
Driver "evtouch"
Option "Device" "/dev/input/evtouch_event"
Option "DeviceName" "touchscreen"
Option "MinX" "0"
Option "MinY" "0"
Option "MaxX" "4095"
Option "MaxY" "4095"
Option "ReportingMode" "Raw"
#Option "Emulate3Buttons"
#Option "Emulate3Timeout" "50"
Option "SendCoreEvents" "On"
EndSection

mcelmeel
Posts: 33
Joined: Mon 27 Dec 2010, 13:10

#65 Post by mcelmeel »

Hi,

does anyone have any idea how to manually calibrate an elo serial touchscreen. My calibration is slightly off and when i run the elova calibration tool, it only gives me two targets on the right of the screen but none on the left and calibration is away off.

I need to manually change the NVRAM or something like that i think or is there a file with the settings that i could change. I've tried changing Xorg.conf but it makes no difference.

Post Reply