On Sunday 02 July 2006 12:40, Jason alavaliant wrote: > The problem is that I had to dig into the wacom_drv-code as I had to go on > a > > bug-hunt due to some parameter caching issues, and as I did that I > > discovered > > just how many dependencies the X-driver has on the actual HW it has > > connected. In short; If the X-driver doesn't know exactly which HW is > > connected it has only some, not all, of the tablet-specific > > fixes/features/.. > > are made available. > > > > As my kernel module is a 'generic' tablet all but the most simple tablets > > will > > work with only a limited support of the features, and I don't consider > > this > > good enough. > > I don't know much about the internals of the driver but wouldn't you just > have your 'generic' tablet present itself to the main driver as an advanced > model that has all those features to get them turned on ever if they won't > be used?
That was what I thought might work at first, but it seem that there's input filtering in wacom_drv that is based on the connected hardware. And there are three different filter methods depending on which HW that is connected. I can only assume that the filtering is desierable for the specific HW so choosing one (or none) feels like the wrong way to go... There might also be other properties that are mutually exclusive, but I have just scratched the surface of the code so I can't tell at the moment. > This was not fun to discover as I just finished the resize-thing and it > > worked > > pretty well. I really thought this could be something that could work > > when I > > started it but I guess it was a bit optimistic. > > I still need something that sits between the HW and X just like this > > module so > > this doesn't mean I'll throw in the towel completely, I just need to > > figure > > out a way to do this in a better way (I've got a few ideas that might get > > me > > there..). > > Well I hope you manage to work something out. There are still a lot of us > out there (I have 200 artists I'm supporting) that would kill to get > something like your old module up and fully running. (and personally I > think you got closer with the old one than you think, I was getting close > to trying it out with the artists at my work without Intuos 3s.) I.. Ehm... One of the ideas I had kept buggering me so I had to do something about it... :) The result was actually not that far from the original module, but this time the X-driver won't be able to see that there's something between the HW. If you use wacdump on the device you won't see a difference from eventX either. You still need to patch the X-driver as the latest version doesn't like changes in the width and height of the tablet. And I think you'd like to have the driver reopen the device once when it gets a read-error (this is needed when connecting a different tablet). Reconnecting the same tablet model is seamless. Only one tablet can be used at a time with the driver, I know a way to support more than one if someone's interested. Just tell me... But it keeps all connected tablets in an internal list and when you unplug the first tablet, the next one should be opened automatically. This kernel module is exclusively targeted at tablets compatible with wacom_drv, so it will look at the tablet name and skip any that is not known. The list is taken from the latest wacom kernel module (0.7.4-3) so it should be fairly up-to-date at the moment with wacom tablets. Shout if there's any other make/models that works with wacom_drv and you want included, please. Most of what I had to do for the old module was reused in one way or another so it was not a complete waste.. The patch from the latest version is used as-is in fact ;) The new kernel module (wacomproxy) is available as usual at: http://195.38.3.2/linuxprojs/ Well, they say you should always throw away the first attempt ;) 1/3 less code, cleaner event-loop (=less CPU used), better integration with wacom_drv... I think this worked out for the best... Hope you all like this attempt as much as my previous. BR Magnus Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linuxwacom-discuss mailing list Linuxwacom-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss