linux 非xorg命令行,Linux xorg配置双屏幕显示

上周在用单位的闲置硬盘装了个CentOS 5.4 x64,发现不能像win7一样默认识别双屏。

自己搞了搞总是失败,今天上午在网上google了一下,有高人说需要这么办。

Section "Screen"下面添加如下内容:

Option "TwinView"--------估计是告诉X使用双屏显示。

Option "MetaModes" "1280*1024 1280*1024"--------告诉X显示的分辨率。

Option "TwinView Orientation" "RightOf"--------估计这是告诉X附加的显示器在右侧。

全部配置内容如下:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig

# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Fri Aug 14 18:33:37 PDT 2009

# Xorg configuration created by pyxf86config

Section "ServerLayout"

Identifier     "Default Layout"

Screen      0  "Screen0" 0 0

InputDevice    "Mouse0" "CorePointer"

InputDevice    "Keyboard0" "CoreKeyboard"

EndSection

Section "InputDevice"

# generated from default

Identifier     "Mouse0"

Driver         "mouse"

Option         "Protocol" "auto"

Option         "Device" "/dev/input/mice"

Option         "Emulate3Buttons" "no"

Option         "ZAxisMapping" "4 5"

EndSection

Section "InputDevice"

Identifier     "Keyboard0"

Driver         "kbd"

Option         "XkbModel" "pc105"

Option         "XkbLayout" "us"

EndSection

Section "Monitor"

Identifier     "Monitor0"

VendorName     "Unknown"

ModelName      "Unknown"

HorizSync       28.0 - 33.0

VertRefresh     43.0 - 72.0

Option         "DPMS"

EndSection

Section "Device"

Identifier     "Videocard0"

Driver         "nvidia"

EndSection

Section "Screen"

Identifier     "Screen0"

Device         "Videocard0"

Monitor        "Monitor0"

DefaultDepth    24

###

Option "TwinView"

Option "MetaModes" "1280*1024 1280*1024"

Option "TwinView Orientation" "RightOf"

###

SubSection     "Display"

Viewport    0 0

Depth       24

EndSubSection

EndSection

非图形界面搞,然后启动X就行了。

(*^__^*)0b1331709591d260c1c78e86d0c51c18.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值