Use the command xrandroid to set the display resolution and rotation script of the current system.

Source: Internet
Author: User

/*************************************** ******************************* 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.