免费注册 查看新帖 |

Chinaunix

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

SUN工作站显示部分系统管理初步 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-05-25 13:38 |只看该作者 |倒序浏览
SUN工作站显示部分系统管理初步
一 前言
如果阅读SUN的英文资料看到frame buffers,就是SUN工作站的显示卡,相当于微机上的graphic card或video card。UPA是Ultral Port ArchitectureD的缩写,是从ULTRA系列工作站开始使用的一种总线接口,现在高端的显卡多为这种接口,另外就是PCI接口的,以前是S-BUS的接口类型。有些工作站的显示卡不是插在扩展槽中,而是固化在主板上的。
SUN工作站的显示卡设置起来有些麻烦,不同型号的显示卡使用不同的命令,这些命令在安装显示卡硬件之后,需要安装相应的软件及补丁程序才能使用。详细的情况可以参照随机的显示卡安装手册,上面都有很详细的硬件和软件安装过程。
本文只介绍一些和SUN显示卡相关的初步知识,如更改分辨率和多屏设置等,更多的如liner 、gamma设置可以参阅相应的资料。本文的介绍的命令和文件,如果不特别说明,都是在solaris2.6上的。其中%开始的命令是普通用户可以执行的,#开始的是命令超级用户使用。
二 SUN显示卡分类(部分)
1. cgsix   包括GX, GX+, TGX 和 TGX+
2. cg14   包括SX和 spam
3. le0   包括ZX和TZX
4.ffb    包括Creator和Creator 3D系列
5.PGX  基于ATI Rage II芯片,用于Ultra5和Ultra10,主板固化。
6.PGX24 基于ATI Rage Pro chipset,用于Ultra5和Ultra10。
7.PGX32和PGX64   PCI插槽的显示卡。
8.AFB系列  用于高端的Elite 3D系列。
三 显示卡软硬件的安装和删除
硬件安装参阅安装手册,选择正确的插槽进行安装,然后 boot –r,启动机器。先查看软件是否安装,例如对于PGX64系列显示卡:
#/usr/bin/pkginfo | grep m64
SUNWm64 M64 System Software (Device Driver)
SUNWm64cf M64 Graphics Configuration Software
SUNWm64w M64 Window System Support
SUNWm64x M64 Graphics System Software/Device Driver (64-bit)
SUNWm64xr M64XR System Software (Device Driver Config.)
如果没有显示,就需要按安装手册上的步骤安装相应的软件,同时安装和本机操作系统版本号相对应的补丁程序。
删除软件:
# /usr/sbin/pkgrm SUNWm64 SUNWm64cf SUNWm64w SUNWm64x SUNWm64xr
对于Creator系列显示卡:其软件如下
#/usr/bin/pkginfo | grep ffb
system      SUNWffb        Creator Graphics (FFB) System Software (Device Driver)
application SUNWffbcf      Creator Graphics (FFB) Configuration Software
application SUNWffbw       Creator Graphics (FFB) Window System Support
application SUNWffbxg      Creator Graphics (FFB) XGL Supp

三 显示已经安装的显示卡:
%/usr/platform/sun4u/sbin/prtdiag –v
以下分别是3台工作站的输出,文中只列出了和显示卡相关的部分(其中的sun4u用uname –m命令得到):
450E(单显示卡)
     Bus   Freq
Brd  Type  MHz   Slot  Name                              Model
---  ----  ----  ----  --------------------------------  ----------------------
SYS   UPA    99     2   FFB, Double Buffered              SUNW,501-4173         

ULTRA80(双显示卡)
     Bus   Freq
Brd  Type  MHz   Slot  Name                              Model
---  ----  ----  ----  --------------------------------  ----------------------
0   UPA   113    29   FFB, Double Buffered              SUNW,501-4788         
0   UPA   113    30   FFB, Double Buffered              SUNW,501-4788         

ultra2 –300(双显示卡)
   Bus   Freq
Brd  Type  MHz   Slot  Name                              Model
---  ----  ----  ----  --------------------------------  ----------------------
0   SBus   25     1   cgsix                             SUNW,501-2325         
0   UPA    99    30   FFB, Double Buffered              SUNW,501-4173     
  %sysdef  (另外一条命令,该命令输出很长,本文只列出和显示卡相关部分)
