Add penmount touchscreen configuration file 78/2278/1 1.0 accepted/1.0/20121101.212440 submit/1.0/20121101.035421
authorWang Quanxian <quanxian.wang@intel.com>
Thu, 1 Nov 2012 03:48:30 +0000 (11:48 +0800)
committerWang Quanxian <quanxian.wang@intel.com>
Thu, 1 Nov 2012 03:48:30 +0000 (11:48 +0800)
evdev will be the default driver for penmount touchscreen.
calibration conf is based on hard resolution (0, 1000, 0, 1000)

Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>

packaging/10-kbd.conf [deleted file]
packaging/10-mouse.conf [deleted file]
packaging/95-input-penmount-tslib.conf [new file with mode: 0644]
packaging/99-calibration.conf [new file with mode: 0644]
packaging/xorg-x11-server.spec

diff --git a/packaging/10-kbd.conf b/packaging/10-kbd.conf
deleted file mode 100644 (file)
index fee5fc8..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Section "InputClass"
-       Identifier "kbd catchall"
-       MatchIsKeyboard "on"
-       Driver "kbd"
-EndSection
diff --git a/packaging/10-mouse.conf b/packaging/10-mouse.conf
deleted file mode 100644 (file)
index 39183ea..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Section "InputClass"
-       Identifier "mouse catchall"
-       MatchIsPointer "on"
-       Driver "mouse"
-EndSection
diff --git a/packaging/95-input-penmount-tslib.conf b/packaging/95-input-penmount-tslib.conf
new file mode 100644 (file)
index 0000000..20f1fc4
--- /dev/null
@@ -0,0 +1,9 @@
+Section "InputClass"
+       Identifier      "PenMount"
+       MatchProduct "DIALOGUE INC PenMount USB"
+       MatchIsPointer "on"
+       MatchDevicePath "/dev/input/event*"
+       Driver "evdev"
+       Option "SwapAxes" "on"
+EndSection
+
diff --git a/packaging/99-calibration.conf b/packaging/99-calibration.conf
new file mode 100644 (file)
index 0000000..9bc36f4
--- /dev/null
@@ -0,0 +1,6 @@
+Section "InputClass"
+       Identifier      "calibration"
+       MatchProduct    "DIALOGUE INC PenMount USB"
+        Option          "Resolution"  "1000 0 1000 0"
+        Option "Calibration"   "36 996 20 976"
+EndSection
index f2399a5..2588abf 100644 (file)
@@ -7,8 +7,8 @@ Group:      System/X11
 License:    MIT
 URL:        http://www.x.org
 Source0:    %{name}-%{version}.tar.gz
-Source100:  10-kbd.conf
-Source101:  10-mouse.conf
+Source100:  95-input-penmount-tslib.conf  
+Source101:  99-calibration.conf
 Source102:  64-xorg-xkb.rules
 Source103:  50-kbd.conf
 Source104:  51-mouse.conf
@@ -169,6 +169,8 @@ make %{?jobs:-j%jobs}
 %install
 
 mkdir -p %{buildroot}/etc/X11/xorg.conf.d/
+install -m 755 -D %{SOURCE100} %{buildroot}/etc/X11/xorg.conf.d/
+install -m 755 -D %{SOURCE101} %{buildroot}/etc/X11/xorg.conf.d/
 install -m 755 -D %{SOURCE103} %{buildroot}/etc/X11/xorg.conf.d/
 install -m 755 -D %{SOURCE104} %{buildroot}/etc/X11/xorg.conf.d/