I just figured out how can I rotate the pen when I rotate the screen, and I would like to share this knowledge to other people who may have the same problem I had.
I have a tablet fujitsu-siemens t5010 with installed the wacum packages by default, and the pen was working, but couldn't rotate with xsetwacom command.
In Fedora 10, most guides refer to the wacom device as "stylus" which doesn't work on Fedora 11. I run command " $ xinput list " and I found the line
"PnP Device (FUJ02e5) eraser" id=3 [XExtensionKeyboard]
and some lines before there is:
"PnP Device (FUJ02e5)" id=2 [XExtensionKeyboard]
^^^^^^ this is the name of the device xsetwacom command needs! ^^^^^^^
I wrote first the line with the eraser cause I suppose that even someone has different wacom model, the eraser will be easy to find by grep command ( $ xinput list | grep -i eraser ), and common in most configures.
now , the edited script I use becomes like this:
if [ $1 == 'normal' ]
xrandr -o normal
xsetwacom set "PnP Device (FUJ02e5)" rotate 0
elif [ $1 == 'left' ]
xrandr -o left
xsetwacom set "PnP Device (FUJ02e5)" rotate 2
elif [ $1 == 'right' ]
xrandr -o right
xsetwacom set "PnP Device (FUJ02e5)" rotate 1
elif [ $1 == 'inverted' ]
xrandr -o inverted
xsetwacom set "PnP Device (FUJ02e5)" rotate 3
put all that to a file with the name "rotate.sh" , make it executable ( $ chmod 755 rotate.sh ) and you can use it from command line like this:
$ rotate normal
$ rotate left
$ rotate right
$ rotate inverted
It would be awesome if it chat could happened automatically , simply by rotating the screen, like it happens on Vista. I'll try to find out any solution and update this post if I make it !