Re: [Linuxwacom-devel] Supporting Wacom pen tablet model CTL-471

2013-09-10 Thread Ping Cheng
On Tuesday, September 10, 2013, Arjuna Rao Chavala wrote:

> Ping,
>
>
> 2013/8/15 Ping Cheng  'pingli...@gmail.com');>>
>
>> --cut--
>>
>> It is nice to know everything works alright now. Thank you Arjuna for
>> your kindly offer. There are two models in this series. I will patch them
>> together for upstream.
>>
>> Enjoy your Bamboo One!
>>
>>
> I saw some updates being pushed upstream  on the list but I  am not sure
> whether CTL-471 is included in these.
>
> Can you clarify?
>

Yes, the patch that supports your tablet has been merged to Linus tree.

Cheers,

Ping
--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127&iu=/4140/ostg.clktrk___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


Re: [Linuxwacom-devel] Supporting Wacom pen tablet model CTL-471

2013-09-10 Thread Arjuna Rao Chavala
Ping,


2013/8/15 Ping Cheng 

> --cut--
>
> It is nice to know everything works alright now. Thank you Arjuna for
> your kindly offer. There are two models in this series. I will patch them
> together for upstream.
>
> Enjoy your Bamboo One!
>
>
I saw some updates being pushed upstream  on the list but I  am not sure
whether CTL-471 is included in these.

Can you clarify?

Thanks
Arjuna
--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127&iu=/4140/ostg.clktrk___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


Re: [Linuxwacom-devel] Supporting Wacom pen tablet model CTL-471

2013-08-15 Thread Ping Cheng
On Wed, Aug 14, 2013 at 10:27 PM, Arjuna Rao Chavala
wrote:

