Package: xserver-xorg-input-fpit
Version: 1:1.2.0-1
Severity: important
Tags: patch

I have Fujitsu Stylistic 3400 with following configuration:
/etc/serial.conf
--------------------
/dev/ttyS1 uart 16450 port 0xfd68 irq 5 low_latency baud_base 115200
spd_normal skip_test
--------------------

/etc/X11/xorg.conf
--------------------
Section "InputDevice"
        Identifier      "Touchscreen"
        Driver          "fpit"
        Option          "Device"                "/dev/ttyS1"
        Option          "BaudRate"              "9600"
        Option          "Passive"
        Option          "CorePointer"
        Option          "SendCoreEvents"
        Option          "MaximumXPosition"      "4070"
        Option          "MaximumYPosition"      "4020"
        Option          "MinimumXPosition"      "0"
        Option          "MinimumYPosition"      "0"
EndSection

Section "Device"
        Identifier      "Configured Video Device"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
        Option          "DPMS"
        HorizSync       28-40
        VertRefresh     43-60
        DisplaySize     211 158
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        SubSection "Display"
           Depth   32
           Modes   "800x600"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Touchscreen"
EndSection
------------------------

Using this configuration touch screen works, but only a small part
(upper, left corner, a few square centimeters) screen can be used to
control a position of a pointer. If I point just upper left corner
then pointer shows up there, then if I move towards right and/or down
then pointer moves a few times faster then stylus, so pointer reaches
edge of screen when stylus is just about a few
centimeters from the starting corner.

I tried different settings for options "MaximumXPosition",
"MaximumYPosition",  "MinimumXPosition", "MinimumYPosition" in
xorg.conf but nothing has changed. Active area of screen was the same
regardles of what values were set.

It seems that this is not related only to Styllistic 3400:
http://ubuntuforums.org/archive/index.php/t-763380.html (see first
TomDupont entry from "May 11th, 2008, 01:24 PM" and later discussion).

Looking on above thread on Ubuntu forums, I also modified code of fpit
and got things working fine for me. Here is patch (I wouldn't try to
say that this is actual fix, but it quickly shows where problem is).

diff -u orig-fpit/xserver-xorg-input-fpit-1.2.0/src/xf86Fpit.c
xserver-xorg-input-fpit-1.2.0/src/xf86Fpit.c
--- orig-fpit/xserver-xorg-input-fpit-1.2.0/src/xf86Fpit.c
2009-05-20 18:09:45.000000000 +0200
+++ xserver-xorg-input-fpit-1.2.0/src/xf86Fpit.c        2009-05-20
18:33:31.000000000 +0200
@@ -316,6 +316,9 @@
                        int z = x; x = y; y = z;
                }

+                x = round(x * 800.0 / 4090.0); /* For screen
resolution 800x600 /*
+                y = round(y * 600.0 / 4090.0);
+
                prox = (priv->fpitData[loop] & PROXIMITY_BIT) ? 0 : 1;
                buttons = (priv->fpitData[loop] & BUTTON_BITS);
                device = local->dev;

It seems some conversion between driver and screen cords doesn't work
properly.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages xserver-xorg-input-fpit depends on:
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  xserver-xorg-core      2:1.4.2-10.lenny1 Xorg X server - core server

xserver-xorg-input-fpit recommends no packages.

xserver-xorg-input-fpit suggests no packages.



-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to