Ubuntu 11.04更改分辨率


刚从Ubuntu 10.10升级到11.04,一切很顺利,只是有部分软件要重新装下,这倒没什么。
但是有个问题,就是屏幕分辨率变大了,怎么改成1024*768呢?
查了些资料,终于成功。方法很简单,如下:

第一步:在终端中输入命令: cvt 1024 768

(“1024 768“是根据分辨率来写的,其它的分辨率有:600*480 、800*600 、1024*768、1400x1050、1600x1200、1280x720、1920x1080等).如果你想设置显示器的分辨率为 1600*1200的话,则输入命令:cvt 1600 1200

第二步:记下终端中输出的参数,如下面则是我在终端中输入cvt 1024 768后显示的参数。

(注:不同显示器的参数有所不同,所以必须运行第一个命令,而不能照搬别人的显示器的参数)

# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz
Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync

第 三步:在终端中输入命令:sudo gedit /etc/X11/xorg.conf (注意大小写),输入密码后打开了一个文件(如果不存在,就会创建一个)。此文件如果是空白的,则在文件中加入如下内容。注意要将Modeline和Modes中的参数替换。保存文件后重启系统就可以成功的更改分辨率。

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 75.0
Option "DPMS"
Modeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Monitor0"
SubSection "Display"
Virtual 1024 768
Modes "1024x768"
EndSubSection
EndSection

相关内容