[xorg-x11-drv-wacom/f20] Match N-Trig DuoSense (#1031343)

Peter Hutterer whot at fedoraproject.org
Mon Jan 20 01:23:08 UTC 2014


commit 837f5d105d39dbe39b0c7afe9b9398e1a903ed03
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date:   Mon Jan 20 11:15:03 2014 +1000

    Match N-Trig DuoSense (#1031343)

 ...dd-N-Trig-DuoSense-to-our-matched-devices.patch |   47 ++++++++++++++++++++
 xorg-x11-drv-wacom.spec                            |    8 +++-
 2 files changed, 54 insertions(+), 1 deletions(-)
---
diff --git a/0001-conf-add-N-Trig-DuoSense-to-our-matched-devices.patch b/0001-conf-add-N-Trig-DuoSense-to-our-matched-devices.patch
new file mode 100644
index 0000000..fb4743a
--- /dev/null
+++ b/0001-conf-add-N-Trig-DuoSense-to-our-matched-devices.patch
@@ -0,0 +1,47 @@
+From a0df8d1cddccde9368b075d19347632934bfdafc Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Mon, 20 Jan 2014 11:07:37 +1000
+Subject: [PATCH] conf: add N-Trig DuoSense to our matched devices
+
+That device has a pen and an eraser tool, as well as a touch device. Handle it
+with the wacom driver by default, the evdev driver isn't quite up to scratch
+here.
+
+This also fixes a missing match in the .fdi file for the base N-Trig devices -
+just in case.
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ conf/50-wacom.conf | 2 +-
+ conf/wacom.fdi     | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/conf/50-wacom.conf b/conf/50-wacom.conf
+index 567b900..21f75e6 100644
+--- a/conf/50-wacom.conf
++++ b/conf/50-wacom.conf
+@@ -29,7 +29,7 @@ EndSection
+ # N-Trig Duosense Electromagnetic Digitizer
+ Section "InputClass"
+ 	Identifier "Wacom N-Trig class"
+-	MatchProduct "HID 1b96:0001|N-Trig Pen"
++	MatchProduct "HID 1b96:0001|N-Trig Pen|N-trig DuoSense"
+ 	MatchDevicePath "/dev/input/event*"
+ 	Driver "wacom"
+ 	Option "Button2" "3"
+diff --git a/conf/wacom.fdi b/conf/wacom.fdi
+index 70304d2..dd623a4 100644
+--- a/conf/wacom.fdi
++++ b/conf/wacom.fdi
+@@ -15,7 +15,7 @@
+       </match>
+     </match>
+     <!-- N-Trig Duosense Electromagnetic Digitizer -->
+-    <match key="info.product" contains="HID 1b96:0001">
++    <match key="info.product" contains_outof="HID 1b96:0001;N-Trig Pen;N-trig DuoSense">
+       <match key="info.parent" contains="if0">
+        <merge key="input.x11_driver" type="string">wacom</merge>
+       </match>
+-- 
+1.8.4.2
+
diff --git a/xorg-x11-drv-wacom.spec b/xorg-x11-drv-wacom.spec
index 1937ddd..efc27a1 100644
--- a/xorg-x11-drv-wacom.spec
+++ b/xorg-x11-drv-wacom.spec
@@ -9,7 +9,7 @@
 Summary:    Xorg X11 wacom input driver
 Name:       xorg-x11-drv-wacom
 Version:    0.23.0
-Release:    3%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
+Release:    4%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
 URL:        http://www.x.org
 License:    GPLv2+
 Group:      User Interface/X Hardware Support
@@ -24,6 +24,8 @@ Source0: http://prdownloads.sourceforge.net/linuxwacom/xf86-input-wacom-%{versio
 Source3: 70-wacom.rules
 Source4: wacom-inputattach at .service
 
+Patch01: 0001-conf-add-N-Trig-DuoSense-to-our-matched-devices.patch
+
 ExcludeArch: s390 s390x
 
 BuildRequires: xorg-x11-server-devel >= 1.10.99.902
@@ -44,6 +46,7 @@ X.Org X11 wacom input driver for Wacom tablets.
 
 %prep
 %setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
+%patch01 -p1
 
 %build
 autoreconf --force -v --install || exit 1
@@ -103,6 +106,9 @@ X.Org X11 wacom input driver development files.
 %{_bindir}/isdv4-serial-debugger
 
 %changelog
+* Mon Jan 20 2014 Peter Hutterer <peter.hutterer at redhat.com> 0.23.0-4
+- Match N-Trig DuoSense (#1031343)
+
 * Fri Jan 17 2014 Peter Hutterer <peter.hutterer at redhat.com> 0.23.0-3
 - Let systemd restart inputattach when it exits (i.e. after suspend)
   (#1046912)


More information about the scm-commits mailing list