Le jeudi 29 décembre 2011 à 17:00 +0000, Ping Cheng a écrit : 

> Hi Mike,
> 
>  
> 
> Yes, I am interested to help. And I am grateful that you have and are
> interested in supporting linuxwacom project. You are the people that I
> am still working on the project ;).


Nice.
I already done this kind of action with V4L for a DVB-T. Great
experience.
Diff atteched in files or at the end of threads.


> 
>  
> 
> Please post your changes to linuxwacom-devel@lists.sourceforge.net and
> cc me (pingli...@gmail.com). We’ll move forward from there.
> 

Ok, change are in ASUS_diff.patch (I use Patcher for diff, I'm too noob
for something else). What's work? double clic on pen touch button1,
nothing else.
Driver declare device as stylus but report this is not a stylus device.
evdev says this is a touch pad:
>> [  8049.553] (II) XINPUT: Adding extended input device "ASUSTek
Computer, Inc. Eee Note Digitizer" (type: TOUCHPAD)

I tried many xorg config type (stylus, pen, pad, touch) and only "touch"
was accepted:
>> [  1853.426] (EE) ASUSTek Computer, Inc. Eee Note Digitizer: Invalid
type 'stylus' for this device.

All my xorg.con.d are made like this:
Section "InputClass"
Identifier "Wacom class"
MatchProduct "ASUSTek|Digitizer"
MatchDevicePath "/dev/input/event*"
Driver "wacom"
#Section "InputDevice" 
        Option "Type"   "stylus"
# Option "Type"   "touch"
# Option "Type"   "pad"
# Option "Type"   "pen"
# Option "Type"   "mouse"
etc...

for info: lsusb reports:
Bus 002 Device 012: ID 0b05:179f ASUSTek Computer, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        16
  idVendor           0x0b05 ASUSTek Computer, Inc.
  idProduct          0x179f 
  bcdDevice            1.29
  iManufacturer           1 ASUSTek Computer, Inc.
  iProduct                2 Eee Note Digitizer
  iSerial                 3 1
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 pen report data
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              4 pen report data
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     201
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               4
Device Status:     0x0001
  Self Powered


> 
> 
> I do have a question for you here though. What problem related to
> “have to change Graphire4 associated tablet model to Intuos4 to get
> mine work”? We’d love to make the driver work better, you know ;).
> 

I had to remember first (more than one year ago) and test again with
different tablet mode. Finally issue was the button. Graphire4 model
doesn't recognize secondary button. Intuos3/4 get it but think it's the
"enter" key command.
Didn't get success,anyway, to configure it as real secondary button (2
and 3 recognize as the same button).

>  
> 
> Best regards,
> 
>  
> 
> Ping
> 

Hope you get what you need.
The problem is that driver (evdev,wacom) blocks on TOUCHPAD reported
status.

Best regards.

Mike.


>  
> 
> From: Mike Rolland [mailto:none...@gmail.com] 
> Sent: Thursday, December 29, 2011 1:05 AM
> To: Ping Cheng
> Subject: linuxwacom project - asustek eeenote debug help
> 
> 
>  
> 
> Hi,
> I've recently acquire an eeenote EA800 tablet, I'm no a coder or other
> linux hacker but I'm an advanced user who can understand how it's
> works.
> I'd previously (long time ago) change some lines in xf86WacomDefs.h,
> xf86Wacom.c, wcmUSB.c to get my WALTOP tablet works, project has now
> add all WALTOP tablets, even if I have to change Graphire4 associated
> tablet model to Intuos4 to get mine work.
> I was wondering if you, or other project members, were interested to
> help me to add eeenote digitizer to the correct tablet model.
> I have already add some line in xf86WacomDefs.h, xf86Wacom.c and
> modify wcmUSB.c to make it recognize as usbTabletPC (like LENOVO one),
> tablet is now recognize by xf86-input-wacom as "stylus", but driver
> says this is not a stylus one.
> 
> I can help to debug by patching or changing all the necessary in libs.
> 
> Thanks to read me, and I hope you will be interested to help.
> 
> Mike ROLAND
> (Reunion Island) 
> 
> 

