From 81e24a22210f6531f24d3adc04a5dad920208c4e Mon Sep 17 00:00:00 2001 From: Wang Quanxian Date: Thu, 1 Nov 2012 11:48:30 +0800 Subject: [PATCH] Add penmount touchscreen configuration file 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 --- packaging/10-kbd.conf | 5 ----- packaging/10-mouse.conf | 5 ----- packaging/95-input-penmount-tslib.conf | 9 +++++++++ packaging/99-calibration.conf | 6 ++++++ packaging/xorg-x11-server.spec | 6 ++++-- 5 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 packaging/10-kbd.conf delete mode 100644 packaging/10-mouse.conf create mode 100644 packaging/95-input-penmount-tslib.conf create mode 100644 packaging/99-calibration.conf diff --git a/packaging/10-kbd.conf b/packaging/10-kbd.conf deleted file mode 100644 index fee5fc8..0000000 --- a/packaging/10-kbd.conf +++ /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 index 39183ea..0000000 --- a/packaging/10-mouse.conf +++ /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 index 0000000..20f1fc4 --- /dev/null +++ b/packaging/95-input-penmount-tslib.conf @@ -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 index 0000000..9bc36f4 --- /dev/null +++ b/packaging/99-calibration.conf @@ -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 diff --git a/packaging/xorg-x11-server.spec b/packaging/xorg-x11-server.spec index f2399a5..2588abf 100644 --- a/packaging/xorg-x11-server.spec +++ b/packaging/xorg-x11-server.spec @@ -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/ -- 2.7.4