调整Ubuntu Linux的分辨率
我现在用的是ubuntu6.06,安装完之后默认的分辨率是1024×768,而且选项里面也只有1024×768,800×600,640×480三种。一开始我其实也不是太在意,几个同事看了我的屏幕后都说看起来很不习惯,搞得我看起来感觉越来越不顺眼,所以一大早来首先查一下如何修改Ubuntu的分辨率。网上有人说用sudo dpkg-reconfigure xserver-xorg,我急急忙忙的就试了一下,进去之后经过N次选择之后重启,被告知X server错误无法启动。进入recover模式,在/etc/X11/下将xorg.conf用原来的备份还原。
又到Ubuntu的官方网站上找了一下,终于解决了,解决方法如下:
用编辑器打开/etc/X11/xorg.conf找到
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-78
VertRefresh 43-93
EndSection
其中数字代表显示器的水平和垂直刷新率,改成适合你的显示器的数值
再找到
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 945G Integrated Graphics Controller"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
在Depth 16和Depth 24两段中,原来是没有"1280x1024" 的,需要自己加上
这样重启之后分辨率就会自动调整到1280x1024,如果没有的话可以将Depth 16和Depth 24中的"1024x768" 删除,这样就没问题了。
