Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1361800
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类: LINUX

2010-08-30 00:07:52

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


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