USB POSTouch screen Linux driver installation

(Last modify date:2008/03/04)

The files are licensed under terms and conditions of GNU General Public license v2, unless stated otherwise.


This distribution contain the below files:


QUICK START GUIDE (binary installation)

 

Index


1. Install USB interface POSTouch Driver

1.1 Create device node for USB interface POSTouch

Remove exist device node

#rm -f /dev/idtk?

Make device node for USB model. Make device node to represent the USB POSTouch controller device.

Create the device node special "/dev/idtk0"

#mknod -m 666 /dev/idtk0 c 180 128

1.2 install POSTouch driver

#rpm -ivh USBRH9-1.0-1.0.i686.rpm

1.3 Create necessary files

depmod - program to generate modules.dep and map files.

#depmod -a

1.4 Modify kernel module utility

modprobe - program to add and remove moduels form the linux kernel

#modprobe touch


2. Xinput Driver installation

2.1 Check the version of the X-Server

Check the version of the X-Server your system is running. If you are running the XFree86 server, type the following command:

XFree86 -version

If you are running Xorg server, type the following command:

Xorg -version

2.2 Xinput Driver installation for Xorg

  1. Add the following black lines into xorg.conf file (maybe in /etc or /etc/X11).
    If your system will not have a mouse, then use "CorePointer" instead of "SendCoreEvents" in the "ServerLayout" section.
    Section "ServerLayout"

    Identifier "Default Layout"
    Screen "Default Screen"
    InputDevice "Generic Keyboard"
    .
    .
    .
    InputDevice "Touchscreen0" "SendCoreEvents"

    EndSection

    Section "InputDevice"

    Identifier "TouchScreen0"
    Driver "xfdrvtouch"
    Option "Device" "/dev/idtk0"
    Option "ScreenNo" "0"
    Option "Rotation" "0"
    Option "SwapY" "0"
    Option "DegbugLevel" "0"
    Option "AlwaysCore"
    Option "UpSound" "1"
    Option "DownSound" "1"
    Option "RightButtonON" "1"

    EndSection

    *note: "Device" item is dependent on user choice, COM1=/dev/ttyS0, COM2=/dev/ttyS1, ..., etc.

  2. Press Ctrl+Alt+Backspace keys to restart X server.

2.3 Xinput Driver installation for xfree86

  1. Add the following black lines into XF86Config file (maybe in /etc or /etc/X11).
    If your system will not have a mouse, then use "CorePointer" instead of "SendCoreEvents" in the "ServerLayout" section.
    Section "ServerLayout"

    Identifier "Default Layout"
    Screen "Default Screen"
    InputDevice "Generic Keyboard"
    .
    .
    .
    InputDevice "Touchscreen0" "SendCoreEvents"

    EndSection

    Section "InputDevice"

    Identifier "TouchScreen0"
    Driver "xfdrvtouch"
    Option "Device" "/dev/idtk0"
    Option "ScreenNo" "0"
    Option "Rotation" "0"
    Option "SwapY" "0"
    Option "DegbugLevel" "0"
    Option "AlwaysCore"
    Option "UpSound" "1"
    Option "DownSound" "1"
    Option "RightButtonON" "1"

    EndSection

     

  2. Reboot.

3. Setup and run Touch Utility

  1. Type the following command to get GTK version:

    rpm -qa | grep gtk

    Example get result on Fedora Core 5:

    [root@localhost ~]# rpm -qa | grep gtk
    pygtk2-2.4.0-1
    gtkhtml2-2.6.2-1
    gtk2-2.4.13-9   <--  GTK2
    gnome-python2-gtkhtml2-2.6.0-3
    usermode-gtk-1.74-1
    authconfig-gtk-4.6.5-3.1
    gtkhtml3-3.3.2-3
    gtkspell-2.0.7-2
    gtk+-1.2.10-33
    gtk-engines-0.12-5
    gtksourceview-1.1.0-3
    pygtk2-libglade-2.4.0-1
    gtk2-engines-2.2.0-6
    iiimf-gtk-12.1-4

  2. Installation:
    Decompress the utilities and copy to /usr/local/bin
    Example command for GTK2.0:
    #tar zxvf LinearUSB_GTK2.0.tar.gz
    #cp ./Linear232 /usr/local/bin
    #tar zxvf FreeDraw_GTK2.0.tar.gz
    #cp ./FreeDraw /usr/local/bin
  3. Run utilities:
    • Touch panel 5 / 9 points linear calibration utility:
      #Linear232USB /dev/idtk0 p
      where  p = 5 or 9 <default>

      Note:  If you use GTK1.x , you need to AutoHide X windows taskbar by Manually to make the utility to occupy all screen area. If you don't, the mouse data will be wrong.
    • Free Draw Utility:
      #FreeDraw