Chinaunix首页 | 论坛 | 博客

TS

  • 博客访问: 218714
  • 博文数量: 67
  • 博客积分: 2335
  • 博客等级: 大尉
  • 技术积分: 682
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-18 14:59
文章分类

全部博文(67)

文章存档

2017年(1)

2016年(1)

2014年(1)

2013年(3)

2012年(3)

2011年(8)

2010年(24)

2009年(13)

2008年(6)

2007年(7)

我的朋友

分类: LINUX

2010-09-29 14:46:19

出处:http://blog.chinaunix.net/u/8059/showart_2313415.html

Ubuntu 10.04调整屏幕分辨率


1. Ubuntu 10.04没有/etc/X11/xorg.conf, 需要手工创建一个。
a) 如果已经在XWin下,需要把gdm或者xdm停掉: service xdm stop;
b) 运行: Xorg -configure,该命令会在用户目录下生成一个xorg.conf.new文件。
c) 将xorg.conf.new拷贝到/etc/X11/xorg.conf

2. 修改/etc/X11/xorg.conf
a) 找到“Section ”Monitor” ”代码段,修改成下面的信息:

Section ”Monitor”
Identifier ”Generic Monitor”
HorizSync 40
-83(修改屏幕分辨率的位置)
VertRefresh 50
-76(修改屏幕分辨率的位置,可以调整成显卡支持的最大值,比如我的设置为50-76)
End Section



b) 找到 “Section ”Screen””代码段,在其中添加下列代码:

SubSection ”Display”
Depth 16
Modes ”1280×1024″ ”1024×768″ ”832×624″ ”800×600″ ”720×400″ ”640×480″
dSubSection

SubSection ”Display”
Depth 24
Modes ”1280×1024″ ”1024×768″ ”832×624″ ”800×600″ ”720×400″ ”640×480″
EndSubSection


附 xorg.conf:





Section "ServerLayout"
        Identifier "X.org Configured"
        Screen 0 "Screen0" 0 0
        InputDevice "Mouse0" "CorePointer"
        InputDevice "Keyboard0" "CoreKeyboard"
EndSection


Section "InputDevice"
        Identifier "Keyboard0"
        Driver "kbd"
EndSection

Section "InputDevice"
        Identifier "Mouse0"
        Driver "mouse"
        Option "Protocol" "auto"
        Option "Device" "/dev/input/mice"
        Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier "Monitor0"
        VendorName "Monitor Vendor"
        ModelName "Monitor Model"
        HorizSync 40-83
        VertRefresh 50-76
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: " Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option "HWcursor" # [<bool>]
        #Option "Xinerama" # [<bool>]
        #Option "StaticXinerama" # <str>
        Identifier "Card0"
        Driver "vmware"
        VendorName "VMware"
        BoardName "SVGA II Adapter"
        BusID "PCI:0:15:0"
EndSection


Section "Screen"
        Identifier "Screen0"
        Device "Card0"
        Monitor "Monitor0"
        SubSection "Display"
                Viewport 0 0
                Depth 1
                Modes "1400x1050"
        EndSubSection
        SubSection "Display"
                Viewport 0 0
                Depth 4
                Modes "1400x1050"
        EndSubSection
        SubSection "Display"
                Viewport 0 0
                Depth 8
                Modes "1400x1050"
        EndSubSection
        SubSection "Display"
                Viewport 0 0
                Depth 15
                Modes "1400x1050"
        EndSubSection
        SubSection "Display"
                Viewport 0 0
                Depth 16
                Modes "1400x1050"
        EndSubSection
        SubSection "Display"
                Viewport 0 0
                Depth 24
                Modes "1400x1050"
        EndSubSection
EndSection

阅读(1642) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~