2009-03-17 23:54:45

by Bastien Nocera

[permalink] [raw]
Subject: [PATCH] Wacom Bluetooth mode-2 activation

Heya,

Patch is necessary to make the Wacom Bluetooth driver I posted to
linux-input work as expected. I've tested this successfully with my
tablet[1].

Cheers

[1]: For Marcel, if you want a funky new device, look for CTE-630BT:
http://www.wacom-europe.com/index2.asp?pid=163&lang=en
http://www.wacom-shop.net/cgi-bin/wacom.storefront/49c0379700eeee24273f4ddcef2606ba/Product/View/CTE&2D630BT3


Attachments:
0001-Add-Mode-2-activation-for-the-Wacom-BT-tablet.patch (1.15 kB)

2009-03-23 14:09:10

by Bastien Nocera

[permalink] [raw]
Subject: Re: [PATCH] Wacom Bluetooth mode-2 activation

On Sat, 2009-03-14 at 07:09 +0100, Marcel Holtmann wrote:
> Hi Bastien,
>
> > Patch is necessary to make the Wacom Bluetooth driver I posted to
> > linux-input work as expected. I've tested this successfully with my
> > tablet[1].
>
> this maybe sound like a nit-pick, but please add an extra empty line
> between the if-statement and the ioctl.
>
> + write(sk, buf, sizeof(buf));
> + }
> err = ioctl_connadd(req);
>
> The original code had one and so should have the new one with this extra
> quirk.

OK.

> Also can we please check at least the return value of write().
>
> + write(sk, buf, sizeof(buf));
>
> Check the return value and at minimum have an error message printed.

The writes actually fail, from what I've seen, but it works... I'll try
to get some details about what fails.

2009-03-14 06:09:48

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] Wacom Bluetooth mode-2 activation

Hi Bastien,

> Patch is necessary to make the Wacom Bluetooth driver I posted to
> linux-input work as expected. I've tested this successfully with my
> tablet[1].

this maybe sound like a nit-pick, but please add an extra empty line
between the if-statement and the ioctl.

+ write(sk, buf, sizeof(buf));
+ }
err = ioctl_connadd(req);

The original code had one and so should have the new one with this extra
quirk.

Also can we please check at least the return value of write().

+ write(sk, buf, sizeof(buf));

Check the return value and at minimum have an error message printed.

Regards

Marcel