Wierd (2 me) issues attempting install touchscreen

More
12 years 2 months ago #50503 by Zahnrad Kopf
FINALLY!

Thank you ArcEye.

I'm writing you from the box and using the touchscreen correctly. It was a number of issues, but most troublsome was getting the udev rules properly in place and then creating the files that were missing so that xinput-calibrator would actually do what it was supposed to. It would work fine if one ran it, but only until you logged out and back in, or until you rebooted. Then the calibration values were gone and it was back to not functioning correctly. Had to man page the calibrator and then create some files and udev rules.

Whew! < wipes forehead with back of hand >

Thank you! Very much. Now I can actually get to configuring things and getting this box ready to run the turning center.

Guess I need to go find out about Gmoccapy now... :)

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #50517 by BigJohnT
Did you document how you achieved this? Maybe put a wiki page up with your notes.

JT

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #50524 by Zahnrad Kopf

BigJohnT wrote: Did you document how you achieved this? Maybe put a wiki page up with your notes. JT


Hi John! I did not document it, but do have some chicken scratch notes and can recreate it easily enough I should think. Future reference is why I kept updating/editing my posts and thread. I'll be happy to scribble it down in one place if you really think it would be helpful. Thanks.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #50531 by Zahnrad Kopf
Here you go John. I believe this is complete and correct.

Installing a Serial TouchScreen in Debian Wheezy -

Install inputattach
sudo apt-get install inputattach

Install the Elographics driver
Modprobe elo

Add sid repository to /etc/apt/sources.list

### USE STRICTLY FOR INSTALLING OR UPDATING XINPUT-CALIBRATOR
deb http.debian.net/debian sid main contrib non-free

Update apt
sudo apt-get update

Install xinput-calibrator
sudo apt-get install xinput-calibrator

Comment the sid repository back out and leave it commented out so that it does not get used in the future
#deb http.debian.net/debian sid main contrib non-free

From the command line -
$> cat /proc/bus/input/devices

Look for your touchscreen's section and make note of the serial port being used.

Example of my own's output -

I: Bus=0013 Vendor=0029 Product=0000 Version=0107
N: Name="Elo Serial TouchScreen"
P: Phys=ttyS0/serio0/input0
S: Sysfs=/devices/pnp0/00:07/tty/ttyS0/serio2/input/input4
U: Uniq=
H: Handlers=mouse1 event4
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003

In my case, you can see on the "P" line that it is using ttyS0. ( /dev/ttyS0 )

Edit /lib/udev/60-inputattach.rules to add -


# Attach Elo Serial TouchScreen
ACTION=="add|change", SUBSYSTEM=="tty", KERNEL=="ttyS0", \
RUN+="/sbin/modprobe elo", \
RUN+="/lib/udev/inputattach --daemon -elo /dev/%k "
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1"
Section "InputClass"
Identifier "elographics config"
MatchProduct "Elo Serial TouchScreen"
Option "EmulateThirdButton" "on"
EndSection

Replace "ttyS0" with your own appropriate value.

Create and edit /usr/share/X11/Xorg.conf.d/99-elographics.conf

# Elo Serial TouchScreen calibration values from xinput-calibrator
# Note - these are my values. You can place them in here, but they will get changed when you run xinput-calibrator

Section "InputClass"
Identifier "calibration"
MatchProduct "Elo Serial TouchScreen"
Option "Calibration" "4074 5 4032 44"
Option "SwapAxes" "0"
Option "EmulateThirdButton" "on"
EndSection

Run xinput-calibrator & follow the prompts.
When it is done, it _should_ update the 99-elographics.conf file. However, due to variances in
some distributions, it may not work as intended and you may have to edit the values for yourself.
When it has completed running, it will pop up a window with your resultant calibration values.
Write these down and then edit the 99-elographics.conf file to reflect them in the " Option "Calibration" " field.

Restart X or rebbot and the touchscreen should work.

There you have it. I hope this helps someone retain the amount of hair I myself lost and avoid
the long term effects of the concusions by avoiding slamming one's head into the wall repeatedly.

Best Regards.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #50550 by BigJohnT
I've added it to the wiki, thanks for the info.

wiki.linuxcnc.org/cgi-bin/wiki.pl?Debian_Wheezy

JT

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #50553 by Zahnrad Kopf
Thank you John. I discovered two errors. One omission by error and one omission from copy/paste. Am I supposed to edit that page, or submit them to you? Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.259 seconds
Powered by Kunena Forum