Ubuntu10.04 sets the screen resolution

Source: Internet
Author: User

All the information found on the Internet is to edit the ETC/X11/Xorg. conf file. Ubuntu 10.04 does not have this file. You need to create it yourself.


CD etc/X11/

Sudo touch Xorg. conf

Sudo gedit Xorg. conf

Copy the Code:

Section "device"
Identifier "configured video device"
Endsection

Section "Monitor"
Identifier "configured monitor"
Horizsync 30-82
Vertrefresh 50-75
Endsection

Section "screen"
Identifier "default screen"
Monitor "configured monitor"
Device "configured video device"
Subsection "display"
Modes "800x600"
Endsubsection
Endsection

The main data is

Horizsync 30-82 ------ line frequency
Vertrefresh 50-75 ----- Field Frequency

Modes "800x600" ----- resolution

My display model is viewsonic 703 m. Find its line frequency and field frequency parameters as follows:

Horizsync 30-82 ------ line frequency
Vertrefresh 50-75 ----- Field Frequency

Modes "800x600" is the resolution I want to set. Multiple resolutions can be written here, but the first one is preferred.

In addition, the line frequency and field frequency data cannot be set at will, and must be set according to the parameters given by your display model. If not, follow this method:

Enter the following command in the terminal:
GTF 1024 768 60
This 1024 768 is the resolution you want to set, and this 60 is the refresh rate you want to set.
The command result is as follows:

$ GTF 1024 768 60

#1024x768 @ 60.00Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769-hsync + vsync

Copy the modeline line in the Command result to the section "Monitor" block.
You may want to try multiple resolutions, so you can use the GTF command to obtain the parameters under various resolutions and copy them to section "Monitor. Comment out the line frequency and field frequency lines.

For example:

Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769-hsync + vsync
Modeline "1024x768_70.00" 76.16 1024 1080 1192 1360 768 769-hsync + vsync
Modeline "1152x768_60.00" 71.74 1152 1208 1328 1504 768 769-hsync + vsync

Restart the instance. If you cannot enter the graphic interface, check whether the Xorg. conf file is incorrectly edited, or delete the file on the terminal before it can be restored.

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.