免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2020 | 回复: 0
打印 上一主题 下一主题

OpenSolaris 5/08环境中ATI Radeon/HD系列显卡设置以及双显配置方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-02 13:18 |只看该作者 |倒序浏览

       
       
       
       
       
       
硬件组成:七彩虹ATI
x1650显卡,VGA口连17”CRT,DVI口连19”LCD
实现目的:同时使用两台显示器并根据不同显示器的最佳分辨/刷新率扩展显示Xwindow
OpenSolaris项目使用了Xserver
1.3,针对ATI显卡的配置可以采用RandR动态配置和编辑xorg.conf静态文本两种方式。
首先介绍RandR动态配置方式,RandR的英文含义是(The
X Resize, Rotate and Reflect Extension, called RandR for
short),其对应的命令是xrandr,在终端中可以输入xrandr
-h命令或man xrandr可以详细了解xrandr的用法。
参考网址为http://gitweb.freedesktop.org/?p=xorg/proto/randrproto.git;f=randrproto.txt;a=blob

在openSolaris中安装的是RandR
v1.2其支持的显卡驱动如下:
  • the Intel
            driver on all boards (since 1.9.91),
           
           
  • the NV driver
            on G80 boards (since 2.0.95),
           
           
  • the ATI
            driver on r200/r300/r400/r500/r600 boards (since 6.7.191) where
            RandR 1.2 replaces MergedFB,
           
           
  • the MGA driver on all boards
            (since 1.9.99) the RadeonHD driver on r500/r600 boards (since 1.1)

在终端中输入xrandr
-q命令可以看到系统中显示设备的基本配置,如:
Screen 0: minimum
320 x 200, current 2560 x 1024, maximum 2560 x 1024
DVI-I_1/analog
connected 1280x1024+0+0 0mm x 0mm
   1280x1024_60.00
  60.0*+
   1024x768      
60.0  
   800x600      
60.3  
   640x480      
59.9  
VGA_1 connected
1280x1024+1280+0 1mm x 257mm
   1280x1024_60.00
  60.0*+
   1280x1024     
59.9  
   1024x768      
84.9     75.1     70.1     60.0  
   1024x768_85.00
85.0  
   832x624      
74.6  
   800x600      
84.7     72.2     75.0     60.3     56.2  
   640x480      
84.4     75.0     72.8     66.7     60.0  
   720x400      
87.8     70.1  
TV_SVIDEO
disconnected
DVI-I_1/digital
disconnected
以上是已经配置完成的显示,我们可以看到系统只使用了一个Screen且编号为0、当前虚拟桌面和最大虚拟桌面的分辨率均为2560x1024;显示器接口分别是VGA_1、DVI-I_1、TV_SVIDEO,DVI-I_1又分别对应了analog和digital两个接口,其实这块显卡配有一个VGA接口、一个S端子接口和一个DVI接口,而CRT和LCD显示器都使用的是VGA接口,且在LCD上使用了DVI-TO-VGA的转换接口,所以在以上回显中可以看到只有VGA_1和DVI-I_1/analog连接了显示器,并且连接的这两个显示器的显示模式均为1280x1024_60。需要强调的是VGA_1和DVI-I_1/analog都是显示设备接口的名称,不可以省略掉DVI-I_1后面的/analog字符。
在为系统安装了新的即插即用显示器后不必重新启动X了,可以直接用xrandr
  --auto命令检测并启动新装的显示器。
