From 7e39948ffb8a7fecfad5a5cc6ce27cd6a7e89f75 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 20 Jan 2014 11:15:03 +1000 Subject: [PATCH] Match N-Trig DuoSense (#1031343) --- ...Trig-DuoSense-to-our-matched-devices.patch | 47 +++++++++++++++++++ xorg-x11-drv-wacom.spec | 8 +++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 0001-conf-add-N-Trig-DuoSense-to-our-matched-devices.patch 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 +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 +--- + 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 @@ + + + +- ++ + + wacom + +-- +1.8.4.2 + diff --git a/xorg-x11-drv-wacom.spec b/xorg-x11-drv-wacom.spec index bd56535..e6516da 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: 9%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 10%{?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@.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 0.23.0-10 +- Match N-Trig DuoSense (#1031343) + * Fri Jan 17 2014 Peter Hutterer 0.23.0-9 - Let systemd restart inputattach when it exits (i.e. after suspend) (#1046912)