Ubuntu10.04 dual-display expansion mode with low resolution

Source: Internet
Author: User
Ubuntu10.04 dual-display expansion mode, low resolution of the notebook external display increased no resolution. The expansion method is used, but the external display is not recognized (unknown). The resolution is less than 1366x768 of the notebook. The original external display is a 19-inch wide screen, 1440x900, and the notebook is 1366x768, I read a lot of online saying that I want to change xorg. conf file. I am always familiar with this file. The previous laptop atimobilityx700 graphics card was stored in RedHatenterprise

Ubuntu 10.04 dual-display expansion mode, the portable external display resolution is low to increase no resolution.

The expansion method is used, but the external display is not recognized (unknown). The resolution is less than 1366x768 of the notebook. The original external display is a 19-inch wide screen, 1440x900, and the notebook is 1366x768, I read a lot of online saying that I want to change xorg. conf file. I am always familiar with this file. The previous laptop ati mobility x700 graphics card, in RedHat enterprise 5, Fedora 5, 6, 7, 8, 9 ..... cannot be installed on images, but can only be installed in text. After installation, the image cannot be started. You need to change the xorg. in conf, the driver is vesa, and then the driver is driven by ati before it works properly. conf has no appetite. I don't want to change it. If something goes wrong one day, I have to change it again. I am in trouble. Ubuntu has never had this file. Why should I create it? Why should I change it, write a script to automatically adjust each time it is started.

Now, let's start.
1,
$ Cvt 1440 900
The result is as follows:
#1440x900 59.89Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909-hsync + vsync

The value following Modeline must be used below. Then execute

2,
$ Xrandroid
The display name is obtained. My name is VGA1 and my notebook is LVDS1. The same is true for everyone.

3,
$ Sudo xrandroid -- newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909-hsync + vsync
The parameter is the heap after Modeline In the cvt result, which is adjusted according to its own parameters.

4,
$ Xrandroid
You can see the newly added setting.
Then add a new mode and execute

5,
$ Sudo xrandroid -- addmode VGA1 "1440x900_60.00"

Next, let's just set it up. Let's take a look at the commands for xrandroid. www.linuxidc.com. I just say that my laptop is on the left 1366x768, and the external monitor is on the right 1440x900, that is, the expanded screen on the right

6,
$ Xrandroid -- output VGA1 -- mode 1440x900_60.00 -- right-of LVDS1
Turn on the external monitor (maximum resolution) and set it to extend the screen on the right
7,
Supplement:
The xrandroid command line allows you to easily switch between two screens. The common method is as follows. You can explore other methods by yourself:
Xrandroid -- output VGA -- same-as LVDS -- auto
Turn on the external monitor (maximum resolution), the same content as the notebook LCD screen (clone)
Xrandroid -- output VGA -- same-as LVDS -- mode 1024x768
Turn on the external monitor (resolution: 1024x768) and display the same content as the LCD screen of the notebook (clone)
Xrandroid -- output VGA -- right-of LVDS -- auto
Turn on the external monitor (maximum resolution) and set it to extend the screen on the right
Xrandroid -- output VGA -- off
Turn off external display
Xrandroid -- output VGA -- auto -- output LVDS -- off
Turn on the external monitor and turn off the notebook LCD screen (only use the External Monitor)
Xrandroid -- output VGA -- off -- output LVDS -- auto
Turn off the external monitor and turn on the notebook LCD screen (only use the notebook LCD screen)
(In the last two cases, please be careful not to turn off both screens by mistake ....)

8. Write the self-starting script:
Find a file and add the execution permission to the list of self-started programs. Here, you do not need to add sudo or sudo password. The following code is used:
# The Code is as follows:
#! /Bin/bash
Xrandroid -- newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903-hsync + vsync;
Xrandroid -- addmode VGA1 "1440x900_60.00 ";
Xrandroid -- output LVDS1 -- mode 1366x768
Xrandroid -- output VGA1 -- mode 1440x900_60.00;
Xrandroid -- output VGA1 -- right-of LVDS1;

Save it in the main directory and name it "display". Then add it to System -- "Preferences --" to start the application, add a Startup Program, and point it to the file just now.

The only drawback is that after logging in, there will be a "unable to apply the previously saved display configuration" prompt, you don't need to worry about it, but after going in, the script runs immediately to help us adjust the two correctly displayed parameters. conf is much simpler. It is purely a cannon to attack mosquitoes.

Related Article

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.