First of all you need to check your device. My screen adatpter is an usb type,
Type in terminal:
lsusb
The answer is following:
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
Bus 002 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 05e3:0716 Genesys Logic, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The controller is:
Bus 002 Device 003: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
If everything is match, we can start
The main steps are:
- Make xorg.conf
- Installation of Egalax driver
- Calibration
I made fresh installation of Ubuntu 10.04 from pen drive. Originally the xorg.conf is not exist in the /etc/x11 folder. We need to make it.
- How to make xorg.conf
Open a new terminal with CTRL + ALT +F2 press, and type the followings:
sudo service gdm stop
sudo Xorg -configure
sudo service gdm start
Finally CTRL + ALT + F7 and you will return to Gnome.
- How to install Egalax driver
You can find and download the driver from here: eGalax
When the driver arrived your machine, you unpack eGalaxTouch.tar.gz to a favourite place.
Open a terminal and navigate the favourite place.
type the following:
sudo sh setup.sh
If everything ok, the installer will be start:
root@makiworld-desktop:~# sh setup.sh
(*) Linux driver installer for eGalax Touch controller
(I) Check user permission: root, you are the supervisor.
(I) Begin to setup eGalax Touch driver.
(I) Extract eGalax Touch driver archive to /usr/local/eGalaxTouch32.
(I) Create eGalaxTouch utility shortcut in /usr/bin.
(I) Create TKCal tool shortcut in /usr/bin.
(I) Searching the X input modules directory.
(I) Check X window version: 1.4.x
(I) Copy X module: x14/egalax_drv.so to /usr/lib/xorg/modules/input.
(Q) Which interface of controller do you use?
(I) [1] RS232 [2] PS/2 [3] USB:
This place is need to select the interface. In my case is 3
(Q) Which interface controller do you use?
(I) [1] RS232 [2] PS/2 [3] USB: 3
(I) Using interface: USB
(I) Found a non-HID compliant touch controller.
(W) No inbuilt kernel module for touch controller found.
(I) It is needed to build "tkusb" kernel module for touch controller.
(I) For details, see the document "How to build module.pdf".
If you see this the driver installation is finish. My opinion is much better if you restart your computer ex. in terminal you type init 6
If your computer is restarted and if you have a display you can continue.
- Touch Calibration
You can start the calibration by
sudo eGalaxTouch
The application must started, and you can calibrate your display in Tool tab.
I got a problem here, because the touch calibration wasn't feed back.
The root cause was in my case: the mouse click event and touch-screen click event was a similar exceptions. If you have a same problem you must set your xorg.conf.
First type in the terminal:
cat /proc/bus/input/devices
The response is:
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=mouse0 event2
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=0458 Product=003a Version=0111
N: Name="Genius Optical Mouse"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input4
U: Uniq=
H: Handlers=mouse1 event4
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10
I: Bus=0003 Vendor=0eef Product=0001 Version=0100
N: Name="eGalax Inc. USB TouchController"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/input/input5
U: Uniq=
H: Handlers=mouse2 event5
B: EV=1b
B: KEY=401 0 30000 0 0 0 0 0 0 0 0
B: ABS=f
B: MSC=10
I: Bus=0001 Vendor=10ec Product=0662 Version=0001
N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/input/input6
U: Uniq=
H: Handlers=kbd event6
B: EV=40001
B: SND=6
See this and set your xorg.conf
from
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
repeair to
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5 6 7"
EndSection
and add the fallowing line touchscreen section
Option "Device" "events"
If its done restart your computer, because sometimes the gdm restart is not enough, and restart the calibration
Theoretically its will be function:
Finally I attached the whole xorg.conf for a better picture.
Section "ServerLayout"
InputDevice "EETI" "SendCoreEvents"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection
Section "Module"
Load "extmod"
Load "glx"
Load "record"
Load "dri"
Load "dri2"
Load "dbe"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mouse1"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "82G33/G31 Express Integrated Graphics Controller"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
### Touch Configuration Beginning ###
Section "InputDevice"
Identifier "EETI"
Driver "egalax"
Option "Device" "usbauto"
Option "Device" "events"
Option "Parameters" "/var/lib/eeti.param"
Option "ScreenNo" "0"
#Option "SkipClick" "1"
Option "MinX" "380"
Option "MinY" "463"
Option "MaxX" "1570"
Option "MaxY" "1560"
EndSection
### Touch Configuration End ###
So that's it. Hopefully its will be function. Enjoy.