Chinaunix首页 | 论坛 | 博客
  • 博客访问: 26980
  • 博文数量: 5
  • 博客积分: 255
  • 博客等级: 二等列兵
  • 技术积分: 70
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-25 08:59
文章分类
文章存档

2012年(1)

2010年(4)

我的朋友

分类: LINUX

2012-07-27 21:43:04

因RHEL6在/etc/X11下没有xorg.conf,使得显示器分辨率的设定看起来比较困难,因为用" gnome-display-properties"很多时间不能有效的切换到你想要的分辨率下,所以下面我总结了三个方法来解决此问题:

一。 自动产生xorg.conf

1. 切换到文本模式: init 3

2. 执行 Xorg -configure ---> 产生xorg.conf.new

3. cp xorg.conf.new /etc/X11/xorg.conf

4. Reboot OS

如果此方法没有产生正确的xorg.conf.new,可以接着尝试第二种方法。

二。手动产生xorg.conf

在/etc/X11下编辑xorg.conf,并加入以下代码:

touch /etc/X11/xorg.conf

vim /etc/X11/xorg.conf

##Add the following codes:

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 28.0 - 70.0
VertRefresh 56.0 - 75.0
EndSection

Section "Device"
Identifier "Card0"
Driver "vesa"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection

保存并重启电脑。


三。 添加一些特殊的分辨率:

比如我们要添加一个1440*900的分辨率(显示和显示器需要同时支持此分辨率噢),我们可以这样做:

1。 使用gtf或cvt指令来获取1440*900的时序

# 1440x900 @ 60.00 Hz (GTF) hsync: 55.92 kHz; pclk: 106.47 MHz
Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync --->这行就是我们需要的

按方法二手动添加xorg.conf,并修改如下:

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 28.0 - 70.0
VertRefresh 56.0 - 75.0

UseModes "Modes0"
EndSection

Section "Modes"
Identifier "Modes[0]"

Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync --->将上面获得的1440*900的时序添加在此。

Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync

Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
Modeline "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
Modeline "640x480" 31.5 640 656 720 840 480 481 484 500 # 6. Try
Modeline "640x480" 31.5 640 680 720 864 480 488 491 521 # 5. Try
Modeline "640x480" 28 640 664 760 800 480 491 493 525 # 4. Try
Modeline "640x480" 28.32 640 664 760 800 480 491 493 525 # 3. Try
Modeline "640x480" 25.18 640 664 760 800 480 491 493 525 # 2. Try
Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 # 1. Try
EndSection

Section "Device"
Identifier "Card0"
Driver "vesa"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1440x900_60.00" "1024x768" "800x600" ---->将你要的分辨率添加到最前
EndSubSection
EndSection

保存并重启电脑。

阅读(611) | 评论(0) | 转发(0) |
0

上一篇:[原创]Oracle10g R2在RHEL4.8系统的安装

下一篇:没有了

给主人留下些什么吧!~~