Linux分辨率问题

在虚拟机安装好RedHat Enterprise 5后,无法更改分辨率,默认的是800*600和640*480,经过一番折腾后,终于找到修改方法,弄到了1024*768。

修改/etc/X11/xorg.conf内容如下:

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unknown monitor"
# HorizSync 31.5 - 37.9  /*HorizSync:水平同步率*/
HorizSync 30 - 70
# VertRefresh 50.0 - 70.0  /*VerRefresh:垂直刷新率*/
VertRefresh 50.0 - 160
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "800x600" "640x480" /*修改第一处*/
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"  /*修改第二处*/
EndSubSection
EndSection

保存后注销系统再次登陆就OK了