On Sun, Nov 28, 2010 at 7:43 AM, Alexia Death <[email protected]> wrote: > Hi again. > > Another day, another patch ;) Most of the fancy bits are in the last > one. It lets the user define a name for the tool and define if its > created either as stylus, eraser(there are no tools that specifically > have just eraser, but there may be people with pens that have a broken > stylus end or something ;) ) or both. Known problem is that the name > array isn't freed, because I was too stupid to figure out where/how > its supposed to be done. > > The line I currently have in my 50-wacom.conf is: > Option "ToolSerials" "113246231,both,Airbrush;85983311,stylus,Artpen" > Resulting in following devices: > Wacom Intuos3 6x8 eraser ERASER > Wacom Intuos3 6x8 cursor CURSOR > Wacom Intuos3 6x8 pad PAD > Airbrush stylus STYLUS > Airbrush eraser ERASER > Artpen stylus STYLUS > Wacom Intuos3 6x8 stylus STYLUS > > > The second patch had a little bug fixed. the first patch is the same > as posted earlier and just contains the serial query fix. > > Any comments welcome. > > -- > --Alexia > > P.S an option to override the terribly long default basename would be > really really neat :) Id even bring the code for it if there was no > opposition... >
If I had a tablet with multiple tools, I'd think the general concept is very important to me as well. I'd also want it to work without config file magic if possible (GUI would be OK). So I'm wondering if we could do something like monitor serial #'s coming in for protocol 5 devices and when we see new ones we could hotplug at that time. There may be a slight delay caused by this and so your solution would probably be the complement to pre-hotplug when you know your serial #'s. If we do that then it kinda leads the way for what tool names should be. We can convert BTN_TOOL_AIRBRUSH/ARTPEN/etc that came with serial # to create string to insert: Wacom Intuos3 6x8 stylus STYLUS <-- pre-hotplugged when tablet detected Wacom Intuos3 6x8 airbrush stylus STYLUS <-- hotplugged only when tool seen. Wacom Intuos3 6x8 artpen stylus STYLUS <-- hotplugged only when tool send. I can provide some rough psuedo-code if your interested in pursuing this option. There is some issues if you have 2 stylus that map to same BTN_TOOL_* but probably your usecase is most common? As for the long names, they are a little bit of pain but my hope is we never really use them directly. I mean no config files needed; no xinput or xsetwacom needed; just some GUI's that show device names in drop down list. Chris ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
