This is my quickly typed bash script for rotating the screen. Just put it into any file, set chmod +x and set a k-menu-entry with the rotation-icon (next to DVD) as hotkey. Works fine, but I'd liked the other button more, for consistency.



Code:
#!/bin/bash

if [ "`cat /tmp/screen_rotation 2>/dev/null`" = "right" ]; then
        rm /tmp/screen_rotation
        XRAND="normal"
        SETWACOM="NONE"
        ROTATED="1"
fi;

if [ "`cat /tmp/screen_rotation 2>/dev/null`" = "inverted" ] && [ "$ROTATED" != "1" ]; then
        echo "right" > /tmp/screen_rotation
        XRAND="right"
        SETWACOM="CW"
        ROTATED="1"
fi;

if [ "`cat /tmp/screen_rotation 2>/dev/null`" = "left" ] && [ "$ROTATED" != "1" ]; then
        echo "inverted" > /tmp/screen_rotation
        XRAND="inverted"
        SETWACOM="HALF"
        ROTATED="1"
fi;

if [ "`cat /tmp/screen_rotation 2>/dev/null`" = "" ] && [ "$ROTATED" != "1" ]; then
        echo "left" > /tmp/screen_rotation
        XRAND="left"
        SETWACOM="CCW"
        ROTATED="1"
fi;

if [ "$ROTATED" = "1" ]; then
        xrandr -o $XRAND
        xsetwacom set "TabletPCStylus" Rotate $SETWACOM
        xsetwacom set "TabletPCStylus2" Rotate $SETWACOM
        xsetwacom set "TabletPCStylus3" Rotate $SETWACOM
fi;


Does anybody got the standby working?