用kvm连接的服务器,服务器安装redhat5系统,文本界面可以启动,图形界面启动的时候黑屏,故障原因应该是kvm支持的分辨率没有那么大,调整系统分别率。
1, 用Xort -configure重新生成配置文件。
[root@tonykorn97 X11]# Xorg -configure
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.9-67.0.7.ELsmp x86_64 Red Hat, Inc.
Current Operating System: Linux tonykorn97 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64
Build Date: 02 April 2008
Build ID: xorg-x11-server 1.1.1-48.41.el5
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 15 15:42:36 2010
List of video drivers:
s3virge
i810
dummy
ati
mga
tdfx
radeon_tp
atimisc
sisusb
siliconmotion
cirrus
savage
voodoo
intel
r128
s3
radeon
trident
ati_tp
ast
via
sis
nv
vmware
fbdev
vesa
vga
(++) Using config file: "/root/xorg.conf.new"
Xorg detected your mouse at device /dev/input/mice.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.
Your xorg.conf file is /root/xorg.conf.new
To test the server, run 'X -config /root/xorg.conf.new'
[root@tonykorn97 X11]#
2, 拷贝配置文件。
[root@tonykorn97 X11]# mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
[root@tonykorn97 X11]# cp /root/xorg.conf.new /etc/X11/xorg.conf
[root@tonykorn97 X11]#
3, 用startx启动系统。
4, 用system-config-display重新修改分辨率
从其他机器拷贝xorg.conf文件需要修改下面2个部分
1,由于64和32机器的不同,需要修改:
ModulePath "/usr/lib/xorg/modules" 或者 ModulePath "/usr/lib64/xorg/modules"
2,显卡的不同需要修改:
Identifier "Card0"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Radeon RV100 QY [Radeon 7000/VE]"
BusID "PCI:11:13:0"
修改完毕后可以用kvm启动,直接启动还是有问题。
用kvm启动的时候显示分辨率为:1024*768@85MHZ。应该是刷新频率的问题。
解决办法:
----------------------------------------
很多同志因为无法提高屏幕刷新率而放弃使用linux,实在是很遗憾。
这个办法不依赖任何gnome或者是kde,你在命令行下面就就能解决,适用于任何窗口管理器,我用的是Icewm,当然没有问题,呵呵,下面的就是具体 解决办法首先在终端下面运行你gtf命令,参数是你想要的分辨率和刷新率,比如我的
分辨率为1024x768,刷新率想要85,那么我就可以这样用: gtf 1024 768 85
结果如下:
# 1024x768 @ 85.00 Hz (GTF) hsync: 68.60 kHz; pclk: 94.39 MHz
Modeline "1024x768_85.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
这样你就可以修改你的/etc/X11/XF86Config-4的显示器部分为:
Section "Monitor"
Identifier "Generic Monitor"
# 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
Modeline "1024x768_85.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
Option "DPMS"
EndSection
启动X,你就可以看到效果了,如果X启动不了,查看一下原因,有可能是你的分辨率或刷新率调的太高了
另外在X下你也可以通过xvidtune来进行微调
例如:
[root@tonykorn97 X11]# gtf 1024 768 60
# 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
[root@tonykorn97 X11]#
修改:xorg.conf
-------------------------------------------------------------------------
Section "Monitor"
#DisplaySize 380 290 # mm
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Identifier "Monitor0"
VendorName "KVM"
ModelName " Monitor"
### Comment all HorizSync and VertSync values to use DDC:
### HorizSync 31.5 - 37.9
### VertRefresh 50.0 - 70.0
# 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
Option "DPMS"
EndSection