在X86,sparc 下的命令不同:
X86 用kdmconfig
sparc 用fbconfig
我的机子无法 在图形界面设置分辨率,所以就搜了一下,以下是sparc 机子上如何命令行里设置分辨率;
在Solaris下更改分辨率是比较麻烦的 但大概的步骤可以如下:
常用的命令有:
ffbconfig,fbconfig,m64config
确定系统显卡类型:
# cd /dev/fbs; ls –l
确定系统有多少块显卡
# fbconfig -list
Device-Filename Specific Config Program
————— ———————–
/dev/fbs/m640 SUNWm64_config
/dev/fbs/ifb0 SUNWifb_config
确定系统显卡支持的分辨率
# fbconfig -dev /dev/fbs/ifb0 -res /?
Valid values for -res option are:
NONE
1024x768x60
1024x768x70
1024x768x75
1024x768x77
1024x800x84 [1]
……………………
确定现显卡的分辨率
# fbconfig -dev /dev/fbs/ifb0 -prconf
— Hardware Configuration for /dev/fbs/ifb0 —
Type: Expert3D-Lite
PROM Information: @(#)ifblite.fth 1.14 00/10/23 SMI
EDID Data: Available – EDID version 1 revision 1
Monitor type: Sun P/N 365-1396 S/N 9925KW1260
Monitor possible resolutions: 1024x768x60, 1024x768x70, 1024x768x75,
1024x768x77, 1152x900x66, 1152x900x76, 640x480x60
Current resolution setting: 800x600x75
Slave Mode: Disabled
Video Memory Total: 33554432
Video Memory Used: 7782400
Texture Memory Total: 16777216
Texture Memory Used: 0
Display List Memory Total: 8388608
更改分辨率
bash-3.00# fbconfig -dev /dev/fbs/ifb0 -res 640x480x60
注:更改分辨率后不必要重启,只要重新 logout/login 就行了。
bash-3.00# fbconfig -dev /dev/fbs/ifb0 -prconf
— Hardware Configuration for /dev/fb/ifb0 —
Type: Expert3D-Lite
PROM Information: @(#)ifblite.fth 1.14 00/10/23 SMI
EDID Data: Available – EDID version 1 revision 1
Monitor type: Sun P/N 365-1396 S/N 9925KW1260
Monitor possible resolutions: 1024x768x60, 1024x768x70, 1024x768x75,
1024x768x77, 1152x900x66, 1152x900x76, 640x480x60
Current resolution setting: 640x480x60