当不想使用CRT显示器时,可以使用xrandr
--output  VGA_1   --off来关闭CRT。
可以用xrandr
--output  VGA_1   --auto来开启CRT
并用xrandr
--output  VGA_1   --mode 1024x768   --rate  75来为CRT设置显示模式和刷新率
当同时开启了CRT和LCD,并设置了合适的显示模式后(此时两个显示器显示的内容是同步的),可以使用xrandr
--output  VGA_1   --right-of  DVI-I_1/analog
将CRT布置在LCD的右边显示,这样Screen0可以扩展显示在这两个显示器上。
在以上的配置环境中出现过一个问题,那就是RandR在自动检测19”LCD显示器时提示的最大显示模式为1024x768分辨率及60Hz刷新率,并不能发挥19”LCD显示器1280x1024
60Hz的最佳显示效果。
需要先勇用gtf
命令创建相应模式的参数表,如下:
$ gtf  1280  1024
60
#  1280x1024 @
60.00 Hz  (GTF)  hsync: 63.60  kHz;  pclk:  108.88 MHz
Modeline
“1280x1024_60.00”   108.88  1280  1360  1496  1712  1024  1025
1028  1060  -Hsync  +Vsync
再使用--newmode参数增加该模式,如:
$ xrandr  
--newmode   “1280x1024_60.00”   108.88  1280  1360  1496  1712
1024  1025  1028  1060  -Hsync  +Vsync
然后再用--addmode参数为指定的接口增加显示模式,如:
$ xrandr  
--addmode   DVI-I_1/analog   1280x1024_60.00
再如:
$ xrandr  --output
DVI-I_1/ananlog  --mode  1280x1024_60.00
就可以将19“LCD的模式配置好了。
下面再来介绍静态xorg.conf文件配置方法
本机的显卡型号为x1650,对应的芯片为R535,虽然radeon驱动可以支持r535,但是出于性能的考虑还是选用了radeonhd驱动,理由是“The
radeonhd driver, or xf86-video-radeonhd is an X.org
video driver for R500 and newer ATI graphics devices.”。
以下是radeonhd驱动支持的ATI显卡芯片:
RADEONHD: X driver for the following
AMD GPG (ATI) graphics devices:
        RV505 : Radeon X1550, X1550 64bit.
        RV515 : Radeon X1300, X1550, X1600;
FireGL V3300, V3350.
        RV516 : Radeon X1300, X1550, X1550
64-bit, X1600; FireMV 2250.
        R520  : Radeon X1800; FireGL V5300,
V7200, V7300, V7350.
        RV530 : Radeon X1300 XT, X1600, X1600
Pro, X1650; FireGL V3400, V5200.
        RV535 : Radeon X1300, X1650.
        RV550 : Radeon X2300 HD.
        RV560 : Radeon X1650.
        RV570 : Radeon X1950, X1950 GT; FireGL
V7400.
        R580  : Radeon X1900, X1950; AMD
Stream Processor.
        R600  : Radeon HD 2900 GT/Pro/XT;
FireGL V7600/V8600/V8650.
        RV610 : Radeon HD 2350, HD 2400
Pro/XT, HD 2400 Pro AGP; FireGL V4000.
        RV630 : Radeon HD 2600 LE/Pro/XT, HD
2600 Pro/XT AGP; Gemini RV630;
                FireGL V3600/V5600.
        RV670 : Radeon HD 3850, HD 3870,
FireGL V7700.
        M52   : Mobility Radeon X1300.
        M54   : Mobility Radeon X1400; M54-GL.
        M56   : Mobility Radeon X1600;
Mobility FireGL V5200.
        M58   : Mobility Radeon X1800, X1800
XT; Mobility FireGL V7100, V7200.
        M62   : Mobility Radeon X1350.
        M64   : Mobility Radeon X1450, X2300.
        M66   : Mobility Radeon X1700, X1700
XT; FireGL V5250.
        M68   : Mobility Radeon X1900.
        M71   : Mobility Radeon HD 2300.
        M72   : Mobility Radeon HD 2400;
Radeon E2400.
        M74   : Mobility Radeon HD 2400 XT.
        M76   : Mobility Radeon HD 2600
                (Gemini ATI) Mobility Radeon HD 2600
XT.
        RS600 : Radeon Xpress 1200, Xpress
1250.
        RS690 : Radeon
X1200, X1250, X1270.
以下是针对本次硬件配置的详细xorg.conf文件:
Section
"ServerLayout"
        Identifier   
"X.org Configured"
        Screen         0
"Screen0"
        InputDevice   
"Mouse0" "CorePointer"
        InputDevice   
"Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
        RgbPath     
"/usr/X11/lib/X11/rgb"
        ModulePath  
