歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux xorg配置雙屏幕顯示

Linux xorg配置雙屏幕顯示

日期:2017/2/28 16:40:33   编辑:Linux教程

轉自:http://sharkyan.blog.51cto.com/536264/228749

上周在用單位的閒置硬盤裝了個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就行了。
(*^__^*)

Copyright © Linux教程網 All Rights Reserved