今天在虚拟机上安装了RedHat5.6操作系统,在调分辨率是出了错误。一般来说,通过两步来完成分辨率的调整。
1、调显示器的大小。这一般有两种方式:(1)使用root用户,在命令行中输入system-config-display,出现显示器的对话框,配置自己的显示器;(2)使用vi命令编辑/etc/X11/xorg.conf文件。
把
Section "Monitor"
###Comment all HorizSync and VertSync values to use DDC:
### Commentall HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "LCD Panel 800×600"
###Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 60.0
VertRefresh 50.0 - 80.0
Option "dpms"
EndSection
"改为
Section "Monitor"
###Comment all HorizSync and VertSync values to use DDC:
###Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
ModelName "LCD Panel1024x768"
###Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 60.0
VertRefresh 50.0 - 80.0
Option "dpms"
EndSection
把
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
EndSection
改为
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768"
EndSubSection
EndSection
保存、退出。
说明:此处只是制定显示器的分辨率的大小为1024*768.
2、在桌面System – perfences-ScreenResolution,此时会发现多了许多分辨率的选择,找到符合自己的即可。