I have the Fujitsu P-Series driver working on my P1510D under Hardy. I wrote a script to automate the download, compilation, and installation of the driver (see below). First you need to open a Terminal window by clicking on the Applications menu, going to Accessories and selecting Terminal. In the Terminal window type the following on the command line to launch the gedit text editor:
Code:
gedit touchscreen.sh
Next, copy the script code below and paste it into the gedit window. Click the "Save" button and close gedit.
Code:
#!/bin/bash
# Change to /tmp to avoid cluttering the current directory.
cd /tmp
# Install the packages we need for setting up the serial port and compiling the driver's source code.
sudo apt-get install -y setserial xserver-xorg-dev x11proto-core-dev x11proto-fonts-dev build-essential
# Configure the serial port to which the touchscreen is attached.
sudo setserial /dev/ttyS0 port 0x0220 irq 4 autoconfig
# Set it up so that the serial port will be properly configured at boot time.
echo -e '/dev/ttyS0 irq 4 port 0x220 autoconfig' | sudo tee /etc/serial.conf
# Download the driver's source code from the web site.
wget http://www.conan.de/touchscreen/xf86-input-fujitouch-0.6.5.tar.bz2
# Extract the source code from the file.
tar -jxf xf86-input-fujitouch-0.6.5.tar.bz2
# Change to the source code subdirectory.
cd xf86-input-fujitouch-0.6.5
# Back up the source code file that we need to edit.
cp fujitsu.c fujitsu.c.original
# Patch the source code to allow the driver to work in Hardy.
sed '
s:xf86AlwaysCore(local, TRUE);:/*xf86AlwaysCore(local, TRUE);*/:
' fujitsu.c.original >fujitsu.c
# Compile the source code and install the driver.
./configure --prefix=/usr && make && sudo make install
# Return to the directory where we started.
cd -
exit 0
Now type the following into the Terminal:
Hit enter, enter your password, and watch the script do its work.
After executing the script, you'll need to modify your xorg.conf file manually. First, backup your xorg.conf file:
Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
Next, open your xorg.conf file for editing:
Code:
sudo gedit /etc/X11/xorg.conf
Add the following to the xorg.conf file somewhere near the other "InputDevice" entries:
Code:
Section "InputDevice"
Identifier "touchscreen"
Driver "fujitsu"
Option "Device" "/dev/ttyS0"
Option "DeviceName" "touchscreen"
Option "MinX" "82"
Option "MinY" "146"
Option "MaxX" "4036"
Option "MaxY" "3999"
Option "SendCoreEvents" "On"
EndSection
(On my P1510D, I have 4020 for MaxX rather than 4036.)
Then find the "ServerLayout" section of the xorg.conf file and add the following to that section:
Code:
InputDevice "touchscreen"
Once you have finished making the changes, click "Save" and close gedit.
Now logout of the X session. When the GDM login screen appears, you should be able to move the cursor using the touchscreen.
I hope this helps!
Bookmarks