> Hi Chris and Ping,
>
> Thanks for your quick replies
>
>
> 2013/8/15 Ping Cheng 
>
>> Hi Arjuna,
>>
>> Please see my comments inline.
>>
>> On Wed, Aug 14, 2013 at 10:05 AM, Arjuna Rao Chavala <
>> arjunar...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I recently purchased CTL-471/K Wacom Pen Tablet (Bamboo One) (Sl.No
>>> 3CFP002700). The active area size is 152*94 mm (6*3.7in) and the tablet has
>>> stylus with rocker switch. The device is identified as with lsusb
>>> Bus 003 Device 003: ID 056a:0300 Wacom Co ltd.
>>>
>>>
>>> I tried to set it up on my Ubuntu 12.04 LTS system with
>>> 3.2.0-51-generic-pae Kernel and X.Org X Server 1.11.3. It did not work.
>>>
>>
>> 0x0300 is a new device that linuxwaocm does not support yet. From your
>> description below, I think the root cause is in your patched
>> xf86-input-wacom.
>>
>>
>>> I updated the wacom kernel  from my Ubuntu sources and updated it as
>>> shown below.
>>> { USB_DEVICE_WACOM(0xDD) },
>>> { USB_DEVICE_WACOM(0x0300) },/* CTL-471/K/
>>> { USB_DEVICE_WACOM(0xDE) },
>>>
>>> static const struct wacom_features wacom_features_0xDD =
>>> { "Wacom Bamboo Connect", WACOM_PKGLEN_BBPEN, 14720,  9200,
>>> 1023,
>>>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>>> /* CTL-471/K support*/
>>> static const struct wacom_features wacom_features_0x0300 =
>>> { "Wacom Bamboo One", WACOM_PKGLEN_BBPEN, 14720,  9200, 1023,
>>>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>>> static const struct wacom_features wacom_features_0xDE =
>>> { "Wacom Bamboo 16FG 4x5", WACOM_PKGLEN_BBPEN,14720,  9200,
>>> 1023,
>>>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>>>
>>>
>>>  and  
>>> xf86-input-wacom
>>>
>>>
>>
>> Where did you get the xf86-input-wacom package? From linuxwaocm.sf.net?
>>
>>
>>>  along with  patch at
>>> http://forums.linuxmint.com/viewtopic.php?f=42&t=110408#p652097 The
>>> diff file is enclosed.
>>>
>>
>> Did you test the patched xf86-input-wacom without adding Bamboo One to
>> xf86-input-wacom?
>>
>>
>>>  I Installed the new kernel and new xf86-input-wacom, but found the
>>> system  crashing when tablet is connected.
>>>
>>
>> Did you try the latest xf86-input-wacom, version 0.22.1, whichout adding
>> 0x0300? Did that work?
>>
>>
>>> Am I missing anything?
>>>
>>
>> Not sure before we figure it out :-).
>>
>
> I tried with  rebuilt 3.2.0-51-generic-pae Kernel with changes as given in
> my earlier email and with the standard  xf86-input-wacom
> (1:0.14.0-0ubuntu2.1) from Ubuntu repository.
> I am happy to report The pen tablet is working in general and also with My
> Paint sw. It is also showing up wacom tablet settings.
>
> Thanks for your help.
>
> Let me know if there is anything I can do to help push the changes to
> upstream.
>

It is nice to know everything works alright now. Thank you Arjuna for your
kindly offer. There are two models in this series. I will patch them
together for upstream.

Enjoy your Bamboo One!

Ping
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


Re: [Linuxwacom-devel] Supporting Wacom pen tablet model CTL-471

2013-08-14 Thread Arjuna Rao Chavala
Hi Chris and Ping,

Thanks for your quick replies


2013/8/15 Ping Cheng 

> Hi Arjuna,
>
> Please see my comments inline.
>
> On Wed, Aug 14, 2013 at 10:05 AM, Arjuna Rao Chavala  > wrote:
>
>> Hi,
>>
>> I recently purchased CTL-471/K Wacom Pen Tablet (Bamboo One) (Sl.No
>> 3CFP002700). The active area size is 152*94 mm (6*3.7in) and the tablet has
>> stylus with rocker switch. The device is identified as with lsusb
>> Bus 003 Device 003: ID 056a:0300 Wacom Co ltd.
>>
>>
>> I tried to set it up on my Ubuntu 12.04 LTS system with
>> 3.2.0-51-generic-pae Kernel and X.Org X Server 1.11.3. It did not work.
>>
>
> 0x0300 is a new device that linuxwaocm does not support yet. From your
> description below, I think the root cause is in your patched
> xf86-input-wacom.
>
>
>> I updated the wacom kernel  from my Ubuntu sources and updated it as
>> shown below.
>> { USB_DEVICE_WACOM(0xDD) },
>> { USB_DEVICE_WACOM(0x0300) },/* CTL-471/K/
>> { USB_DEVICE_WACOM(0xDE) },
>>
>> static const struct wacom_features wacom_features_0xDD =
>> { "Wacom Bamboo Connect", WACOM_PKGLEN_BBPEN, 14720,  9200,
>> 1023,
>>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>> /* CTL-471/K support*/
>> static const struct wacom_features wacom_features_0x0300 =
>> { "Wacom Bamboo One", WACOM_PKGLEN_BBPEN, 14720,  9200, 1023,
>>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>> static const struct wacom_features wacom_features_0xDE =
>> { "Wacom Bamboo 16FG 4x5", WACOM_PKGLEN_BBPEN,14720,  9200,
>> 1023,
>>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>>
>>
>>  and  
>> xf86-input-wacom
>>
>>
>
> Where did you get the xf86-input-wacom package? From linuxwaocm.sf.net?
>
>
>>  along with  patch at
>> http://forums.linuxmint.com/viewtopic.php?f=42&t=110408#p652097 The diff
>> file is enclosed.
>>
>
> Did you test the patched xf86-input-wacom without adding Bamboo One to
> xf86-input-wacom?
>
>
>>  I Installed the new kernel and new xf86-input-wacom, but found the
>> system  crashing when tablet is connected.
>>
>
> Did you try the latest xf86-input-wacom, version 0.22.1, whichout adding
> 0x0300? Did that work?
>
>
>> Am I missing anything?
>>
>
> Not sure before we figure it out :-).
>

I tried with  rebuilt 3.2.0-51-generic-pae Kernel with changes as given in
my earlier email and with the standard  xf86-input-wacom
(1:0.14.0-0ubuntu2.1) from Ubuntu repository.
I am happy to report The pen tablet is working in general and also with My
Paint sw. It is also showing up wacom tablet settings.

Thanks for your help.

Let me know if there is anything I can do to help push the changes to
upstream.

Sincerely
Arjuna
http://arcalter.com
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


Re: [Linuxwacom-devel] Supporting Wacom pen tablet model CTL-471

2013-08-14 Thread Chris Bagwell
On Wed, Aug 14, 2013 at 12:05 PM, Arjuna Rao Chavala
wrote:

> Hi,
>
> I recently purchased CTL-471/K Wacom Pen Tablet (Bamboo One) (Sl.No
> 3CFP002700). The active area size is 152*94 mm (6*3.7in) and the tablet has
> stylus with rocker switch. The device is identified as with lsusb
> Bus 003 Device 003: ID 056a:0300 Wacom Co ltd.
>
>
> I tried to set it up on my Ubuntu 12.04 LTS system with
> 3.2.0-51-generic-pae Kernel and X.Org X Server 1.11.3. It did not work.
>
>
> I updated the wacom kernel  from my Ubuntu sources and updated it as shown
> below.
> { USB_DEVICE_WACOM(0xDD) },
> { USB_DEVICE_WACOM(0x0300) },/* CTL-471/K/
> { USB_DEVICE_WACOM(0xDE) },
>
> static const struct wacom_features wacom_features_0xDD =
> { "Wacom Bamboo Connect", WACOM_PKGLEN_BBPEN, 14720,  9200,
> 1023,
>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
> /* CTL-471/K support*/
> static const struct wacom_features wacom_features_0x0300 =
> { "Wacom Bamboo One", WACOM_PKGLEN_BBPEN, 14720,  9200, 1023,
>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
> static const struct wacom_features wacom_features_0xDE =
> { "Wacom Bamboo 16FG 4x5", WACOM_PKGLEN_BBPEN,14720,  9200,
> 1023,
>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>
>
>
This seems reasonable based on what I see on Wacom's webpage.  I'd guess it
would be close to the Bamboo Connect (0xDD).  From Wacom's web page they
look exactly the same and have same specs and same price.  Not sure whats
different.


 and  
xf86-input-wacom
> along with  patch at
> http://forums.linuxmint.com/viewtopic.php?f=42&t=110408#p652097 The diff
> file is enclosed.
>
> I Installed the new kernel and new xf86-input-wacom, but found the system
> crashing when tablet is connected.
>
> Am I missing anything?
>

There should be no reason to modify the xf86-input-wacom driver.  It should
"just work" as long as kernel driver correctly fills in above values and
advertises them.

Try reverting to unmodified xf86 and see if crashing stops.

At minimum, you need this change from your current patch.  You used a
&usbBamboo1 structure when you should be using &usbBamboo.  The other
things in your xf86-input-wacom can easily be source of crashes.

Chris



> Thanks
> Arjuna
>
>
>
>
> --
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> ___
> Linuxwacom-devel mailing list
> Linuxwacom-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
>
>
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


Re: [Linuxwacom-devel] Supporting Wacom pen tablet model CTL-471

2013-08-14 Thread Ping Cheng
Hi Arjuna,

Please see my comments inline.

On Wed, Aug 14, 2013 at 10:05 AM, Arjuna Rao Chavala
wrote:

> Hi,
>
> I recently purchased CTL-471/K Wacom Pen Tablet (Bamboo One) (Sl.No
> 3CFP002700). The active area size is 152*94 mm (6*3.7in) and the tablet has
> stylus with rocker switch. The device is identified as with lsusb
> Bus 003 Device 003: ID 056a:0300 Wacom Co ltd.
>
>
> I tried to set it up on my Ubuntu 12.04 LTS system with
> 3.2.0-51-generic-pae Kernel and X.Org X Server 1.11.3. It did not work.
>

0x0300 is a new device that linuxwaocm does not support yet. From your
description below, I think the root cause is in your patched
xf86-input-wacom.


> I updated the wacom kernel  from my Ubuntu sources and updated it as shown
> below.
> { USB_DEVICE_WACOM(0xDD) },
> { USB_DEVICE_WACOM(0x0300) },/* CTL-471/K/
> { USB_DEVICE_WACOM(0xDE) },
>
> static const struct wacom_features wacom_features_0xDD =
> { "Wacom Bamboo Connect", WACOM_PKGLEN_BBPEN, 14720,  9200,
> 1023,
>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
> /* CTL-471/K support*/
> static const struct wacom_features wacom_features_0x0300 =
> { "Wacom Bamboo One", WACOM_PKGLEN_BBPEN, 14720,  9200, 1023,
>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
> static const struct wacom_features wacom_features_0xDE =
> { "Wacom Bamboo 16FG 4x5", WACOM_PKGLEN_BBPEN,14720,  9200,
> 1023,
>   31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
>
>
>  and  
> xf86-input-wacom
>
>

Where did you get the xf86-input-wacom package? From linuxwaocm.sf.net?


> along with  patch at
> http://forums.linuxmint.com/viewtopic.php?f=42&t=110408#p652097 The diff
> file is enclosed.
>

Did you test the patched xf86-input-wacom without adding Bamboo One to
xf86-input-wacom?


> I Installed the new kernel and new xf86-input-wacom, but found the system
> crashing when tablet is connected.
>

Did you try the latest xf86-input-wacom, version 0.22.1, whichout adding
0x0300? Did that work?


> Am I missing anything?
>

Not sure before we figure it out :-).

Ping
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


[Linuxwacom-devel] Supporting Wacom pen tablet model CTL-471

2013-08-14 Thread Arjuna Rao Chavala
Hi,

I recently purchased CTL-471/K Wacom Pen Tablet (Bamboo One) (Sl.No
3CFP002700). The active area size is 152*94 mm (6*3.7in) and the tablet has
stylus with rocker switch. The device is identified as with lsusb
Bus 003 Device 003: ID 056a:0300 Wacom Co ltd.


I tried to set it up on my Ubuntu 12.04 LTS system with
3.2.0-51-generic-pae Kernel and X.Org X Server 1.11.3. It did not work.


I updated the wacom kernel  from my Ubuntu sources and updated it as shown
below.
{ USB_DEVICE_WACOM(0xDD) },
{ USB_DEVICE_WACOM(0x0300) },/* CTL-471/K/
{ USB_DEVICE_WACOM(0xDE) },

static const struct wacom_features wacom_features_0xDD =
{ "Wacom Bamboo Connect", WACOM_PKGLEN_BBPEN, 14720,  9200,
1023,
  31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
/* CTL-471/K support*/
static const struct wacom_features wacom_features_0x0300 =
{ "Wacom Bamboo One", WACOM_PKGLEN_BBPEN, 14720,  9200, 1023,
  31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };
static const struct wacom_features wacom_features_0xDE =
{ "Wacom Bamboo 16FG 4x5", WACOM_PKGLEN_BBPEN,14720,  9200,
1023,
  31, BAMBOO_PT, WACOM_INTUOS_RES, WACOM_INTUOS_RES };


 and  
xf86-input-wacom
along with  patch at
http://forums.linuxmint.com/viewtopic.php?f=42&t=110408#p652097 The diff
file is enclosed.

I Installed the new kernel and new xf86-input-wacom, but found the system
crashing when tablet is connected.

Am I missing anything?

Thanks
Arjuna
diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index f1504cf..8235d68 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -248,6 +248,7 @@ static struct
{ WACOM_VENDOR_ID, 0x69,  39842,  39842, &usbBamboo1}, /* Bamboo1 */
{ WACOM_VENDOR_ID, 0x6A, 10, 10, &usbBamboo1}, /* Bamboo1 
4x6 */
{ WACOM_VENDOR_ID, 0x6B, 10, 10, &usbBamboo1}, /* Bamboo1 
5x8 */
+   { WACOM_VENDOR_ID, 0x0300, 10, 10, &usbBamboo1}, /* Bamboo1 
4x6 CTL-471(K)/A */
 
{ WACOM_VENDOR_ID, 0xB0, 20, 20, &usbIntuos3}, /* Intuos3 
4x5 */
{ WACOM_VENDOR_ID, 0xB1, 20, 20, &usbIntuos3}, /* Intuos3 
6x8 */
diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c
index 65c6168..04f6105 100644
--- a/src/wcmValidateDevice.c
+++ b/src/wcmValidateDevice.c
@@ -338,7 +338,6 @@ int wcmDeviceTypeKeys(InputInfoPtr pInfo)
return ret;
 }
 
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 14
 static InputOption*
 input_option_new(InputOption *list, char *key, char *value)
 {
@@ -364,7 +363,6 @@ input_option_free_list(InputOption **opts)
*opts = tmp;
}
 }
-#endif
 
 /**
  * Duplicate xf86 options, replace the "type" option with the given type
diff --git a/test/fake-symbols.c b/test/fake-symbols.c
index 688b238..5500038 100644
--- a/test/fake-symbols.c
+++ b/test/fake-symbols.c
@@ -485,41 +485,6 @@ xf86UnblockSIGIO (int wasset)
 {
 }
 
-/* This is not the same as the X server one, but it'll do for the tests */
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
-typedef struct _InputOption {
-struct _InputOption *next;
-char *key;
-char *value;
-} InputOption;
-
-InputOption*
-input_option_new(InputOption *list, const char *key, const char *value)
-{
-   InputOption *new;
-
-   new = calloc(1, sizeof(InputOption));
-   new->key = strdup(key);
-   new->value = strdup(value);
-   new->next = list;
-   return new;
-}
-
-void
-input_option_free_list(InputOption **opts)
-{
-   InputOption *tmp = *opts;
-   while(*opts)
-   {
-   tmp = (*opts)->next;
-   free((*opts)->key);
-   free((*opts)->value);
-   free((*opts));
-   *opts = tmp;
-   }
-}
-#endif
-
 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16
 _X_EXPORT Bool
 InitTouchClassDeviceStruct(DeviceIntPtr device, unsigned int max_touches,
diff --git a/test/fake-symbols.h b/test/fake-symbols.h
index cbce546..eed5a0e 100644
--- a/test/fake-symbols.h
+++ b/test/fake-symbols.h
@@ -1,13 +1,8 @@
 #include 
 #include 
 
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
-#define OPTTYPE XF86OptionPtr
-#define CONST const
-#else
 #define OPTTYPE pointer
 #define CONST
-#endif
 
 extern int xf86ReadSerial (int fd, void *buf, int count);
 extern int xf86WriteSerial (int fd, const void *buf, int count);
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux