LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 10650|回复: 19

ATI双头显卡+双显示器实现Big Desktop效果

[复制链接]
发表于 2006-9-10 19:04:12 | 显示全部楼层 |阅读模式
首先,所谓BigDesktop效果,则是win32环境中的桌面扩展效果。两个显示器可以显示不同内容,而且之间的窗口可以随意相互拖拽。一直由于找不到Debian下如果实现“桌面扩展”效果而苦恼,最终在yangtse的指点下终于配好了双显示器的BigDesktop
    一、与windows"桌面扩展"的区别
    windows桌面扩展设置方便,调整方便,但是两个桌面,只有主桌面才能享受到3D加速的功能,另外一个桌面无法流畅的显示3D效果。而BigDesktop则可以两个桌面都起用3D加速,获得更好的效果和性能(当然也可以只起用其中一个桌面)
   二、如何设置
    1、安装ATI显卡驱动


  1. 以下内容来源于yangtse的blog:
  2. [url=http://blog.chinaunix.net/u/15923/showart.php?id=120863]http://blog.chinaunix.net/u/15923/showart.php?id=120863[/url]

  3. 1 下载必需的编译工具
  4. # apt-get install build-essential
  5. 2 下载内核头文件
  6. # apt-get install linux-headers-$(uname -r)
  7. 3 下载fglrx驱动和内核模块源文件
  8. # apt-get install fglrx-driver fglrx-kernel-src
  9. 二 编译内核模块
  10. 1 解压fglrx内核模块源文件
  11. # cd /usr/src
  12. # tar xvf fglrx*
  13. 2 编译内核模块
  14. # cd modules/fglrx/
  15. # ./make.sh
  16. 3 安装内核模块
  17. # mkdir /lib/modules/$(uname -r)/misc
  18. # cp fglrx.ko /lib/modules/$(uname -r)/misc/
  19. # depmod -ae
  20. 三 配置显卡
  21. # aticonfig --initial
  22. # aticonfig --ovt=Xv
  23. 驱动选择fglrx,别的默认
  24. 四 查看驱动是否正常加载
  25. 1 Ctrl+Alt+Backspace重启X,登录
  26. 2 查看$ fglrxinfo输出,是否含有“ATI Technologies Inc.”有即3D加速已打开。
复制代码

    2、ATI双头显卡设置
    完成以上的驱动安装过程以后,最好是退出X环境,用root用户运行如下命令

  1. aticonfig --initial=dual-head --screen-layout=right
  2. aticonfig --dtop=horizontal,reverse --overlay-on=1
  3. aticonfig --resolution=0,2650x1024,1280x1024,1024x768
复制代码

[color="Red"]注意!:
    以上部分命令的参数需要根据你的硬件情况进行更改:

    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吧!
  [color="Blue"] 下面是我的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            "rotocol" "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       "CI:1:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]"
        Driver      "fglrx"
        Option            "DesktopSetup" "horizontal,reverse"
        Option            "OverlayOnCRTC2" "1"
        BusID       "CI:1:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[1]"
        Driver      "fglrx"
        BusID       "CI: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

[/PHP]
   
