/*************************************** ******************************* Author: samson * Date: 06/15/2014 * Test platform: * Mint 15-3.8.13.13 * GNU bash, version 4.2.45 ************************************** ******************************/
#! /Bin/bashecho "try to set 800x600" xrandroid-s 8 sleep 10 echo "try to set 1680x1050" xrandroid-s 2 sleep 10 echo "try to set 1440x900 "xrandroid-s 4 sleep 10 echo" try to set 1280x1024 "xrandroid-s 3 sleep 10 echo" try to set 1024x768 "xrandroid-s 6 sleep 10 echo" try to set 1920x1080 "xrandroid-s 0 sleep 10 or more-s after the parameter value followed by the value is the corresponding display configuration item from top to bottom index number, the index number starts from 0. You need to view the "display" attribute configuration dialog box on your computer. For example, if xrandroid-s 0 does not correspond to 1920x1080, but 1600*900. The following is a configuration script that uses commands to rotate a display: echo "try to set left" xrandroid-o leftsleep 3 echo "try to set right" xrandroid-o rightsleep 3 echo "try to set inverted" xrandroid-o invertedsleep 3 echo "try set normal "xrandroid-o normalsleep 3