Screenshot

 

Example with my tablet rotated 90 degrees. the rotGUI program has been run again to show the interface.

Intro

This is a simple GUI program (written using Python and wxwidgets) that takes care of rotating your screen and wacom tablet. I use this with my X41, but it should work for other tablet machines with wacom tablets and xrandr X extension.

Rotating your screen under Linux is a bit of a mess really. You have to execute a command line program to roate your screen, then execute another program to rotate your tablet, so that they match. I don't personally mind this, and I can write a script to do it for me, but using the command line on the tablet (i.e. without the keyboard) isn't the best option, so I decided to develop a simple GUI app that allows me to switch rotation using the pen.

Structure

The program is split into two parts. the "rotGUI" program holds the WX interface, and the "tabrot" python library does the actual rotation. I hope in time this library will be expanded to allow rotation of non-wacom tablets as well, but for now it will only rotate wacom tablets (unless someone is willing to donate hardware for me to do it, or time to do it themselves).

Prerequisites

You need the xsetwacom program to set the tablet. Xorg comes with the command to rotate the screen. You also will need python (comes with most distro's) and wxpython.

xsetwacom

If your distro does not provice a package with xsetwacom. You will have to build your own. The project is linuxwacom, and the project page is here.

Note that those of you on debian based distro's will need to install the xorg dev files "aptitude install xorg-dev" otherwise you get compile errors.

Download the package, untar it to a place of your choosing, and in the root directory run "./configure". Once configured, cd to the dir src/util, and execute "make". This will just make the tools (you don't need the driver, as versions of X from 1.7 include the driver as well). 

Now you should have a working xsetwacom command. If you do (you can test by running "./xsetwacom", it should come up with the help file) then execute "make install" to install the software to your system.

Install

There are two files, one "rotGUI" can be copied to "/usr/bin" and the other file "tabletrot.py" is copied to your python library path (/usr/lib/python2.6/ in ubuntu). Ubuntu users will have to use "sudo" to copy these files across. The "rotGUI" script has to be set executable so that it can be run. a simple "chmod u+x $path"  will work fine.

Download

Right, current version of rotGUI can be downloaded here. Let me know if you have any issues.