请问ubuntu 下如何设置双头显示器?

CPU/显卡/打印机/USB设备等硬件问题
回复
passun
帖子: 72
注册时间: 2006-06-07 11:27

请问ubuntu 下如何设置双头显示器?

#1

帖子 passun » 2006-08-19 19:18

如同windows下实现双头显示一样的功能,我的是一个笔记本,想另外接一个显示器,如何能实现如同WINDOWS下的双头功能???
passun
帖子: 72
注册时间: 2006-06-07 11:27

#2

帖子 passun » 2006-08-19 22:45

根据网上的一些相关帖子(给予Xf86下)试着设置了一下成功,
我的是个HP 2202AP的笨笨,ATI显卡,安装好ATI驱动(驱动的安装方法在WIKI里有),实现的是两个桌面。如何使两个显示器实现一个桌面还没有尝试,有兴趣的朋友可以试试。
以下是/etc/X11/xorg.conf配置

# /etc/X11/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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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 "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
Screen 1 "aticonfig-Screen[1]" RightOf "aticonfig-Screen[0]"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
InputDevice "Synaptics Touchpad"
EndSection

Section "Files"

# path to defoma fonts
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

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

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

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[1]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
BusID "PCI:1:5:0"
EndSection

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

Section "Screen"
Identifier "Screen 0"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen 1"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
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
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection
头像
choukuangjay
帖子: 274
注册时间: 2006-01-17 14:39
来自: Nanking
联系:

#3

帖子 choukuangjay » 2006-08-20 15:54

筆電的話鍵盤上有個視屏輸出的按鍵的。不需要改X這些的。應該是硬件實現的,因為在進系統之前就能切換的
ID:死乘把口, Matrix Chou
寨本网 山寨笔记本大本营
passun
帖子: 72
注册时间: 2006-06-07 11:27

#4

帖子 passun » 2006-08-20 16:22

恩,上面是有一个屏幕输出键,我的是FN+F4 试了一下不起作用,不知道是不是笔记本的不同,设置后的一个区别就是在“系统”->“首选项”—>“屏幕分辨率”设置选项里可以看到两个显示器的屏幕设置了,以前只有一个。 :-)
ghqxx
帖子: 23
注册时间: 2006-08-19 14:04

hehe

#5

帖子 ghqxx » 2006-08-21 8:48

我用的是nvidia 显卡,双头显示的确是硬件实现的功能,但是软件也有关系的。
我在控制台下,笔记本和外接显示器都能显示,但是一旦进入X界面,就只有一个可以显示了,nvidia可以自动探测外接显示,要在X下双头显示需要修改xorg.conf文件。nvidia的很简单,开启几个选项就可以了,可以分屏,也可以克隆,可惜的就是我还没发现能帮我们开启这个功能的软件,曾经找到一个软件nvoption,但是它是基于gtk1,在我的linux系统下不能正常运行,而且我发现它没人好好的维护,所以后来一直没有再用过。至于ATI,应该也是要修改xorg.conf吧
头像
Beetle
帖子: 1637
注册时间: 2005-10-14 16:55
系统: OS X
来自: 江苏
联系:

#6

帖子 Beetle » 2006-08-21 16:03

要看LZ用什么输入?偶试过S端子接TV,花屏……
passun
帖子: 72
注册时间: 2006-06-07 11:27

#7

帖子 passun » 2006-08-25 10:31

哈哈,今天发现安装完ATI显卡驱动有个工具可以方便的配置xorg.conf文件。
aticonfig
aticonfig --initial=dual-head --screen-layout=第二显示器位置

--screen-layout={left|right|above|below}
方便简洁!
:lol:
ohjust
帖子: 19
注册时间: 2007-01-10 23:25

#8

帖子 ohjust » 2007-09-13 20:33

是呀。S端子怎么使用呢。以前在XP很方便的。
回复