LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-26-2008, 03:30 AM   #1
tdunk
LQ Newbie
 
Registered: May 2008
Posts: 7

Rep: Reputation: 0
Problems installing ITM touchscreen on Debian Etch


Hi

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 rantakokko.net).
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:

Code:
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
Screen "aticonfig-Screen[1]" RightOf "aticonfig-Screen[0]"
InputDevice "Generic Keyboard"
InputDevice "usbtouchscreen"
InputDevice "Configured Mouse" "CorePointer"
InputDevice "Generic Mouse"
InputDevice "dummy"
Option "AllowMouseOpenFail" "true"
EndSection
Code:
Section "InputDevice"
Identifier "usbtouchscreen"
Driver "itmtouch"
# 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 "Emulate3Buttons"
Option "Emulate3Timeout" "50"
Option "SendCoreEvents"
Option "Rotate" "cw"
Option "SwapY" "On"
EndSection
My Xorg.0.log shows (only lines with itmtouch):

Code:
(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
is:

Code:
...
(II) LoadModule: "evtouch"
(II) Loading /usr/lib/xorg/modules/input/evtouch_drv.so
(II) Module evtouch: vendor="Kenan Esau"
compiled for 4.3.99.902, 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"
QUERY HARDWARE
(**) 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
by doing:

Code:
# apt-get install xutils-dev
Now do:

Code:
# ./configure
From the output I found that pkg-config was missing.

Before I could get it I had to make some modifications to '/etc/apt/
sources.list'. Do:

Code:
# vi /etc/apt/sources.list
Add to the top (replace underscore with dot's!):

deb-src ftp_dk_debian_org/debian unstable main contrib non-free
deb ftp_dk_debian_org/debian etch main

Then do:

Code:
# 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:

Code:
# make
# make install
This worked for me. The build was a success and I now had the
itmtouch.ko driver.

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:

Code:
# modprobe itmtouch
The driver was loaded and the screen is working. Only step that
remains is to calibrate!


Thanks!
 
Old 05-26-2008, 04:31 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Aside from checking to see if there is a calibration utility provided, if the driver doesn't have a calibration utility provided, you will need to look at the driver code itself to see what options can be used.

Of course there are two sets of 'drivers' - one will be the driver invoked by X (itmtouch) which may in turn attempt to load a kernel driver, and then you have the kernel's driver. This is probably why editing the xorg.conf file gave you that message about not loading a USB driver.

The X driver may have its own code for calibration and its own set of options. Hopefully it is in the documentation because reading the X code is no fun.
 
Old 05-28-2008, 09:31 AM   #3
tdunk
LQ Newbie
 
Registered: May 2008
Posts: 7

Original Poster
Rep: Reputation: 0
I'm quite new to Linux so I was hoping not to look into the code!

Pinniped, you are talking about two sets of drivers. Could you explain that in more details as I think that could be a clue.

Thanks
 
Old 07-15-2008, 04:06 AM   #4
FredLuck
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
I have same problem here

With debian etch, kernel 2.6.25.10(last stable)
When I plug the USB the screen Debian recognizes the screen, but is imposible to calibrate, and nothing appears in xorg.conf

I think there must be an aplication for calibrate the screen, but where...
 
Old 07-15-2008, 08:14 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
check the options on the Gentoo Wiki
http://gentoo-wiki.com/HOWTO_setup_touchscreen
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Debian Etch LXer Syndicated Linux News 0 05-14-2008 05:10 AM
Debian Etch sources.list mix between etch and sid - problems alfr Debian 2 04-12-2008 10:30 AM
problems installing touchscreen drivers pyrael Fedora 0 11-18-2006 08:46 AM
Help installing Debian Etch android6011 Debian 6 06-30-2006 04:30 AM
Installing Elographics touchscreen, problems with xf86OpenSerial mick118 Linux - Hardware 1 07-12-2004 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration