ATI双头显卡+双显示器实现Big Desktop效果
时间:2006-09-11 来源:iorifreedom
首先,所谓BigDesktop效果,则是win32环境中的桌面扩展效果。两个显示器可以显示不同内容,而且之间的窗口可以随意相互拖拽。一直由于找不 到Debian下如果实现“桌面扩展”效果而苦恼,最终在yangtse的指点下终于配好了双显示器的BigDesktop
一、与windows"桌面扩展"的区别
windows桌面扩展设置方便,调整方便,但是两个桌面,只有主桌面才能享受到3D加速的功能,另外一个桌面无法流畅的显示3D效果。而BigDesktop则可以两个桌面都起用3D加速,获得更好的效果和性能(当然也可以只起用其中一个桌面)
二、如何设置
1、安装ATI显卡驱动
一、与windows"桌面扩展"的区别
windows桌面扩展设置方便,调整方便,但是两个桌面,只有主桌面才能享受到3D加速的功能,另外一个桌面无法流畅的显示3D效果。而BigDesktop则可以两个桌面都起用3D加速,获得更好的效果和性能(当然也可以只起用其中一个桌面)
二、如何设置
1、安装ATI显卡驱动
代码:
完成以上的驱动安装过程以后,最好是退出X环境,用root用户运行如下命令
以下内容来源于yangtse的blog:2、ATI双头显卡设置
http://blog.chinaunix.net/u/15923/showart.php?id=120863
1 下载必需的编译工具
# apt-get install build-essential
2 下载内核头文件
# apt-get install linux-headers-$(uname -r)
3 下载fglrx驱动和内核模块源文件
# apt-get install fglrx-driver fglrx-kernel-src
二 编译内核模块
1 解压fglrx内核模块源文件
# cd /usr/src
# tar xvf fglrx*
2 编译内核模块
# cd modules/fglrx/
# ./make.sh
3 安装内核模块
# mkdir /lib/modules/$(uname -r)/misc
# cp fglrx.ko /lib/modules/$(uname -r)/misc/
# depmod -ae
三 配置显卡
# aticonfig --initial
# aticonfig --ovt=Xv
驱动选择fglrx,别的默认
四 查看驱动是否正常加载
1 Ctrl+Alt+Backspace重启X,登录
2 查看$ fglrxinfo输出,是否含有“ATI Technologies Inc.”有即3D加速已打开。
完成以上的驱动安装过程以后,最好是退出X环境,用root用户运行如下命令
代码:
以上部分命令的参数需要根据你的硬件情况进行更改:
1、其中最重要的是--resolution=0,2560x1024,1280x1024,1024x768参数。后面三项分辨率数值,例子中第一个 (2560x1024)是自己计算出来的,因为我的显示器是两个17寸LCD,正常分辨率是1280x1024,但是现在我们要的是 BigDesktop,即把两个显示器拼接成一个大桌面,我的显示器是横向摆放的,那么则是(1280x2)x1024这么计算出来的,如果你的显示器分 辨率不一样,则需要自己计算一下
2、显示器的摆放因素
显示器摆放的位置也影响到参数的设置,以上命令参数中的--dtop=horizontal,reverse --overlay-on=1则是设置附显示器在主显示器的左边(我是这样放着的),如果你的显示器摆放与我相反,那么则应该是--dtop= horizontal --overlay-on=1,去掉reverse即可。当然还有把两个显示器“堆”起来放的(一个在上,一个在下),那么参数变成--dtop= vertical或者--dtop=vertical,reverse --overlay-on=1
上面这些都设置好,并且成功执行以后,请重新起动你的电脑(不是重启X)。如果你看到两个显示器的内容还是一模一样(Fglrx称之Clone模式),那 么请在桌面分辨率设置中,选中你先前加进去的那个“怪异”的分辨率,我的是(2560x1024),怎么样,两个显示器显示同一个桌面了吧?开始 Enjoy吧!
下面是我的xorg.conf内容:
aticonfig --initial=dual-head --screen-layout=right注意!:
aticonfig --dtop=horizontal,reverse --overlay-on=1
aticonfig --resolution=0,2650x1024,1280x1024,1024x768
以上部分命令的参数需要根据你的硬件情况进行更改:
1、其中最重要的是--resolution=0,2560x1024,1280x1024,1024x768参数。后面三项分辨率数值,例子中第一个 (2560x1024)是自己计算出来的,因为我的显示器是两个17寸LCD,正常分辨率是1280x1024,但是现在我们要的是 BigDesktop,即把两个显示器拼接成一个大桌面,我的显示器是横向摆放的,那么则是(1280x2)x1024这么计算出来的,如果你的显示器分 辨率不一样,则需要自己计算一下
2、显示器的摆放因素
显示器摆放的位置也影响到参数的设置,以上命令参数中的--dtop=horizontal,reverse --overlay-on=1则是设置附显示器在主显示器的左边(我是这样放着的),如果你的显示器摆放与我相反,那么则应该是--dtop= horizontal --overlay-on=1,去掉reverse即可。当然还有把两个显示器“堆”起来放的(一个在上,一个在下),那么参数变成--dtop= vertical或者--dtop=vertical,reverse --overlay-on=1
上面这些都设置好,并且成功执行以后,请重新起动你的电脑(不是重启X)。如果你看到两个显示器的内容还是一模一样(Fglrx称之Clone模式),那 么请在桌面分辨率设置中,选中你先前加进去的那个“怪异”的分辨率,我的是(2560x1024),怎么样,两个显示器显示同一个桌面了吧?开始 Enjoy吧!
下面是我的xorg.conf内容:
PHP 代码:
# /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
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "Files"
# path to defoma fonts
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/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 "Emulate3Buttons" "true"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 28.0 - 64.0
VertRefresh 43.0 - 60.0
Option "DPMS"
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 "ATI Technologies, Inc. RV370 5B60 [Radeon X300 (PCIE)]"
Driver "ati"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "DesktopSetup" "horizontal,reverse"
Option "OverlayOnCRTC2" "1"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. RV370 5B60 [Radeon X300 (PCIE)]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
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
Modes "2560x1024" "1280x1024" "1024x768"
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
参考内容连接:
#
# 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
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "Files"
# path to defoma fonts
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/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 "Emulate3Buttons" "true"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 28.0 - 64.0
VertRefresh 43.0 - 60.0
Option "DPMS"
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 "ATI Technologies, Inc. RV370 5B60 [Radeon X300 (PCIE)]"
Driver "ati"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "DesktopSetup" "horizontal,reverse"
Option "OverlayOnCRTC2" "1"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies, Inc. RV370 5B60 [Radeon X300 (PCIE)]"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
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
Modes "2560x1024" "1280x1024" "1024x768"
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
参考内容连接:
代码:
在debian/sid里面安装ATI显卡的fglrx驱动 - 草字头
J!NX Forums - Slackware 10.2 - ATI Big desktop wont Work
Configure Ati 9700 dual monitor (Big Desktop) - Ubuntu Forums
相关阅读 更多 +