
Originally Posted by
Favux
The xrandr commands rotate the screen orientation. You then have to use xsetwacom commands to rotate the stylus, eraser, and touch (if you have it) along with the change in screen orientation. What does the rotation script you have bound to the rotation button look like?
The "rotatebutton" command that I copied from the above mentioned source looks like
Code:
mode=`cat /usr/bin/rotationmode`
if test 0 = $mode
then
echo 1 > /usr/bin/rotationmode
xrandr -o right
fi
if test 1 = $mode
then
echo 2 > /usr/bin/rotationmode
xrandr -o inverted
fi
if test 2 = $mode
then
echo 3 > /usr/bin/rotationmode
xrandr -o left
fi
if test 3 = $mode
then
echo 0 > /usr/bin/rotationmode
xrandr -o normal
fi
It appears to be a pretty simple script. The file /usr/bin/rotationmode just keeps track of what orientation the screen currently is in and the script simply rotates the screen to the "next" orientation and updates the rotationmode file accordingly (at least that's what I think it does). Do I need to add a xsetwacom command somewhere in this script? If so, what should I add?
Bookmarks