1667 views|0 replies

3836

Posts

19

Resources
The OP
 

How to set the resolution of Intel integrated graphics card in Ubuntu 12.04 [Copy link]

Ubuntu 12.04, because the computer is Intel integrated graphics, which is open source, so there is no need to install graphics card drivers. But after installation, the monitor resolution cannot be adjusted. For someone like me with obsessive-compulsive disorder, although 1024*768 looks not much different from 1440*900, I still feel a little uncomfortable. So after several days of struggling, I finally solved this problem.

I searched Baidu and found that most of them require modifying xorg.conf, which is located at /etc/X11/xorg.conf. However, I found that there is no such file in Ubuntu, so I have to create it myself. There are two ways:

1 Manual creation:

cd /etc/X11
sudo touch xorg.conf
sudo gedit xorg.conf
This method requires you to know how to write xorg.conf. The following is a reference example

1. General writing rules of xorg.conf:

The xorg.conf file stores various information of X Window. It consists of several Section/EndSecion
blocks, and the format is as follows:
Section "Section name"
option name "option value"
option name "option value"
...
EndSection

That is, a block starts with Section "Section name" and ends with EndSection, with options in between.

2. Display settings mainly include three blocks:
monitor sets the display
device sets the graphics card
screen sets the combination of the monitor and the graphics card, that is, the final display

In terms of display settings, these three blocks seem to be indispensable.
Here is an example:

=========================================
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, in the Section “Device” block, the Identifier specifies the unique name of the graphics card. This name can be any name, but it must be the same as the name in the device option in the Section “Screen” block. In the Section "Monitor" block, the Identifier specifies the unique name of the monitor. This name can be any, but it must be the same as the name specified in the Monitor option in the Section "Screen" block. The Identifier option in the Section "Screen" block specifies the unique name of the combination of the graphics card and the monitor. This name can also be any. This name must be the same as the name in the Section "ServerLayout" block. We generally do not need to write this Section "ServerLayout" block, so it will not be discussed here.

From the above analysis, this example only specifies three names and the associations between these three names. There is no actual setting. However, this provides us with a basic framework for settings.
We can copy this framework verbatim.
Then if we need to add our options in the monitor block (Section "Monitor"), we can add them directly there. The same is true for the other two blocks.
Since the main problem is that the system cannot correctly identify the monitor, the main thing is that we only need to write the Section "Monitor" block. <br><br>Reference address: http://qianxiaoyang.com/491.html
The second method: Close the graphical interface and create it with the command:

Copy code
First: Close the graphical interface
sudo service lightdm stop
Then: Generate the xorg.conf.new file
sudo Xorg -configure (will generate xorg.conf.new in the home directory)
sudo mv xorg.conf.new /etc/X11/xorg.conf (execute in the home directory)

Finally: restart the graphical interface
sudo service lightdm start
copy the code
This will also generate a set xorg.conf

All we need is to add a line to the "Monitor" section of the newly generated xorg.conf.

First, set the display mode according to the resolution:

gtf 1440 900 60

# 1440×900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline “1440x900_60.00″ 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
Add the entire line of Modeline to the “Monitor” section of xorg.conf. Then reboot, and you can see the newly added 1440 * 900 resolution setting option in the display of System setting.

This post is from DSP and ARM Processors
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list