My problem with the wacom-tools-0.8.2.2 package with my x200 tablet has
been that it doesn't use the same names for stylus, eraser, and touch
devices so neither xsetwacom nor wacomcpl work at all.  As a
consequence, none of the screen rotation scripts work, and I cannot
interactively recalibrate my tablet when it drifts.

The problem is that the hotplug named my tablet inputs as:  'PnP Device
(WACf008)',  'PnP Device (WACf008) touch', and  'PnP Device (WACf008)
eraser'.  I found that out by running xinput, because 'xsetwacom list
dev' and wacomcpl both returned empty lists.

It turns out that I can fix those problems with a script that edits the
hal configuration before the xserver starts.  (If you run the script
after the xserver starts, then the settings won't take effect until you
logout and allow the xserver to restart.)

I write /etc/init.d/wacom and link it as /etc/rc{2,3,4,5}.d/S27wacom, so
it runs after hal and before gdm:

    # find any wacom devices
    for udi in `hal-find-by-property --key input.x11_driver --string wacom`
    do
    type=`hal-get-property --udi $udi --key input.x11_options.Type`
    # rewrite the names that the Xserver will use
    hal-set-property --udi $udi --key info.product --string $type
    case $type in
    stylus|eraser)
    # map stylus button 2 to mouse button 3
    hal-set-property --udi $udi --key input.x11_options.Button2 --string 3
    ;;
    esac
    done

So that works for renaming the input devices back to what wacomcpl and
xsetwacom expect them to be, so rotation and interactive calibration
work, and it also enables context menus off the stylus button.

Now, some of those things can be fixed by changing the fdi file or
changing the way that the Xserver interprets the information it gets
from hal.

But, as gali98 points out, there are some configurations that can't be
easily specified in the fdi file.  If I understand him correctly, I
could modify the fdi file to map the stylus button2 to button 3, but I
couldn't remap the eraser button in the fdi file because the eraser is a
sub-device.

So this gives us a place to put that sort of stuff until hal is taught
how to deal with these problems.

-- rec --

-- 
[FFe] Please allow a new version of wacom-tools
https://bugs.launchpad.net/bugs/355340
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to