Comment 3 for bug 133430

Revision history for this message
Russell Sears (sears) wrote :

I have attached two perl scripts that I use to rotate my screen on an x61 tablet. They should work (more or less) on the x60 tablet as well.

They handle xrandr, wacom rotation, and also set the arrow buttons on the front panel to the appropriate keyboard arrow keys. rotscreen.new calls xrandr 1.2 binaries (from gutsy), rotscreen.old uses xrandr 1.1 bianries (from feisty)

To set the keys, you need to add this to your sudo config (with visudo):

user ALL=(ALL) NOPASSWD: /usr/bin/setkeycodes * *

(Change user to your username...)

If you pass an argument, it's a number from 0-4 that controls the screen rotation. Zero = normal. If you don't, it toggles the screen between my two preferred screen orientations. (I'm left handed....)