Re: [DIGImend-users] Patching the hid-uclogic driver for UC-Logic tablet TWHA60 v3
Brought to you by:
spb_nick
From: Nikolai K. <sp...@gm...> - 2015-05-31 11:12:14
|
Hi Martin, On 05/29/2015 04:32 AM, Martin Shepherd wrote: > On the digimend tablets web page UC-Logic Tablet TWHA60 v3 is listed as > unsupported. I have this tablet, and I've just managed to get its stylus > working by making a very small change to hid-uclogic.c. With this change, > basic positioning, clicking the tip, and pressure sensitivity all appear to > work correctly (at least in inkscape). > > The report descriptor for interface 0 has a different size in this tablet > than previous versions, so the code that substitutes a fixed descriptor, > based on this size, does nothing. To resolve this, I added an extra if() to > check for the new descriptor size, and substituted a slightly different > fixed descriptor. The only changes needed in the fixed descriptor, were to > the logical maximums for X and Y, which should both be 2047, instead of the > previous values of 39999 and 24999. > > I have placed the diff between the 3.13.0-53-generic (Ubuntu) version of the > hid-uclogic.c file, and the fixed version, in the attached text file. I hope > that this is the correct place to post this. Contributions are welcome anywhere, although DIG...@li... would be a bit more appropriate. We actually have this tablet supported in the development version of our out-of-tree driver: https://github.com/DIGImend/digimend-kernel-drivers/archive/master.zip Here's the GitHub page for it: https://github.com/DIGImend/digimend-kernel-drivers I need to update the website though. Nick |