Recently, Ubuntu12.04 was installed. because the computer is an Intel integrated graphics card and is open-source, you do not need to install the graphics card driver on your own. However, the resolution of the monitor cannot be adjusted after it is installed. for those with obsessive-compulsive disorder like me, although 1024*768 is not much different from 1440*900 Ubuntu.
Most of them are to modify xorg. conf, which is located in/etc/X11/xorg. conf. But after locate, ubuntu does not have this file, and you can only create it yourself. There are two ways:
1 Manual creation:
Copy codeThe code is as follows:
Cd/etc/X11
Sudo touch xorg. conf
Sudo gedit xorg. conf
This method requires you to know the xorg. conf writing method. Example
I. general compiling rules for xorg. conf:
The xorg. conf file stores various information about X Windows. it consists of several sections/EndSecion
The format is as follows:
Section "Section name"
Option name "option value"
Option name "option value"
......
EndSection
That is to say, a block starts with Section "Section name", ends with EndSection, and is an option in the middle.
2. display settings mainly include three blocks:
Monitor
Device sets the video card
Screen sets the combination of the display and the video card, that is, the final display.
In terms of display settings, these three blocks seem indispensable.
The following is an example:
Copy codeThe code is as follows:
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
In this example, Identifier specifies the unique name of the video card in Section "Device". you can use this name as needed, however, the name must be the same as that in the device option in Section "Screen. In Section "Monitor", Identifier specifies the unique name of the Monitor. this name can be obtained at will, but it must be the same as the name specified in the "Monitor" option in Section "Screen. The Identifier option in the Section "Screen" block specifies the unique name of the video card combined with the display. You can also use this name. The name must be the same as that in Section "ServerLayout. This Section "ServerLayout" is not generally written and is not discussed here.
From the above analysis, this example only specifies the association between the three names and the three names. No substantive settings. However, this provides us with a basic framework for setup.
We can copy the original text of this framework.
Then, if we need to add our options to the display block (Section "Monitor"), we can add them directly. The same applies to the other two blocks.
The main problem is that the system cannot correctly identify the Monitor. Therefore, we need to write the Section "Monitor.
Method 2: disable the graphic interface and use the command to create it:
Copy codeThe code is as follows:
First, disable the graphic interface.
Sudo service lightdm stop
Then: generate the xorg. conf. new file
Sudo Xorg-configure (xorg. conf. new will be generated in the home directory)
Sudo mv xorg. conf. new/etc/X11/xorg. conf (run in the home directory)
Finally, restart the graphic interface.
Sudo service lightdm start
In this way, a set xorg. conf file is generated.
Everything is ready. We only need to add a line in the Section "Monitor" of the newly generated xorg. conf.
First, set the display mode based on the resolution:
Copy codeThe code is as follows:
Gtf 1440 900 60
#1440 × 900 @ 60.00Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904-HSync + Vsync
Add the entire line of Modeline to the Section "Monitor" Section of xorg. conf. Then restart and you will see the new 1440*900 resolution setting option in the display of System setting.