- Download the Linux touchscreen driver for X called evtouch.
- Unpack the archived files: tar xzvf evtouch-xx.yy.tar.gz
- Copy the file "evtouch_drv.so" to either of these locations, depends on your linux distribution: "/usr/X11R6/lib/modules/input" or "/usr/lib/xorg/modules/input/" Which ever full path that you find on your system is the correct one to use.
- Make sure file rights is correct by using "chmod 644 /usr/X11R6/lib/modules/input/evtouch_drv.so" or "chmod 644 /usr/lib/xorg/modules/input/evtouch_drv.so"
- Figure out which device is the touchscreen uses, view the file "/proc/bus/input/devices" and find the USB touch panel and see which event is uses.
- This event id can change at boot time, so I suggest creating a script that changes the X conf to the current one every boot. My system seams to have stabilized the event id but if someone need a script let me know and I will write it for you.
- Insert the bold red lines lines below to the file "/etc/X11/XF86Config-4" or "/etc/X11/xorg.conf". (The lines not bold and red should already be found in the file.
- NOTE: Change the /event4 to whatever event your touch is on!
# Option "Calibrate" "1"
Identifier "touchscreen"
Driver "evtouch"
Option "CorePointer"
Option "Device" "/dev/input/event4"
Option "DeviceName" "touchscreen"
Option "MinX" "295"
Option "MinY" "200"
Option "MaxX" "3815"
Option "MaxY" "3948"
Option "ReportingMode" "Raw"
Option "Emulate3Buttons"
Option "Emulate3Timeout" "50"
Option "SendCoreEvents" "On"
Option "Rotate" "cw"
Option "SwapY" "1"
#Option "TapTimer" "200"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "touchscreen" "CorePointer"
EndSection
- Thats it! Try it by pressing CTRL-ALT-F1 and login and then "pkill X", if X isn't restaring by it self start it with startx. The X is availavle at CTRL-ALT_F7.
- You could change the min/max x/y if my calibrations isn't matching your screen.
- Remember that your system might have placed the device on other event than event4! Change according to my instruction above.
- You might need mouse dummy device if you get strange clicking behavior, see the evtouch homepage for this.
- The Option "TapTimer" "200" can be uncommented and set to your liking.
I have also set up MythTV on my Nova T-500 card tonight, I'm now watching encrypted channels using my Boxer card in a phoenix card reader :-)
This weekend I also hooked up my house electricity meeter to my server so I can monitor every watt that is being used in real time, really cool! It is a LED sensor that detect the pulses from my meeter...more of this in next post!
13 comments:
Hi!!!
I have tested your solution on my Ubuntu installation, but i lost the configuration at every reboot.
i nead a script that changes the X conf every boot.
Please reply scarob3000@yahoo.it
Hi there,
Hope you are able to help - we have an LG flatron L1730SF touch screen and we're trying to get it to work with an HP thin client running NeoLinux... any suggestions / solutions?
thanks
steve
Hi Steve, I have no experience of NeoLinux. I guess you should be able to compile the drivers if not already available for NeoLinux. Do you have a specific problem let me know.
Hi,
So eventually we threw out NeoLinux and loaded Goblinx, based on Slax. Works very well, we have the touchscreen working. But what we find is that our 1280x1024 resolution isnt performing accurately. We're building a firefox kiosk pointing to a web page with a native resolution of 1280x1024, and the page isnt fitting, requires me to scroll down.
It comes down to the modelines in our xorg.conf. Would it be possible for you to post your modelines for 1280x1024?
Thanks,
steve
Hi! I'm on Ubuntu 8.04 and it seems another pair of hands..
I've got the same Lcd as you and when I change the configuration from the default according to your solution the mouse and the touchscreen wont work..
By default instead it assumes the standard behaviour you described, inverted axis and some more ;)
Could you post your kernel version, linux distro details, eventually added package and maybe the name of the module that your kernel use to interface to lcd? (in my case ubuntu uses usbtouchscreen)
Many many thanks
Steve and Dr.ake here is your answers. Sorry for the long delay. I'm been verry busy with projects and Blackhar and Defcon stuff :-)
My kernel is 2.6.22-14 nothing special about my installation. Just a normal install from scratch. Nothing special added that is not posted on my blogg.
Here is my details from xorg.conf - leaving out the obvious stuff (posted on my blogg)
MinX 295
MinY 200
MaxX 3815
MaxY 3948
Rotate cw
SwapY 1
TapTimer 2000
/fLa
Hi. Interesting site. Its an idea i hope to do when i get building my house. I have an Evo Touch touch screen. Its a serial device. I also have the inverted Y issue you are having. but when i add everything like you say it still is inverted. Im running ubuntu 8.04. Could it be the fact the device is serial that these fixes don't work? i obviously have left out the USB specific lines..
any ideas?
- Paul.
Hi Fla
Thanks for this great post - been cursing over my L1730SF for a looong time.
Tried your settings on Kubuntu 8.04 (KDE4) and the X/Y axis are inverted and touch very jumpy.
Any other hints than the ones you have posted?
Cheers,
Mike
Paul and Mike, I'm sorry but I have no idea why or what makes your X/Y axis still inverted. Could possible be that the serial device act differently. Play around with the parameters and you should be able to swap the axis around to the right way.
The touch feeling can be modified a little bit the parameters but aren't perfectly good on this device, I guess you get what you pay for. Try using a touchscreen pen and you should get perfect result, but yes using the finger is the main idea i know.
Let me know if and how you solves your problems.
/fLa
Yep, i've made it work with Xubuntu 8.04 but some problems remain..
I've tried it on windows: the pointer follow smoothly the finger, on a just installed ubuntu it move smoothly too (obviously with coords inverted with no calibration) but when I change the driver it start to jump following the finger by regular intervals and I cant, for example, clicking buttons that are in the middle of that interval..
That damn monitor ^__^
dr.ake, it sounds like the resolution is wrong for the device, the touch driver mouse has a lower resulution than the screen - then I would expect this 'boxing' result.
Try changing the size of the screen or simply the resolutuion.
/fLa
Trying to get it work on Gentoo Linux and evtouch driver 0.8.7 requires a complete downgrade of my X Server (to xorg 1.4) and others. That's a no go so far. :-/
Hi all,
To solve the "boxing issue" i suggest adding the followin line in the device section of you xorg.conf file :
Option "MoveLimit" "18"
http://www.rantakokko.net/tapani/blog/2009/08/10/lg-l1730sf-touch-screen-display-in-ubuntu-linux-8-04-hardy-heron-part-2/
Post a Comment