How to update xf86-input-wacom to get portrait orientations working correctly in Natty and Oneiric.

Created by Favux
Keywords:
xf86-input-wacom cw ccw portrait
Last updated by:
Favux

The xf86-input-wacom versions 0.10.9, 0.10.10, 0.10.11, and 0.11.0 have a bug where cw and ccw are reversed when you use the Wacom Rotate command for rotating input tools to a portrait orientation. This puts the stylus and other input tools on the Wacom X driver in the wrong orientation when rotating to portrait orientations for tablet mode in Magick Rotation. Since Natty has xf86-input-wacom-0.10.11 as the default and Oneiric has 0.11.0, they both have this bug. You can determine your version of xf86-input-wacom by entering the following command in a terminal:
    xsetwacom -V

The fix is in the xf86-input-wacom-0.11.1 release tar or the xf86-input-wacom-0.11.1+ git repository which you can acquire by cloning the git repository. Doing that and building the driver is described at this Linux Wacom Project mediawiki page: http://sourceforge.net/apps/mediawiki/linuxwacom/index.php?title=Building_the_driver

If you have Natty or Oneiric the following instructions will work for you. They are for Ubuntu and assume you'll be working on your Desktop.

First install git if not already installed.

    sudo apt-get install git-core

Then to clone the xf86-input-wacom git repository and compile the Wacom X driver.

    cd ./Desktop

    git clone git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/xf86-input-wacom

    sudo apt-get update

    sudo apt-get install build-essential libx11-dev libxi-dev x11proto-input-dev xserver-xorg-dev libxrandr-dev libxinerama-dev libncurses5-dev xutils-dev autoconf libtool pkg-config libudev-dev

    sudo apt-get upgrade

(As an alternative to the 3 lines above you could also try running, if your distribution has support for package build dependencies, the equivalent of the following line.)
    sudo apt-get build-dep xf86-input-wacom

    cd xf86-input-wacom

    ./autogen.sh --prefix=/usr

    make

    sudo make install

Now reboot.

If you have another distribution and are not having much luck with the mediawiki page instructions you may want to try modified Ubuntu instructions. You'll need to use the correct library names for your distribution (how to do that is described in INSTALLER.txt in the magick-rotation folder). Needed modifications of the instructions for your distribution may involve, for example, using su (root) instead of sudo if your distribution does not have sudo. Also your distribution may already come with some of these libraries installed.