Hi all,

I recently got hold of a second-hand DTI-520 and I'd like to get it working 
under Linux.  It seems it is not yet supported, so I am trying to add support 
for it.

After adding in USB IDs to the kernel driver and the X11 module it starts 
returning data when I move the stylus around.  The X-coordinates seem fine (0 
to 3208) but for some reason the Y coordinate seems to wrap around as I move 
down the screen.  I'm not sure what's causing this - here is some sample 
output from 'xinput test' as I move the stylus about a third of the way down 
the screen:

motion a[0]=770 a[1]=63458 a[2]=0 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=770 a[1]=63874 a[2]=0 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=770 a[1]=64322 a[2]=0 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=770 a[1]=64770 a[2]=0 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=770 a[1]=48834 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=770 a[1]=32898 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=770 a[1]=16931 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=769 a[1]=932 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=769 a[1]=1351 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=769 a[1]=1801 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=769 a[1]=2283 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=769 a[1]=2829 a[2]=4 a[3]=0 a[4]=0 a[5]=-900
motion a[0]=769 a[1]=3406 a[2]=4 a[3]=0 a[4]=0 a[5]=-900

Some of the code I added to the kernel module is:

static const struct wacom_features wacom_features_0x3A =
   { "Wacom DTI520UB/L",     WACOM_PKGLEN_GRAPHIRE,   3250, 65600,  2047,
     0, PL, WACOM_PL_RES, WACOM_PL_RES };

This gives me these messages in the Xorg output:

[ 15979.601] [dix] Unknown event type 35. No filter
[ 15979.601] [dix] Unknown event type 35. No filter
[ 15983.121] [dix] Unknown event type 35. No filter
[ 15983.121] [dix] Unknown event type 35. No filter

Two messages each time I touch and remove the stylus from the surface. 
Changing the "PL" type in the above code to "PTU" returns a button press and 
button release event instead, as the stylus touches and leaves the surface. 
I'm guessing this means the PTU type is probably more correct than PL.  I also 
seem to get pressure values coming in with the PTU type as well (in xinput's 
a[2] value), although they seem a bit weird (the values are all < 256 but with 
spatterings of 2048 among them, except it stays at 2048 if I press the stylus 
fairly hard.)

Unfortunately I'm just poking around in the dark here, so I'm not really sure 
where to go next.  Does anyone know how I can proceed with figuring out how to 
get this device working properly?

Many thanks,
Adam.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to