Comment 9 for bug 217182

Revision history for this message
Tom Jaeger (thjaeger) wrote : Re: [Bug 217182] Re: Rotate Screen in TabletPC stylus and pointer mouse not coincidence

Karl Hegbloom wrote:
> So far, there's a daemon that connects to the display and registers to
> receive screen rotation events. When it gets woken up by one, if the
> rotation is different from the last time, it calls a shell script with a
> single argument, the new rotation. The script is responsible for
> remapping the arrow-pad directions, and rotating the Wacom tablet to
> match the screen.

This seems to be based on an earlier version of my wacomrotate daemon:

http://github.com/thjaeger/wacomrotate/tree/master
http://ppa.launchpad.net/thjaeger/ubuntu/pool/main/w/wacomrotate/

I've added rudimentary auto-detection of available wacom devices since
then, maybe you want to add this to your program. The reason is that
USB tablets need to have xsetwacom called for both their "touch" device
and their "stylus" device in order for touch screen input to be properly
rotated.