EEENOTE DIFF:
Index: src/xf86WacomDefs.h
===================================================================
--- src/xf86WacomDefs.h
+++ src/xf86WacomDefs.h 2011-12-30 12:43:22.773258878 +0400
@@ -34,6 +34,7 @@
#define NTRIG_VENDOR_ID 0x1b96
#define HANWANG_VENDOR_ID 0x0b57
#define LENOVO_VENDOR_ID 0x17ef
+#define ASUSTEK_VENDOR_ID 0x0b05

#define DEFAULT_SUPPRESS 2      /* default suppress */
#define MAX_SUPPRESS 100        /* max value of suppress */
Index: src/xf86Wacom.c
===================================================================
--- src/xf86Wacom.c
+++ src/xf86Wacom.c 2011-12-30 12:31:02.932275049 +0400
@@ -494,6 +494,7 @@
case WALTOP_VENDOR_ID:
case HANWANG_VENDOR_ID:
case LENOVO_VENDOR_ID:
+ case ASUSTEK_VENDOR_ID:
return TRUE;
default:
break;
Index: src/wcmUSB.c
===================================================================
--- src/wcmUSB.c
+++ src/wcmUSB.c 2011-12-30 12:31:04.219275021 +0400
@@ -308,10 +308,12 @@
{ WALTOP_VENDOR_ID, 0x503, 200000, 200000, &usbIntuos4   },

/* N-Trig devices */
- { NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC    },
+ { NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC     },

/* Add in Lenovo W700 Palmrest digitizer */
- { LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC   } /* Pen-only
*/
+ { LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC     }, /*
Pen-only */
+ /* ASUSTek EeeNote digitizer (experimental) */
+ { ASUSTEK_VENDOR_ID, 0x179f, 2540, 2540, &usbTabletPC     } /*
Pen-only */
};

static Bool usbWcmInit(InputInfoPtr pInfo, char* id, float *version)

WALTOP DIFF:
Index: src/wcmUSB.c
===================================================================
--- src/wcmUSB.c
+++ src/wcmUSB.c 2011-12-30 13:41:25.579182751 +0400
@@ -284,7 +284,10 @@
{ WALTOP_VENDOR_ID, 0x27,  80000,  80000, &usbGraphire3  },
{ WALTOP_VENDOR_ID, 0x28,  80000,  80000, &usbGraphire3  },
{ WALTOP_VENDOR_ID, 0x30,  80000,  80000, &usbGraphire4  },
- { WALTOP_VENDOR_ID, 0x31,  80000,  80000, &usbGraphire4  },
+ /* WALTOP original strings */  
+ /*{ WALTOP_VENDOR_ID, 0x31,  80000,  80000, &usbGraphire4  }, */
+ /* WALTOP exprimental strings (medio 85837) */
+ { WALTOP_VENDOR_ID, 0x31, 200000, 200000, &usbIntuos4  },
{ WALTOP_VENDOR_ID, 0x32, 100000, 100000, &usbBambooFun  },
{ WALTOP_VENDOR_ID, 0x33, 100000, 100000, &usbBambooFun  },
{ WALTOP_VENDOR_ID, 0x34,  80000,  80000, &usbBamboo1    },
@@ -308,10 +311,12 @@
{ WALTOP_VENDOR_ID, 0x503, 200000, 200000, &usbIntuos4   },

/* N-Trig devices */
- { NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC    },
+ { NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC     },

/* Add in Lenovo W700 Palmrest digitizer */
- { LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC   } /* Pen-only
*/
+ { LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC     }, /*
Pen-only */
+ /* ASUSTek EeeNote digitizer (experimental) */
+ { ASUSTEK_VENDOR_ID, 0x179f, 100000, 100000, &usbTabletPC     } /*
Pen-only */
};

static Bool usbWcmInit(InputInfoPtr pInfo, char* id, float *version)


