ManualRotate – Manual Control Of AutoRotate Script
Having the screen rotate automatically based on orientation is a useful thing, but sometime you want the rotation to be locked. That is the job of the manual-rotate.py script included with the autorotate package. It connects a running auto-rotate.py daemon, disables it and rotates the screen 90 degrees. Further calls of the script rotate the screen until a full cycle has been reached, and then re-enable auto-rotate.py. It does nothing if the laptop is not in tablet mode.
The manual-rotate.py can also work standalone, without a running deamon. In that case, manual-rotate.py just rotates the screen to the next position.
I suggest you map the script to one of the screen buttons, using the following instructions (for GNOME users).
- Open the keyboard shorcuts panel, found under System->Preferences->Keyboard Shortcuts.
- Click the Add button to create a new custom shortcut.
- In the window that pops up, specify
Name: Rotate Screen
Command: manual-rotate.py. - Close the window by clicking Apply.
- Find the new shortcut at the bottom of the keyboard shortcuts of the window, and map it to a button.
- Close the keyboard shortcuts window, go into tablet mode and press the button that you mapped to the manual-rotate.py script.
One Comment
Leave a commentTrackbacks and Pingbacks