PenMount
Installation
How to get PenMount driver sources
Centos 5.1
- Download the driver from PenMount website http://www.penmount.com.tw/down_2_1.php
# wget http://www.penmount.com.tw/Download/Driver/PenMount/PenMount%20Fedora%20Core5_6_7%20Driver%20V2.0.zip
- Pick the Fedora Core 5/6/7 driver
- Unzip the file
# unzip "PenMount Fedora Core5_6_7 Driver V2.0.zip"
- Move the unzipped file to /usr/local
# mv "PenMount Fedora Core5_6_7 Driver V2.0" /usr/local/penmount
- Go into the new created folder
# cd /usr/local/penmount
- Make executable the bash script files and binaries
# chmod +x *sh pm* *calib
Centos 5.2/5.3 - Fedora 8/9/10
- Download the driver from PenMount website http://www.penmount.com/support_9000.htm and follow the same steps above.
How to setup PenMount driver
- Run the install script
# ./install.sh
- Follow the steps to setup the device and choose:
- model: Penmount 9000
- port: Serial port 4 (/dev/ttyS3)
- baudrate: 19200 bps
- beeper: Off
- righ button: Off
The output will be similar to:
+----------------------------------------------------+ | PenMount touch screen setup | +----------------------------------------------------+ X server confguration file : /etc/X11/xorg.conf +-------------------------------+ | Select PenMount model | +-------------------------------+ 1. PenMount 9000 2. PenMount 5000 3. PenMount 6000 (COM) 4. PenMount 6000 (USB) Which one? (1-4) => 1 >>>>> PenMount 9000 +--------------------------------+ | Select serial port | +--------------------------------+ 1. Serial port 1 (/dev/ttyS0) (default) 2. Serial port 2 (/dev/ttyS1) 3. Serial port 3 (/dev/ttyS2) 4. Serial port 4 (/dev/ttyS3) 5. Other serial port Which one? (1-5) => 4 >>>>> /dev/ttyS3 +--------------------------------+ | Select PenMount baudrate | +--------------------------------+ 1. 19200 bps (default) 2. 9600 bps Which one? (1-2) => 1 >>>>> 19200 bps +--------------------------------+ | PenMount Beeper | +--------------------------------+ 1. On (default) 2. Off Which one? (1-2) => 2 >>>>> Beeper Off +--------------------------------+ | PenMount Right Button | +--------------------------------+ 1. On 2. Off Which one? (1-2) => 2 >>>>> Right Button Off +--------------------------------+ | Finish | +--------------------------------+ Model : PenMount 9000 series Port : /dev/ttyS3 (COM) Baud : 19200 bps Beep : OFF R-button : OFF PenMount setup finished!
How to setup PenMount driver on Xorg
The install script generates an input entry for the PenMount device and the configuration section for it, it could be modified by hand.
The ServerLayout entry looks like:
Section "ServerLayout" ... InputDevice "Penmount" "AlwaysCore" EndSection
And the InputDevice entry looks like:
Section "InputDevice" Identifier "PenMount" Driver "penmount" Option "Protocol" "PM9000" Option "Device" "/dev/ttyS3" Option "PMode" "2" Option "MinX" "10" Option "MaxX" "1000" Option "MinY" "10" Option "MaxY" "1000" Option "ADBit" "10" Option "Baudrate" "19200" Option "Beep" "0" # 0 = no beep, 1 = beep enabled Option "PressVol" "100" # volume of beep (press event) Option "PressPitch" "880" # pitch of beep (press event) Option "PressDur" "15" # length of beep in 10ms (press event) Option "ReleaseVol" "0" # volume of beep (release event) Option "ReleasePitch" "1200" # pitch of beep (release event) Option "ReleaseDur" "10" # len of beep in 10ms (release event) Option "RightButton" "0" # right button active in ms Option "RightButtonStart" "500" # right button active in ms Option "RightButtonEnd" "900" # right button inactive in ms EndSection
How to calibrate the PenMount touchscreen
Just run the calibration tool telling it how many points you'd like to test, that could be 4,9,16 or 25. Suppose we want to calibrate touching only 4 points (the actual 4 screen corners), then issue the command:
# /usr/local/penmount/adv-calib 4
On recent versions of penmount driver the calibration tool is invoked with the command:
# /usr/sbin/gCal 4
RPM Driver
The driver for PenMount devices can also being installed from Bashlinux repository.
# yum install xorg-x11-drv-penmount-iei
The name has -iei at the end to avoid confusions with the regular "non-working" rpm available in base repositories of standard Linux distributions