450E(单显示卡)的输出
SUNW,ffb, instance #0
ULTRA80(双显示卡):
SUNW,ffb, instance #0
SUNW,ffb, instance #1
ultra2–300(双显示卡):
cgsix, instance #0
SUNW,ffb, instance #0
另外/usr/sbin/prtconf –vp和/usr/sbin/dmesg命令的输出中也包含有显示卡的信息。
关于以上3条命令的详细说明可以参阅其man手册。
四SUN的部分显示卡及其部件号对照表(参考数据,未经SUN验证)

TGX(老式)501-2325
TGX(新式)501-2922
TGX+老式)501-2253
TGX+(新式)501-2955
ZX501-1845
Creator Series 1501-2634
Creator Series 1 Server compatible501-4127
Creator 3D Series 1501-2633
Creator 3D Series 1 Server compatible501-4126
Creator 3D Series 1   75 MHz501-3129
Creator Series 2, 501-4174
Creator 3D Series 2501-4173   501-4172
Creator Series 3501-4789
Creator 3D Series 3 501-4790    501-4788

更多的信息可以查阅:http://www.sunstuff.org/hardware/partnumbers/framebuffers.shtml
http://www.tame.com/database/suninst.txt
五 改变显示分辨率和刷新频率(命令行方式)
1.Creator和Creator 3D系列
#/usr/sbin/ffbconfig -res 1600x1200x75
把分辨率改为1600X1200。刷新频率为75HZ。
临时改变:
#/usr/sbin/ffbconfig -res 1600x1200x75 try
可以有5秒钟的确认时间,按 y 确认。
查看当前显示卡和显示器所支持的分辨率:
   # ffbconfig -res \?
也可以用
#ffbconfig –prconf
其输出如下:
--- Hardware Configuration for /dev/fbs/ffb0 ---
Type: double-buffered FFB2+ with Z-buffer
Board: rev 2 (Vertical)
PROM Information: @(#)ffb2p.fth 2.6 97/10/02
FBC: version 0x3241906d
DAC: Brooktree 9070, version 1 (Pac2)
3DRAM: Mitsubishi 130a, version 1
EDID Data: Available - EDID version 1 revision 2
Monitor Sense ID: 2  (Sun 40x30cm RGB color monitor)
Monitor possible resolutions: 1024x768x60, 1024x768x70, 1024x768x75,
        1152x900x66, 1152x900x76, 1280x1024x67, 1280x1024x76, 640x480x60
Current resolution setting: 1280x1024x76
或着查看第2块显示卡
#ffbconfig -dev /dev/fbs/ffb1 –prconf
上面输出中有一个Monitor Sense ID,其对照表如下:

CodeScreen Resolution
71152 900 at 66 Hz
61152 900 at 76 Hz
51024 768 at 60 Hz
41280 1024 at 67 Hz
31152 900 at 66 Hz
21280 1024 at 76 Hz
11152 900 at 66 Hz
01024 768 at 77Hz
如果使用了非SUN的显示器,CREATOR显示卡检测不到显示器类型,就把显示设置为1152X900 ,刷新频率为66HZ
2.PGX显示卡
PGX显示卡的命令是/usr/sbin/m64config
显示PGX的硬件信息命令:
#/usr/sbin/m64config -prconf
3.PGX32显示卡
该显示卡使用的命令是 GFXconfig
用法: #GFXconfig -i
# GFXconfig -res 1152x900x66 try -dev /dev/fbs/gfxp0
4.Elite3D系列显示卡
   该卡使用afbconfig命令,显示卡文件位置/dev/fbs/ifb0,其Monitor Sense Codes表和creatoe系列相同。
六 双屏幕设置
1.对于CDE用户需要更改
编辑/etc/dt/config/Xservers文件,加上下面的行(最后一行)
:0 Local local_uid@console root /usr/openwin/bin/X -dev /dev/fb0 -dev /dev/fb1
下面是两个Creator 3D卡的例子:
:0   Local local_uid@console root /usr/openwin/bin/Xsun :0 -dev /dev/fb0 -dev /dev/fb1
下面是一个Creator卡,两个Expert3D的例子:
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -dev /dev/fbs/ffb0
-dev /dev/fbs/ifb1 -dev /dev/fbs/ifb0 -nobanner
2.对于Openwin环境:
% /usr/oenwin/bin/openwin -dev dev1 -dev dev2

七设置缺省控制显示卡
如果只有一块显示卡,本身就是缺省的控制显示卡,不用设置,两个以上时需要设置。
下面是3个显示卡的情况下,设置PGX64为缺省控制显示卡。
先列出所有的显示卡
ok show-displays
a) /pci@1f,0/pci@5/TSI,gfxp@2
b) /pci@1f,0/pci@5/SUNW,m64B@1
c) /pci@1f,0/pci@5/SUNW,Expert3D-Lite@0
q) NO SELECTION
选择b既PGX64
Enter Selection, q to quit: b
/pci@1f,0/pci@5/SUNW,m64B@1 has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for /pci@1f,0/pci@5/SUNW,m64B@1
设置别名
ok nvalias mydev <Control-Y>; <ENTER>;
设置为缺省
ok setenv output-device mydev
保存设置
ok setenv use-nvramrc? true
复位使改变生效
ok reset
根据需要,连接正确的显示信号电缆。


