Ubuntu11.04 solves the problem of low resolution of external display

Source: Internet
Author: User

My laptop is ThinkPad, and the external display is set to 1680x1050.

First, familiarize yourself with the command:

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)

Then, set it as follows.

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

Then, write the script:

#! /Bin/sh

# Monitor. Sh
# Check whether the external monitor is connected:
# Returns 0 on success
Xrandroid | grep VGA | grep "connected"
If [$? -EQ 0]; then
Xrandroid -- newmode "1680x1050_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088-hsync + vsync
# Xrandroid -- newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909-hsync + vsync
Xrandroid -- addmode vga1 "1680x1050_60.00"
# Xrandroid -- addmode vga1 "1440x900_60.00"
Xrandroid -- output vga1 -- Mode 1680x1050_60.00 -- right-of lvds1
# Xrandroid -- output vga1 -- Mode "1440x900_60.00" -- right-of lvds1
Else
Xrandroid -- output vga1 -- off
Fi

Run it again. Run the xrandroid command to check whether the resolution you want to set exists. If not, run the preceding script again. If:

Xrandroid -- output vga1 -- Mode 1680x1050_60.00 -- same-as lvds1

Turn off the notebook display:

Xrandroid -- output lvds1 -- off

That's all. You can also write a self-starting script to run each time you start the system.

Run the following command to view the Ubuntu version: CAT/etc/issue.

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.