"/usr/X11/lib/modules/amd64"
        FontPath   
"/usr/X11/lib/X11/fonts/TrueType/"
        FontPath   
"/usr/X11/lib/X11/fonts/Type1/"
        FontPath   
"/usr/X11/lib/X11/fonts/Type1/sun/"
        FontPath   
"/usr/X11/lib/X11/fonts/F3bitmaps/"
        FontPath   
"/usr/X11/lib/X11/fonts/misc/"
        FontPath   
"/usr/X11/lib/X11/fonts/100dpi/"
        FontPath   
"/usr/X11/lib/X11/fonts/75dpi/"
EndSection
Section "Module"
        Load  "IA"
        Load  "dbe"
        Load  "extmod"
        Load  "record"
        Load  "xtrap"
        Load  "GLcore"
        Load  "glx"
        Load  "dri"
        Load  "xtsol"
        Load  "freetype"
EndSection
Section
"InputDevice"
        Identifier
"Keyboard0"
        Driver      "kbd"
        Option          
"XkbRules" "xorg"
        Option          
"XkbModel" "pc104"
        Option          
"XkbLayout" "us"
EndSection
Section
"InputDevice"
        Identifier
"Mouse0"
        Driver     
"mouse"   
        Option          
"Protocol" "Auto"
        Option          
"Device" "/dev/mouse"
        Option          
"ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
        Identifier  
"VGA"
        Option      
"RightOf" "DVI"
        Modeline   
"1024x768_85.00"  94.39  1024 1088 1200 1376  768 769 772
807  -HSync +Vsync
        Modeline   
"1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025
1028 1060  -HSync +Vsync
            Option      
"PreferredMode"  "1280x1024_60.00"
EndSection
Section "Monitor"
        Identifier   "TV"
        Option             
"Ignore" "true"
EndSection
Section "Monitor"
        Identifier  
"DVI"
            DisplaySize
304 228
            Modeline   
"1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025
1028 1060  -HSync +Vsync
            Option      
"PreferredMode"  "1280x1024_60.00"
#        Option      
"Position" "0 0"
EndSection
Section "Device"
        Identifier
"Card0"
        Driver     
"radeonhd"
        VendorName  "ATI
Technologies Inc"
        BoardName  
"RV535 [Radeon X1650 Series]"
        BusID      
"PCI:5:0:0"
        Option   
"monitor-VGA_1"          "VGA"
        Option   
"monitor-DVI-I_1/analog"         "DVI"
        Option   
"RROutputOrder"           "DVI-I_1/analog"
EndSection
Section "Screen"
        Identifier
"Screen0"
        Device   
"Card0"
        DefaultDepth   
24
        SubSection
"Display"
                Viewport   0 0
                Depth     24
                Virtual   2560
1024
        EndSubSection
EndSection
要点说明如下:
1、
Section "ServerLayout" 段只需配置一个Screen就可以了。
2、分别建立针对VGA和DVI接口的Section
"Monitor" ,并为对应的显示器设置相应的显示模式。
3、在Section
"Device" 段需要指定Driver
     "radeonhd" ,同时非常重要的是如下:
      Option     
"monitor-VGA_1"          "VGA"
      Option     
"monitor-DVI-I_1/analog"         "DVI"
      Option     
"RROutputOrder"           "DVI-I_1/analog"
4、在Section
"Screen" 段不用指定Monitor,但是需要设置虚拟桌面的大小
Virtual   2560 1024
以上是xorg.conf文件的一些说明,更多的内容可以参考如下网址:

http://wiki.debian.org/XStrikeForce/HowToRandR12


http://wiki.x.org/wiki/radeonhd

关于寬屏显示器的配置可以参考如下网址:

http://wiki.x.org/wiki/radeon

      
在配置xorg.conf的过程中很重要的一个经验是注意查看和分析/var/log/Xorg.0.log文件,该文件可以提供非常丰富和详细的信息。
        
以上是本人对配置显卡过程的一个总结,目前还算新手,如有错误和不足还望大家指教!
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/70678/showart_723792.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP