From d5cce11bd1dd8bff8b90c39e1517fb1f8080b3fa Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Fri, 18 May 2012 19:55:30 +0800 Subject: [PATCH] Initial code release --- 60-cando-mtev.conf | 7 +++++ 60-mxt224-mtev.conf | 7 +++++ 70-sitronix-mtev.conf | 7 +++++ 80-Hanvon-mtev.conf | 7 +++++ 90-ILI-mtev.conf | 8 +++++ 92-exopc-mtev.conf | 8 +++++ packaging/device-config-touch.spec | 60 ++++++++++++++++++++++++++++++++++++++ 7 files changed, 104 insertions(+) create mode 100644 60-cando-mtev.conf create mode 100644 60-mxt224-mtev.conf create mode 100644 70-sitronix-mtev.conf create mode 100644 80-Hanvon-mtev.conf create mode 100644 90-ILI-mtev.conf create mode 100644 92-exopc-mtev.conf create mode 100644 packaging/device-config-touch.spec diff --git a/60-cando-mtev.conf b/60-cando-mtev.conf new file mode 100644 index 0000000..becbdbd --- /dev/null +++ b/60-cando-mtev.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "Cando Multi Touch Panel" + MatchVendor "Cando" + MatchDevicePath "/dev/input/event*" + Driver "mtev" + Option "Ignore" "off" +EndSection diff --git a/60-mxt224-mtev.conf b/60-mxt224-mtev.conf new file mode 100644 index 0000000..2948e54 --- /dev/null +++ b/60-mxt224-mtev.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "Atmel maXTouch mXT224" + MatchProduct "mxt224_touchscreen" + MatchDevicePath "/dev/input/event*" + Driver "mtev" + Option "Ignore" "off" +EndSection diff --git a/70-sitronix-mtev.conf b/70-sitronix-mtev.conf new file mode 100644 index 0000000..147af80 --- /dev/null +++ b/70-sitronix-mtev.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "Sitronix Technology Corp" + MatchVendor "Sitronix" + MatchDevicePath "/dev/input/event*" + Driver "mtev" + Option "Ignore" "off" +EndSection diff --git a/80-Hanvon-mtev.conf b/80-Hanvon-mtev.conf new file mode 100644 index 0000000..a08a287 --- /dev/null +++ b/80-Hanvon-mtev.conf @@ -0,0 +1,7 @@ +Section "InputClass" + Identifier "Hanvon touchscreen" + MatchIsTouchscreen "on" + MatchProduct "Hanvon" + MatchDevicePath "/dev/input/event*" + Driver "mtev" +EndSection diff --git a/90-ILI-mtev.conf b/90-ILI-mtev.conf new file mode 100644 index 0000000..fe5e85a --- /dev/null +++ b/90-ILI-mtev.conf @@ -0,0 +1,8 @@ +Section "InputClass" + Identifier "ILITEK Multi Touch Panel" + MatchVendor "ILITEK" + MatchDevicePath "/dev/input/event*" + Driver "mtev" + Option "Ignore" "off" +EndSection + diff --git a/92-exopc-mtev.conf b/92-exopc-mtev.conf new file mode 100644 index 0000000..2a302b6 --- /dev/null +++ b/92-exopc-mtev.conf @@ -0,0 +1,8 @@ +Section "InputClass" + Identifier "eGalax Touchscreen" + MatchVendor "eGalax" + MatchDevicePath "/dev/input/event*" + Driver "mtev" + Option "SwapAxes" "True" + Option "InvertX" "True" +EndSection diff --git a/packaging/device-config-touch.spec b/packaging/device-config-touch.spec new file mode 100644 index 0000000..4628479 --- /dev/null +++ b/packaging/device-config-touch.spec @@ -0,0 +1,60 @@ +Name: device-config-touch +Version: 1 +Release: 1 +Summary: Device specific configurations for Touch +Group: System/Hardware +License: GPLv2+ +Source0: %{name}-%{version}.tar.bz2 +# >> gbp-patch-tags # auto-added by gbp +# << gbp-patch-tags # auto-added by gbp +BuildArch: noarch + +%description +Device specific configurations for Touch. + +%define touch_package(n:) \ +%package %1\ +Summary: Touch configuration files for %1\ +Group: System/Hardware\ +%description %1\ +Touch configuration files for %1.\ +%{nil} + + +%prep +%setup -q +# >> gbp-apply-patches # auto-added by gbp +# << gbp-apply-patches # auto-added by gbp +%build + +%install + +mkdir -p %{buildroot}/opt/etc/X11/xorg.conf.d +for f in `ls -1`; do + install -m 0644 $f %{buildroot}/opt/etc/X11/xorg.conf.d/ +done + +%touch_package cando +%files cando +/opt/etc/X11/xorg.conf.d/60-cando-mtev.conf + +%touch_package mxt224 +%files mxt224 +/opt/etc/X11/xorg.conf.d/60-mxt224-mtev.conf + +%touch_package sitronix +%files sitronix +/opt/etc/X11/xorg.conf.d/70-sitronix-mtev.conf + +%touch_package Hanvon +%files Hanvon +/opt/etc/X11/xorg.conf.d/80-Hanvon-mtev.conf + +%touch_package ILI +%files ILI +/opt/etc/X11/xorg.conf.d/90-ILI-mtev.conf + +%touch_package eGalax +%files eGalax +/opt/etc/X11/xorg.conf.d/92-exopc-mtev.conf + -- 2.7.4