RHEL5.5,用VMware装完后,发现分辨率设置只有640x480和800x600两种,无法设置成常用的1024x768。
在网上查了下,多数是说要安装vmware tools才可以调整分辨率,经过亲自测试,发现可以不安装另外的软件,就能设置为1024x768分辨率,方法如下。
1、进入桌面后,点击System -> Administration -> Display,选择Hardware,点击Monitor Type后面的Configure(默认是autoconfigured),在新窗口中选择Generic CRT Display,选择适合你的分辨率,我的是1024x768。点击OK退出。
2、回到刚才Display Settings的窗口,切换到第一个标签页Settings,在Resolution的下拉菜单中,会发现多出了一些分辨率,选择1024x768,点击OK退出。
3、退出当前用户,System -> Log Out。
4、系统再次回到登录界面时,你会发现分辨率已经修改成功了。
注意,在选择Generic CRT Display那一步,不要选下面的Generic LCD Display,虽然我用的是LCD,但选了之后我发现设置成1024x768,注销后分辨率并不是1024x768,似乎是1280x800,不知道为什么,后来选Generic CRT Display设置就正常的。
附上更改完设置后的/etc/X11/xorg.conf文件:
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "Monitor0"
ModelName "Monitor 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 61.0
VertRefresh 50.0 - 75.0
Option "dpms"
EndSection
Identifier "Monitor0"
ModelName "Monitor 1024x768"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 61.0
VertRefresh 50.0 - 75.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "vmware"
EndSection
Identifier "Videocard0"
Driver "vmware"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection