标签: 杂谈 | 分类:国民Linux入门教程 |
物件:
GT240显卡
SyncMaster 795MB (CRT)
长城 M930 (LCD)
10元购得dvi-to-vga转接头一个(一定要DVI一头插针是满的那种)。
最终的接驳法:
显卡VGA--SyncMaster 795MB
显卡DVI-I--(DVI-I转VGA转换头)--长城 M930
~~~~~~~~~~~~
795MB最高支持的分辨率为1900x1200,M930最高1366x768(驱动中为1360x768);这样将795MB分辨率设为1024x768则两屏在垂直方向一致。
下面来具体的实现:
$ lspci | grep VGA
02:00.0 VGA compatible controller: nVidia Corporation GT215[GeForce GT 240] (rev a2)
a)Windows7中nvidia驱动对于双屏的支持非常的好,不需要过多的配置。
b)Debian中配置有些麻烦,需要手工调整参数。
不过nvidia-settings可以图形化设置,需要胆大心细。
要点:
1)从nvidia-settings导出显示器的EDID,复制到/etc/X11/中备用;
2)以root身份运行nvidia-settings,配置双显示器为TwinView;
3)重启Xorg后在xorg.conf中添加一句CustomEDID即可(下文详述)。
【特别说明】这个要点是完整的配置,一般的只做 要点2即可,只是CRT-0不能显示生产商以及分辨率配置少点灵活性(缺信息)。
1)
查看Xorg的日志/var/log/Xorg.0.log,得知DVI接口的VGA显示器缺少EDID,需要从nvidia-settings工具导出显示器的EDID数据。
将显示器分别连接到VGA接口,运行
$nvidia-settings
或菜单:系统--系统管理--NVIDIA X ServerSettings,这时不需要root权限。
将双显示器连接好,重启Xorg (用快捷键alt + printscreen + k),然后运行
$su
#nvidia-settings
GPU节点下面有CRT-0, CRT-1。CRT-0对应的是DVI接口连接的显示器,CRT-1对应VGA接口连接的显示器。这时只有CRT-1的AcquireEDID...按钮可以用,导出edid文件为edid_m930.bin;交换显示器连接,以防日后使用,导出另一个edid文件edid_795mb.bin。将此两个文件复制到/etc/X11/。
2)
$su
#nvidia-settings
这里可以拖动显示器的图标调整次序,这里注意左右调整的时候应先拖到一个的下面,再拖到左边或右边,不然是重叠的哦。
上图中是最终的截图,亦即加了EDID,没有加上的时候只是显示CRT-0而不是GRWM930。
上图为Seperate Xscreen,两个显示器是独立的哦。
上图为TwinView,显示器是扩展的!
3)
在xorg.conf中指定edid:
在Screen一节添加
Option
"CustomEDID" "CRT-0:/etc/X11/edid_m930.bin"
分辨率的设定有两种:
自动选择(用相对值)
Option
"metamodes" "CRT-0: nvidia-auto-select +0+0, CRT-1:nvidia-auto-select +1360+0"
指定分辨率(具体的分辨率)
Option
"MetaModes" "CRT-1:1024x768, CRT-0:1360x768"
设置显示器的相对位置:
例如我的次显示器CRT-1在主显示器CRT-0的左边
Option
"TwinViewOrientation" "LeftOf"
右边是"RightOf"
Option
"TwinViewOrientation" "RightOf"
具体见如下配置,配置好以后重启xorg即可看到仰慕已久的效果。
------------------------------
xorg.conf
------------------------------
# nvidia-settings: X configuration file generated bynvidia-settings
# nvidia-settings: version 1.0
(pbuilder@c203)
Tue May 18 07:56:38 UTC2010
# nvidia-xconfig: X configuration file generated bynvidia-xconfig
# nvidia-xconfig: version260.19.44
(buildd@barber)
WedApr 27 00:23:54 UTC 2011
Section "ServerLayout"
Identifier
"Layout0"
Screen
0
"Screen0" 0 0
InputDevice
"Keyboard0" "CoreKeyboard"
InputDevice
"Mouse0" "CorePointer"
Option
"Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generatedfrom default
Identifier
"Mouse0"
Driver
"mouse"
Option
"Protocol" "auto"
Option
"Device" "/dev/psaux"
Option
"Emulate3Buttons" "no"
Option
"ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generatedfrom default
Identifier
"Keyboard0"
Driver
"kbd"
EndSection
Section "Monitor"
Identifier
"Monitor0"
VendorName
"Unknown"
ModelName
"CRT-0"
HorizSync
30.0 - 85.0
VertRefresh
50.0 - 160.0
Option
"DPMS"
EndSection
Section "Monitor"
Identifier
"Monitor1"
VendorName
"Unknown"
ModelName
"Samsung SyncMaster"
HorizSync
30.0 - 85.0
VertRefresh
50.0 - 160.0
EndSection
Section "Device"
Identifier
"Device0"
Driver
"nvidia"
VendorName
"NVIDIA Corporation"
BoardName
"GeForce GT 240"
EndSection
Section "Device"
Identifier
"Device1"
Driver
"nvidia"
VendorName
"NVIDIA Corporation"
BoardName
"GeForce GT 240"
BusID
"PCI:1:0:0"
Screen
1
EndSection
Section "Screen"
# Removed Option "metamodes" "1280x1024 +0+0"
# Removed Option "metamodes" "1360x768_60 +0+0"
# Removed Option "TwinView" "0"
# Removed Option "metamodes" "CRT-0: 1360x768_60 +0+0"
Identifier
"Screen0"
Device
"Device0"
Monitor
"Monitor0"
DefaultDepth
24
Option
"TwinView" "1"
Option
"TwinViewXineramaInfoOrde
r" "CRT-0"
Option
"metamodes" "CRT-0: 1360x768_60 +1024+0, CRT-1: nvidia-auto-select+0+0"
SubSection
"Display"
Depth
24
EndSubSection
Option
"CustomEDID" "CRT-0:/etc/X11/edid_m930.bin"
EndSection
Section "Screen"
Identifier
"Screen1"
Device
"Device1"
Monitor
"Monitor1"
DefaultDepth
24
Option
"TwinView" "0"
Option
"metamodes" "CRT-1: nvidia-auto-select +0+0"
SubSection
"Display"
Depth
24
EndSubSection
EndSection
特别注意:双屏后只能以root身份调用nvidia-settings,因为要保存配置到xorg.conf中。
菜单:系统——首选项——Monitors (显示器)查看一下分辨率确实扩展了!
GT240显卡
SyncMaster 795MB (CRT)
长城 M930 (LCD)
10元购得dvi-to-vga转接头一个(一定要DVI一头插针是满的那种)。
最终的接驳法:
显卡VGA--SyncMaster 795MB
显卡DVI-I--(DVI-I转VGA转换头)--长城 M930
~~~~~~~~~~~~
795MB最高支持的分辨率为1900x1200,M930最高1366x768(驱动中为1360x768);这样将795MB分辨率设为1024x768则两屏在垂直方向一致。
下面来具体的实现:
$ lspci | grep VGA
02:00.0 VGA compatible controller: nVidia Corporation GT215[GeForce GT 240] (rev a2)
a)Windows7中nvidia驱动对于双屏的支持非常的好,不需要过多的配置。
b)Debian中配置有些麻烦,需要手工调整参数。
不过nvidia-settings可以图形化设置,需要胆大心细。
要点:
1)从nvidia-settings导出显示器的EDID,复制到/etc/X11/中备用;
2)以root身份运行nvidia-settings,配置双显示器为TwinView;
3)重启Xorg后在xorg.conf中添加一句CustomEDID即可(下文详述)。
【特别说明】这个要点是完整的配置,一般的只做 要点2即可,只是CRT-0不能显示生产商以及分辨率配置少点灵活性(缺信息)。
1)
查看Xorg的日志/var/log/Xorg.0.log,得知DVI接口的VGA显示器缺少EDID,需要从nvidia-settings工具导出显示器的EDID数据。
将显示器分别连接到VGA接口,运行
$nvidia-settings
或菜单:系统--系统管理--NVIDIA X ServerSettings,这时不需要root权限。
将双显示器连接好,重启Xorg (用快捷键alt + printscreen + k),然后运行
$su
#nvidia-settings
GPU节点下面有CRT-0, CRT-1。CRT-0对应的是DVI接口连接的显示器,CRT-1对应VGA接口连接的显示器。这时只有CRT-1的AcquireEDID...按钮可以用,导出edid文件为edid_m930.bin;交换显示器连接,以防日后使用,导出另一个edid文件edid_795mb.bin。将此两个文件复制到/etc/X11/。
2)
$su
#nvidia-settings
上图中是最终的截图,亦即加了EDID,没有加上的时候只是显示CRT-0而不是GRWM930。
3)
在xorg.conf中指定edid:
在Screen一节添加
Option
分辨率的设定有两种:
自动选择(用相对值)
Option
指定分辨率(具体的分辨率)
Option
设置显示器的相对位置:
例如我的次显示器CRT-1在主显示器CRT-0的左边
Option
右边是"RightOf"
Option
具体见如下配置,配置好以后重启xorg即可看到仰慕已久的效果。
------------------------------
xorg.conf
------------------------------
# nvidia-settings: X configuration file generated bynvidia-settings
# nvidia-settings:
# nvidia-xconfig: X configuration file generated bynvidia-xconfig
# nvidia-xconfig:
Section "ServerLayout"
EndSection
Section "Files"
EndSection
Section "InputDevice"
EndSection
Section "InputDevice"
EndSection
Section "Monitor"
EndSection
Section "Monitor"
EndSection
Section "Device"
EndSection
Section "Device"
EndSection
Section "Screen"
# Removed Option "metamodes" "1280x1024 +0+0"
# Removed Option "metamodes" "1360x768_60 +0+0"
# Removed Option "TwinView" "0"
# Removed Option "metamodes" "CRT-0: 1360x768_60 +0+0"
EndSection
Section "Screen"
EndSection
特别注意:双屏后只能以root身份调用nvidia-settings,因为要保存配置到xorg.conf中。
菜单:系统——首选项——Monitors (显示器)查看一下分辨率确实扩展了!