参考内容连接:

  1. [url=http://blog.chinaunix.net/u/15923/showart.php?id=120863]在debian/sid里面安装ATI显卡的fglrx驱动 - 草字头[/url]
  2. [url=http://www.jinx.com/forum/topic.asp?TOPIC_ID=52872]J!NX Forums - Slackware 10.2 - ATI Big desktop wont Work[/url]
  3. [url=http://www.ubuntuforums.org/showthread.php?t=134624]Configure Ati 9700 dual monitor (Big Desktop) - Ubuntu Forums[/url]
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-9-10 20:35:09 | 显示全部楼层
好贴一定要支持.
回复 支持 反对

使用道具 举报

发表于 2006-9-11 09:06:45 | 显示全部楼层
我是笔记本。
在单位用双显,回家用笔记本的屏幕。

这是我的配置,好像不是big模式,楼主看看这两个方式有何不同吗?

谢谢了!

[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
        Screen         "aticonfig-Screen[1]" RightOf "aticonfig-Screen[0]"
        InputDevice    "Generic Keyboard"
        InputDevice    "Configured Mouse"
        InputDevice    "Synaptics Touchpad"
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"
        FontPath     "/usr/X11R6/lib/X11/fonts/local"
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            "rotocol" "ExplorerPS/2"
        #Option            "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
        Identifier  "Synaptics Touchpad"
        Driver      "synaptics"
        Option            "SendCoreEvents" "true"
        Option            "Device" "/dev/psaux"
        Option            "rotocol" "auto-dev"
        Option            "HorizScrollDelta" "1"
        Option            "SHMconfig" "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. ATI Default Card"
        Driver      "vesa"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]"
        Driver      "fglrx"
        BusID       "CI:1:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[1]"
        Driver      "fglrx"
        BusID       "CI:1:0:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "Default Screen"
        Device     "ATI Technologies, Inc. ATI Default Card"
        Monitor    "Generic Monitor"
        DefaultDepth     24
        SubSection "Display"
                Depth     1
                Modes    "1280x800"
        EndSubSection
        SubSection "Display"
                Depth     4
                Modes    "1280x800"
        EndSubSection
        SubSection "Display"
                Depth     8
                Modes    "1280x800"
        EndSubSection
        SubSection "Display"
                Depth     15
                Modes    "1280x800"
        EndSubSection
        SubSection "Display"
                Depth     16
                Modes    "1280x800"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes    "1280x800"
        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


[/php]
回复 支持 反对

使用道具 举报

发表于 2006-9-11 10:00:00 | 显示全部楼层
天呀, 有没有个简单的设置方法呀,我发现大家用的都是xorg,我的还是xfree86呀,还有谁知道nvidia的显卡如何设置呀。
不过蛮像xgl技术的,双显示器上。呵呵
回复 支持 反对

使用道具 举报

发表于 2006-9-11 10:40:12 | 显示全部楼层
很牛,佩服,虽然没有机会一试,但方法可以学习!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-11 11:14:26 | 显示全部楼层
[QUOTE=超级用户]
我是笔记本。
在单位用双显,回家用笔记本的屏幕。

这是我的配置,好像不是big模式,楼主看看这两个方式有何不同吗?

谢谢了!
QUOTE]

我在调试过程中也遇到过这种情况,两个桌面是不相同,鼠标可以在桌面前随意移动,但是窗口并不能互相拖拽,而且其中一个桌面还不能享受3D,是不是我说的这个样子?这个并不是BigDesktop,不方便。
建议你把原始的xorg.conf恢复过来,然后按照上面的三个命令执行一下,让aticonfig自己去配置你的xorg.conf比较稳妥,每个命令执行之后不要启动x,执行完了再重新启动电脑(非x)。
如果只是要启动双屏,不需要BigDesktop,只要执行第一个命令就可以了
回复 支持 反对

使用道具 举报

发表于 2006-9-11 12:53:03 | 显示全部楼层
如果是在一个显示器里面实现大桌面,fvwm就可以的。
回复 支持 反对

使用道具 举报

发表于 2006-9-11 13:14:18 | 显示全部楼层
Post by dance_linux


我在调试过程中也遇到过这种情况,两个桌面是不相同,鼠标可以在桌面前随意移动,但是窗口并不能互相拖拽,而且其中一个桌面还不能享受3D,是不是我说的这个样子?这个并不是BigDesktop,不方便。
建议你把原始的xorg.conf恢复过来,然后按照上面的三个命令执行一下,让aticonfig自己去配置你的xorg.conf比较稳妥,每个命令执行之后不要启动x,执行完了再重新启动电脑(非x)。
如果只是要启动双屏,不需要BigDesktop,只要执行第一个命令就可以了


感谢回复!
恩,是有这个问题。我试试看,如果有什么问题再请教!谢谢!
回复 支持 反对

使用道具 举报

发表于 2006-9-11 14:12:56 | 显示全部楼层

show一个 + 一个严重问题

没错,非常好!BIG Desttop模式很爽。

但是有一个严重的问题,如果你下次启动没有插外置显示器,那么KDE将无法正常启动……

以前我的那种模式,在没有接外置显示器时会自动关闭dual模式,aticonfig --set-powerstate 1 可以进省电模式。

这样,我在公司用dual,在家什么也不用改就是sinal模式。

唉……进退两难啊。

其实这两种显示模式各有利弊,看你怎么选择了。
回复 支持 反对

使用道具 举报

发表于 2006-9-11 14:15:23 | 显示全部楼层
where is my picture?

HERE

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表