Problems installing touchscreen on Debian Etch
I have a HP T5735 Thin Client with preinstalled Debian Etch. I'm
trying to install a LG L1730sf touchscreen and it's recognized ok, but
calibration is off and y-axis is swaped.
After a long ride I have found that the build in usbtouchscreen module
is not working with ITM touch screen devices and I have now managed to
build the itmtouch driver from source (provided by [url]http://www.rantakokko.net/node/43[/url]).
Infortunately it havn't solved the problems. The touch feature is
better and the mouse is not jumping all over, but calibration is of
and the y-axis is swaped.
Calibration and y-axis swapping is supposed to be set in xorg.conf but
it seems as it's not loaded. No matter what Options I change there is
no change in behavior.
Doing 'cat /proc/bus/usb/devices' shows the device.
Doing '/sbin/lsmod' shows that itmtouch is loaded in usbcore.
Doing 'rmmod itmtouch' disables the touch feature.
Doing 'modprobe itmtouch' enables the touch feature.
I have not been able to build the ev_calibration tool, so my xorg.conf
options is added manually.
Could you please help - I'm getting really fustrated after using
several days trying to make the touch feature work!!!
My xorg.conf looks like this:
Identifier "Default Layout"
Screen 0 "aticonfig-Screen" 0 0
Screen "aticonfig-Screen" RightOf "aticonfig-Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse" "CorePointer"
InputDevice "Generic Mouse"
Option "AllowMouseOpenFail" "true"
# Option "CorePointer"
Option "Device" "/dev/input/event1"
# Option "Device" "/dev/input/itmtouch"
Option "DeviceName" "touchscreen"
# Option "Calibrate" "1"
Option "MinX" "120"
Option "MinY" "289"
Option "MaxX" "3894"
Option "MaxY" "3799"
Option "ReportingMode" "Raw"
Option "Emulate3Timeout" "50"
Option "Rotate" "cw"
Option "SwapY" "On"
My Xorg.0.log shows (only lines with itmtouch):
(II) LoadModule: "itmtouch"
(WW) Warning, couldn't open module itmtouch
(II) UnloadModule: "itmtouch"
(EE) Failed to load module "itmtouch" (module does not exist, 0)
When changing xorg.conf Driver to "evtouch" the results in Xorg.0.log
(II) LoadModule: "evtouch"
(II) Loading /usr/lib/xorg/modules/input/evtouch_drv.so
(II) Module evtouch: vendor="Kenan Esau"
compiled for 220.127.116.112, module version = 0.8.3
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.5
(**) Option "Device" "/dev/input/event1"
evdev device opened successfully
(**) Option "MinX" "120"
(**) Option "MaxX" "3894"
(**) Option "MinY" "289"
(**) Option "MaxY" "3799"
(**) Option "Emulate3Buttons"
(**) Option "Emulate3Timeout" "50"
(**) Option "SwapY" "On"
(**) Option "DeviceName" "touchscreen"
(**) Option "SendCoreEvents"
(**) touchscreen: always reports core events
The results using evtouch or itmtouch is the same. Feature is working
but calibration and y-axis is off.
To make the itmtouch I had to do several steps and a hack renaming
'itmtouch.ko' to 'usbtouchscreen.ko', that might be the cause of my
problems, but that was the only way I could make the driver load.
Please see the description of steps here:
After downloading the source I tried 'make' and 'make install' but
they failed. Trying procompiled versions gave problem with glibc_2.4,
so the only options is to build the driver.
I found that I needed utils-dev (this might not be nessesary). Get it
# apt-get install xutils-dev
From the output I found that pkg-config was missing.
Before I could get it I had to make some modifications to '/etc/apt/
# vi /etc/apt/sources.list
Add to the top:
deb-src [url]http://ftp.dk.debian.org/debian[/url] unstable main contrib non-free
deb [url]http://ftp.dk.debian.org/debian[/url] etch main
# apt-get update
# apt-get install linux-headers_2.6.18-5-686
Modify itmtouch.c. Change:
'#include ' to '#include '
and comment line 341: '.owner = THIS_MODULE,
' to '//.owner = THIS_MODULE,
Now try to make:
# make install
This worked for me. The build was a success and I now had the
I then made the modifications to /etc/X11/xorg.conf (actually I
already had done that several times).
The problem was that I couldn't get the evtouch/itmtouch to load. I
got the following errors:
Trying 'evtouch': In Xorg.0.log: "No Input driver matching evtouch"
Trying 'itmtouch': I got error that '/lib/modules/2.6.18-5-686/kernel/
drivers/usb/input/usbtouchscreen.ko' could not be found.
After several tries to load itmtouch i finally tried to copy
itmtouch.ko to '/lib/modules/2.6.18-5-686/kernel/drivers/usb/input/'
and renaming it to 'usbtouchscreen.ko'!
Then trying to load itmtouch again:
# modprobe itmtouch
The driver was loaded and the screen is working. Only step that
remains is to calibrate!