Index: src/xf86WacomDefs.h
===================================================================
--- src/xf86WacomDefs.h
+++ src/xf86WacomDefs.h	2011-12-30 12:43:22.773258878 +0400
@@ -34,6 +34,7 @@
 #define NTRIG_VENDOR_ID 0x1b96
 #define HANWANG_VENDOR_ID 0x0b57
 #define LENOVO_VENDOR_ID 0x17ef
+#define ASUSTEK_VENDOR_ID 0x0b05
 
 #define DEFAULT_SUPPRESS 2      /* default suppress */
 #define MAX_SUPPRESS 100        /* max value of suppress */
Index: src/xf86Wacom.c
===================================================================
--- src/xf86Wacom.c
+++ src/xf86Wacom.c	2011-12-30 12:31:02.932275049 +0400
@@ -494,6 +494,7 @@
 		case WALTOP_VENDOR_ID:
 		case HANWANG_VENDOR_ID:
 		case LENOVO_VENDOR_ID:
+		case ASUSTEK_VENDOR_ID:
 			return TRUE;
 		default:
 			break;
Index: src/wcmUSB.c
===================================================================
--- src/wcmUSB.c
+++ src/wcmUSB.c	2011-12-30 12:31:04.219275021 +0400
@@ -308,10 +308,12 @@
 	{ WALTOP_VENDOR_ID, 0x503, 200000, 200000, &usbIntuos4   },
 
 	/* N-Trig devices */
-	{ NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC    },
+	{ NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC     },
 
 	/* Add in Lenovo W700 Palmrest digitizer */
-	{ LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC   } /* Pen-only */
+	{ LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC     }, /* Pen-only */
+	/* ASUSTek EeeNote digitizer (experimental) */
+	{ ASUSTEK_VENDOR_ID, 0x179f, 2540, 2540, &usbTabletPC     } /* Pen-only */
 };
 
 static Bool usbWcmInit(InputInfoPtr pInfo, char* id, float *version)
Index: src/wcmUSB.c
===================================================================
--- src/wcmUSB.c
+++ src/wcmUSB.c	2011-12-30 13:41:25.579182751 +0400
@@ -284,7 +284,10 @@
 	{ WALTOP_VENDOR_ID, 0x27,  80000,  80000, &usbGraphire3  },
 	{ WALTOP_VENDOR_ID, 0x28,  80000,  80000, &usbGraphire3  },
 	{ WALTOP_VENDOR_ID, 0x30,  80000,  80000, &usbGraphire4  },
-	{ WALTOP_VENDOR_ID, 0x31,  80000,  80000, &usbGraphire4  },
+	/* WALTOP original strings */  
+	/*{ WALTOP_VENDOR_ID, 0x31,  80000,  80000, &usbGraphire4  }, */
+	/* WALTOP exprimental strings (medio 85837) */
+	{ WALTOP_VENDOR_ID, 0x31, 200000, 200000, &usbIntuos4  },
 	{ WALTOP_VENDOR_ID, 0x32, 100000, 100000, &usbBambooFun  },
 	{ WALTOP_VENDOR_ID, 0x33, 100000, 100000, &usbBambooFun  },
 	{ WALTOP_VENDOR_ID, 0x34,  80000,  80000, &usbBamboo1    },
@@ -308,10 +311,12 @@
 	{ WALTOP_VENDOR_ID, 0x503, 200000, 200000, &usbIntuos4   },
 
 	/* N-Trig devices */
-	{ NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC    },
+	{ NTRIG_VENDOR_ID,  0x01, 44173, 36772, &usbTabletPC     },
 
 	/* Add in Lenovo W700 Palmrest digitizer */
-	{ LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC   } /* Pen-only */
+	{ LENOVO_VENDOR_ID, 0x6004, 2540, 2540, &usbTabletPC     }, /* Pen-only */
+	/* ASUSTek EeeNote digitizer (experimental) */
+	{ ASUSTEK_VENDOR_ID, 0x179f, 100000, 100000, &usbTabletPC     } /* Pen-only */
 };
 
 static Bool usbWcmInit(InputInfoPtr pInfo, char* id, float *version)
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to