当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Ubuntu双屏配置(求救中)
帖子发表于 : 2007-12-03 15:55 
头像

注册: 2007-07-06 15:40
帖子: 45
送出感谢: 0 次
接收感谢: 0 次
在论坛上面搜索了所有关于ubuntu配置双屏配置的文章,一一安装配置进行设置,最终失败。求大家给看看哪里有问题。谢谢了。
{{{{第一步是安装显卡的NVidia 3D驱动。

sudo apt-get install nvidia-glx

现在这些驱动已经安装,让我们确定一下其在运行。首先,检验xorg.conf,这是Linux下显示的主要配置文件。终端输入“sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup”,这步是将该文件备份,以此解决X崩溃无法后进入图形界面的问题。笔者建议用户修改Linux配置文件前总是将该文件备份,使之能够恢复。现在我们开始编辑该配置文件,输入“gedit /etc/X11/xorg.conf”,在gedit内将“nv”替换为“glx”。在屏幕配置相关部分,添加如下一行:

Option “RenderAccel” “true”

保存修改,并退出gedit。将X重启(点击“Ctrl+Alt+Backspace”),确认我们使用了合适的驱动。这需要用户在Ubuntu中重新登录。因此,如果你没有使用像Firefox和Swifterfox那样能恢复用户会话的浏览器,请把本文加入你的书签^^。如果安装成功,你会看到NVidia的标志在Ubuntu登录过程中闪过。相反,如果安装没有成功,X可能不能正常运行。如果那样,请在命令行中输入下面一行来用旧的文件替换修改过的xorg.conf:

sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf

我们回到xorg.conf的编辑中,再次输入“sudo gedit /etc/X11/xorg.conf”。在“Screen”(屏幕)标题下,加入以下几行:

##This turns on NVidia’s TwinView
Option “TwinView”
##Here I’m setting the resolution to the individual monitors.
Option “MetaModes” “1280×1024 1280×1024″

设置终于完成了!再次重启X,你就能使用双屏显示了。如果你想改变显示的方向,在“Screen”下输入:

Option “TwinViewOrientation” “LeftOf”

“LeftOf”为左端对齐,此外还可以选择RightOf,Below,Above或者Clone}

我安装上面的方法做,结果失败。

先来说说我的配置。CPU:PD915
内存:2G
显卡:艾尔莎7300LE。
显示器:三星740N
ubuntu 7.04系统。

等待好心人帮助。


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-12-03 15:58 
头像

注册: 2007-07-06 15:40
帖子: 45
送出感谢: 0 次
接收感谢: 0 次
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen0" 0 0
Screen "Screen1" RightOf "Screen0"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
# Option "Xinerama" "on"
# Option "Clone" "off"
EndSection



Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Device"
Identifier "aticonfig-Device[0]"
Boardname "ati"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Busid "PCI:1:0:0"
Driver "fglrx"
Screen 0
EndSection

Section "Device"
Identifier "aticonfig-Device[1]"
Boardname "ati"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Busid "PCI:1:0:0"
Driver "fglrx"
Screen 1
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]"
VertRefresh 60.0 - 70.0
HorizSync 30 - 75
# 1024x768 @ 85.00 Hz (GTF) hsync: 68.60 kHz; pclk: 94.39 MHz
Modeline "1280x1024_70.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection


Section "Monitor"
Identifier "aticonfig-Monitor[1]"
VertRefresh 60.0 - 70.0
HorizSync 10 - 40
# 800x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 38.22 MHz
#Modeline "1280x1024_60.00" 38.22 800 832 912 1024 600 601 604 622 -HSync +Vsync
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection


Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection



Section "screen"##
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "LEN L171"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1792 1344
Modes "1280x1024@75" "1280x960@60" "1152x864@75" "1280x1024@60" "1024x768@60" "1280x960@75" "1024x768@70" "1400x1050@60" "1024x768@75" "1400x1050@75" "832x624@75" "1600x1200@65" "800x600@60" "1600x1200@60" "800x600@75" "1792x1344@60" "800x600@72" "800x600@56" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection

Section "serverLayout"#
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
screen 1 "screen1" rightof "Default Screen"
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
EndSection
Section "Module"
Load "glx"
Load "dbe"
Load "v4l"
EndSection
Section "Extensions"
Option "Composite" "0"
EndSection
Section "device" #
Identifier "device1"
Boardname "ati"
Busid "PCI:1:0:0"
Driver "ati"
Screen 1
EndSection
Section "screen" #
Identifier "screen1"
Device "device1"
Defaultdepth 24
Monitor "monitor1"
SubSection "Display"
Depth 24
Modes "1280x1024@60" "1280x960@75" "1280x960@60" "1400x1050@60" "1280x1024@75" "1400x1050@75" "1152x864@75" "1600x1200@65" "1024x768@60" "1600x1200@60" "1024x768@70" "1792x1344@60" "1024x768@75" "832x624@75" "800x600@60" "800x600@75" "800x600@72" "800x600@56" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection
Section "monitor" #
Identifier "monitor1"
Vendorname "Plug 'n' Play"
Modelname "Plug 'n' Play"
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
modeline "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
modeline "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1152x864@75" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
modeline "1280x1024@75" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
modeline "1280x960@75" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
modeline "1400x1050@60" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
modeline "1400x1050@75" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
modeline "1600x1200@65" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1600x1200@60" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
modeline "1792x1344@60" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
Gamma 1.0
EndSection
Section "ServerFlags"
Option "Xinerama" "true"
EndSection
Section "device" #
Identifier "device2"
Boardname "VESA driver (generic)"
Busid "PCI:1:0:1"
Driver "vesa"
Screen 0
EndSection
Section "screen" #
Identifier "screen2"
Device "device2"
Defaultdepth 24
Monitor "monitor2"
EndSection
Section "monitor" #
Identifier "monitor2"
Gamma 1.0
EndSection


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-12-03 16:01 
头像

注册: 2007-07-06 15:40
帖子: 45
送出感谢: 0 次
接收感谢: 0 次
二楼配置哪里有错误啊,这个是论坛上面的帖子,我安装上面的配置进行了修改,可是还是不行啊


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-12-03 16:10 
头像

注册: 2007-07-06 15:40
帖子: 45
送出感谢: 0 次
接收感谢: 0 次
第一步:装驱动,装好驱动的标准是进入x window之后屏幕上闪过一个巨大的nvidia logo。
具体怎么装我就不说啦,http://forum.ubuntu.org.cn/ 坛子里很多。
注意:如果你的双显示器配置好之后,内核有升级,则可能进不了x,这时候不要慌,将驱动重新装一遍即可,不必做任何额外改动。

第二步::安装nvidia设置工具 ,对于最近版本的ubuntu,很可能已经装好了,如果你确认装了则跳过此步,若为了保险起见还是执行一下。
代码:

sudo apt-get install nvidia-settings
sudo nvidia-glx-config enable


第三步::修改菜单配置文件
这步就是在系统工具菜单中多加了一个图标,如果你有了,也可以不加,直接进入第四步
代码:
sudo gedit /usr/share/applications/NVIDIA-Settings.desktop

就算是一个空文件没关系,在里边填上如下内容:
代码:
[Desktop Entry]
Name=NVIDIA Settings
Comment=NVIDIA Settings
Exec=nvidia-settings
Icon=
Terminal=false
Type=Application
Categories=Application;System;

如果不是空文件就将这些加进去即可

第四步:修改X配置文件:
代码:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak4mon
//产生一个xorg.conf的备份文件,便于恢复
sudo gedit /etc/X11/xorg.conf

在Device 段,加入如下内容:
代码:

Option "TwinView" "on"
Option "MetaModes" "1280x1024,1280x768"
Option "SecondMonitorHorizSync" "28-80"
Option "SecondMonitorVertRefresh" "43-60"
Option "TwinViewOrientation" "RightOf"


对于这个,是双显示器的设定啦
如果没有第一个选项"TwinView",则后面的全白搭
注意其中的metamodes ,要将其改为你的两个显示器的分辨率。如果你搞不清哪个在前没关系,如果之后显示不正常,进命令行模式去编辑/etc/X11/xorg.conf,将分辨率交换一下即可。
后面两个选项是设置副显示器的刷新率的。
最后一个是副显示器和主显示器的配合方式问题,还有几个参数可以选择:"LeftOf" "Above" "Below" "Clone",具体什么意思你也一看就明白吧?
然后保存关闭。

第五步:重新加载x,让配置生效
以下工作可以用直接重启计算机来代替(如果不嫌慢的话):
登出(注销)
代码:
按alt + ctrl + f1 ,切换文本工作区
执行
代码:
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm start

重启了x window


文章不错,可是还是少东西啊。


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-08-23 5:28 

注册: 2007-07-22 2:34
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
我本来用glx再nvdia-sttings就搞定了双屏显示
但是最近有点烦,因为我换了新的官方驱动之后
nvidia settings里面把我两个三星19寸认作1个19,一个CRT,而且后者你enable了成twinview也罢,分辨率只有640*480,彻底晕倒,求教


附件:
Screenshot-NVIDIA X Server Settings-1.png
Screenshot-NVIDIA X Server Settings-1.png [ 100.54 KiB | 被浏览 2966 次 ]

Screenshot-NVIDIA X Server Settings.png
Screenshot-NVIDIA X Server Settings.png [ 114.75 KiB | 被浏览 2953 次 ]

页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Sogou [Spider] 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译