论坛徽章:
0
2 [报告]
发表于 2002-05-26 23:09 |只看该作者

SUN工作站显示部分系统管理初步

老大,我有一台U5,用prtdiag -v提示找不到到总线之类的信息,使用正常,怎么回事?

论坛徽章:
0
3 [报告]
发表于 2002-05-26 23:26 |只看该作者

SUN工作站显示部分系统管理初步

我也不知道,U5没见过啥样。不过,上面的输出是我在PC上使用X-WIN32执行后直接粘进WORD里面的。

论坛徽章:
1
狮子座
日期:2013-09-02 12:10:41
4 [报告]
发表于 2002-05-27 01:31 |只看该作者

SUN工作站显示部分系统管理初步

我记得本机的显卡链接到/dev/fb0设备!不论什么显卡都是!

论坛徽章:
0
5 [报告]
发表于 2002-05-27 08:14 |只看该作者

SUN工作站显示部分系统管理初步

对头
/dev/fb0 ------->;/dev/fbs/fb0
第2块显卡
/dev/fb1 ------->;/dev/fbs/fb1

论坛徽章:
0
6 [报告]
发表于 2002-05-27 08:53 |只看该作者

SUN工作站显示部分系统管理初步

接着贴呀,race老大。
对于一般的系统,应该将/usr/dt/config/Xservers拷贝到/etc/dt/config/Xservers下再进行编辑。
另外新出的x3768用的应该是ffconfig 命令。

论坛徽章:
0
7 [报告]
发表于 2002-05-27 16:57 |只看该作者

SUN工作站显示部分系统管理初步

hi, I use a sun with soloris 7 installed in my work, I am not familiar with UNIX. now I don't know how to make man work. any cmd I typed as man **, for example &quot;man ls&quot;, I was told no man entry for ls. what should I do? any mistake in environment configuration?
my icq:58416912, hope U can help me. thanks a lot.

论坛徽章:
0
8 [报告]
发表于 2002-05-27 20:50 |只看该作者

SUN工作站显示部分系统管理初步

/usr/share/man 有这么目录吗?可能你的MAN没安装。
用 pkgchk -l -p /usr/bin/man 看看你INSTALL没有。下面是我的机器的输出:

pkgchk -l -p /usr/bin/man
Pathname: /usr/bin/man
Type: linked file
Source of link: ../../usr/bin/apropos
Referenced by the following packages:
        SUNWdoc        
Current status: installed
你到本论坛的最上面,搜索 MAN有关的主题,就知道怎么安装了。

if you do not know chinese,i must write in english. next time

论坛徽章:
0
9 [报告]
发表于 2002-06-26 15:30 |只看该作者

SUN工作站显示部分系统管理初步

Maybe your MANPATH is not right
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP