Hallo,
ich habe nun auch Arch auf meinem Tablet PC, und ein Problem mit der Rotation des Bildschirminhaltes.
Ich habe die Befehle rotateright und rotatenormal angelegt, und diese funktionieren auch.
Dann nach dieser Anleitung das Rotationsscript angelegt:
First create a file to store the current rotation data
sudo nano /usr/bin/rotationmode
fill this file with:
0
and make it editable, but not executable
sudo chmod 666 /usr/bin/rotationmode
Now we will write the script to rotate the screen
sudo nano /usr/bin/rotatebutton
And fill it with:
mode=`cat /usr/bin/rotationmode`
if test 0 = $mode
then
echo 1 > /usr/bin/rotationmode
rotateright
fi
if test 1 = $mode
then
echo 0 > /usr/bin/rotationmode
rotatenormal
fi
Make it executable:
sudo chmod +x /usr/bin/rotatebutton
Now typing rotatebutton in terminal should go through all of the rotations
To map the command to the button go to System>Preferences>Keyboard Shortcuts, click the Add button at the bottom, name it whatever you want and use the command rotatebutton. Then bind the key by clicking in the shortcut column and pressing the tablet rotate key.
Wenn ich nun den Rotationsknopf drücke rotiert es zwar, aber der Zustand rotateright hält nur eine Sekunde an, dann wird wieder auf rotatenormal gedreht.
Sieht jemand wo der Fehler liegt?
Das Ganze hat übrigens so schon mal unter Xubuntu tadellos funktioniert.
EDIT
Und noch ein ganz ernstes Problem: die Tastatur inklusive der Tasten am unteren Bildschirmrand werden beim Umklappen deaktiviert. Das mag bei den neuen Yogabooks wünschenswert sein, macht meinen Tablet PC aber unbrauchbar. Wie krieg ich das weg?