Method 4 doesn't require an xorg.conf. It uses the swivel hinge switch, either with a script or a program/applet called Magick Rotation.
Using Method 1:
1)Create a text file on the desktop called '.rotate.sh' (it will be a hidden file). Into it place the script above and save. The period in front of the name is mandatory.
# Find the line in "xrandr -q --verbose" output that contains current screen orientation and "strip" out current orientation.
rotation="$(xrandr -q --verbose | grep 'connected' | egrep -o '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')"
# Using current screen orientation proceed to rotate screen and input tools.
case "$rotation" in
# -rotate to the right
xrandr -o right
xsetwacom set stylus rotate CW
xsetwacom set touch rotate CW
xsetwacom set eraser rotate CW
# -rotate to normal
xrandr -o normal
xsetwacom set stylus rotate NONE
xsetwacom set touch rotate NONE
xsetwacom set eraser rotate NONE
2)Right click on the text file. In the permissions tab check the “Allow executing file as a program” and close.
3)Next create a launcher on the desktop. Give it a name and in the Command box type the path to the text file you made executable.
Note: when you clean up the desktop and move the script in the text file to say, your home or home/user directory, remember to change the path in the Launcher's command box to reflect the new path.
4)Double click on the launcher's icon and watch the screen rotate! Check that your stylus, eraser, and touch are oriented and working correctly. Double click again and rotate back.
5)If you want, move the launcher to a panel or to a dock, like Cairo-dock, and then a single click will rotate the screen.
Depending on what version you have of linux (kernel) and linuxwacom you may have to rename stylus, eraser, and touch. See what X is calling them with:
You can also use the ID number if it stays the same between reboots.