[Patch] make hanwang tablet handled by xf86-input-wacom
Xing Wei
weixing at hanwang.com.cn
Sun Sep 12 01:01:43 PDT 2010
From: Xing Wei <weixing at hanwang.com.cn>
This trival patch make Hanwang Art Master III tablet handled by xf86-input-wacom driver in the X system.
Signed-off-by: Xing Wei <weixing at hanwang.com.cn>
---
Hi Peter,I hope the Linux distributions(like fedora, CentOS, ubuntu, Suse...etc) modify the file xx-wacom.conf to
make our device taken over by the wacom_drv.so in their new release version.
So how can I do that? Just contact them directly and make a patch for them?
Thanks.
src/xf86Wacom.c | 1 +
src/xf86WacomDefs.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c
index cb05adb..b45b9ff 100644
--- a/src/xf86Wacom.c
+++ b/src/xf86Wacom.c
@@ -626,6 +626,7 @@ Bool wcmIsWacomDevice (char* fname)
{
case WACOM_VENDOR_ID:
case WALTOP_VENDOR_ID:
+ case HANWANG_VENDOR_ID:
return TRUE;
default:
break;
diff --git a/src/xf86WacomDefs.h b/src/xf86WacomDefs.h
index dcd21fc..e6a9a8d 100644
--- a/src/xf86WacomDefs.h
+++ b/src/xf86WacomDefs.h
@@ -31,6 +31,7 @@
#define WACOM_VENDOR_ID 0x056a
#define WALTOP_VENDOR_ID 0x172F
#define NTRIG_VENDOR_ID 0x1b96
+#define HANWANG_VENDOR_ID 0x0b57
#define DEFAULT_SUPPRESS 2 /* default suppress */
#define MAX_SUPPRESS 100 /* max value of suppress */
More information about the xorg-devel
mailing list