Changing the color depth

Folk'es,

I'm running CDE on Solaris 9 on an Ultra 60. My applications now have the problem of allocating the correct colours.

How/where can I change the colour depth so that they work again?

It worked fine while i was running Solaris 8 on the machine.

desperate,

thomas

[308 byte] By [kloebera] at [2007-11-26 22:42:11]
# 1

forgot to mention, these are they kind of error messages i get:X Error: Cannot allocate colormap entry for "black"

X Error: Cannot allocate colormap entry for "grey"

X Error: Cannot parse default background color specification.

X Error: Cannot allocate colormap entry for "orange"

X Error: Cannot allocate colormap entry for "grey66"

X Error: Cannot allocate colormap entry for "light slate blue"

thomas

kloebera at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 2

Guess you are using built-in video (M64 graphics accelerator).

You can use the m64config command to change the color depth, like

# m64config -depth 24

Log out of CDE, and log back in for the changes to take effect.

Word of caution, you'd probably need to lower your resolution, you'd be hard-pressed to go higher than 1024x678 without video performance suffering a bit.

Codename47a at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 3

> Guess you are using built-in video (M64 graphics

> accelerator).

> You can use the m64config command to change the color

> depth, like

thanx for the suggestion. but, no, I'm not using M64, I have FFB2+ graphics card. so m64config only gives me an error message:> m64config -propt

m64config: /dev/fbs/m640: No such file or directory

thomas

kloebera at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 4
Try the man pages for ffbconfig as well as for ffb.Perhaps there are some command switches for color depth.
rukbata at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 5
Rukbat,thanx for your suggestion. but that was the 1st thing i tried and ffbconfig has not option for setting the colour depth. i tried setting the visual mode 'Linear' which seems to help a bit. but then my whole display is very faint and not usable.thomas
kloebera at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 6
What's the output of # ffbconfig -propt
Codename47a at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 7

> ffbconfig -propt

OpenWindows Configuration for /dev/fbs/ffb0

OWconfig: machine

Video Mode: NONE

Default Visual: Non-Linear Normal Visual

Visual Ordering: Linear Visuals are last

Overlay Visuals are last

OpenGL Visual Expansion: enabled

Server Overlay Visuals: enabled

Extended Overlay: enabled

Underlay WIDs: 64 (not configurable)

Overlay WIDs: 4 (not configurable)

Gamma Correction Value: 2.220000

Gamma Correction Table: Available

and> ffbconfig -prconf

Hardware Configuration for /dev/fbs/ffb0

Type: double-buffered FFB2+ with Z-buffer

Board: rev 2 (Vertical)

PROM Information: @(#)ffb2p.fth 2.9 98/07/14

FBC: version 0x3241906d

DAC: Brooktree 9070, version 1 (Pac2)

3DRAM: Mitsubishi 130b, version 2

EDID Data: Available - EDID version 1 revision 1

Monitor Sense ID: 2 (Sun 36x29cm RGB color monitor)

Monitor possible resolutions: 1024x768x60, 1024x768x70, 1024x768x75,

1152x900x66, 1280x1024x60, 1280x1024x76, 640x480x60, 1280x1024x60c

Current resolution setting: 1280x1024x60

unfortunately it does not have an option for color depth (would have been too easy :(

kloebera at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 8

No it doesn't, but Video Mode in the output of ffbconfig -propt should not be equal to NONE, it should be equal to your screen's resolution.

I have an FB buffer, and this is what it looks like:

#fbconfig -propt

OpenWindows Configuration for /dev/fb

OWconfig: machine

Video Mode: 1280x1024x76

Depth: 24

Screen Information:

Doublewide: Enable

Doublehigh: Disable

Offset/Overlap: [0, 0]

Output Configuration: Direct

Fake8 Rendering: Disable

Gamma Correction: no

Codename47a at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 9

> No it doesn't, but Video Mode in the output of

> ffbconfig -propt should not be equal to NONE, it

> should be equal to your screen's resolution.

i did try that before but with no better results. the reason why it is/was set to NONE is because i set everything to default after playing with a few settings.

> I have an FB buffer, and this is what it looks like:

>

> #fbconfig -propt

>

> OpenWindows Configuration for /dev/fb

>

> OWconfig: machine

> Video Mode: 1280x1024x76

> Depth: 24

>

> Screen Information:

> Doublewide: Enable

> Doublehigh: Disable

> Offset/Overlap: [0, 0]

> Output Configuration: Direct

> Fake8 Rendering: Disable

> Gamma Correction: no

>

very strange, your output looks quite different from mine. what Solaris version/patches do you have?

thomas

kloebera at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 10

I found the cause of the problem. It has nothing to do with the FFB settings but the Xsun settings.

I changed the startup entry /usr/dt/config/Xservers from:0Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner

to:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -dev /dev/fbs/ffb0 defclass TrueColor defdepth 24

thomas

PS: I can't quite understand why these options are not settable via the desktop tools.

kloebera at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 11

Glad that you solved your problem.

Since you asked, I have an XVR-100 graphics accelerator (/dev/fb), in a Blade 1500 running Solaris 10 6/06. Right after initial install, I set the resolution, but not the depth, which showed as 24 right after install. The difference in outputs is probably due to having different graphics cards. By the output, I believe you have a Sun Expert3D or Elite3D buffer?

Codename47a at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...
# 12

> The difference in outputs is

> probably due to having different graphics cards. By

> the output, I believe you have a Sun Expert3D or

> Elite3D buffer?

no, I have a Creator 3D. it is quite an old machine which i happily used with Solaris 8. when i upgraded it to Solaris 9 i forgot to make the changes to the Xsun setup which i already had done for S8. but since it is so cryptic and well hidden, i couldn't remember, how and where i did it. (and i'm sure the next time i'll need it, i will have forgotten again).

as i said, i'm really surprised/annoyed that these kind of changes are not done through any of the Dekstop Control tools, where the obvious place would be...

thanx for your help and interest,

thomas

PS: at least one good thing came out of it: i now have a system which has all the latest S9 patches installed, incl new PROM and disk f/w :)

kloebera at 2007-7-10 11:57:29 > top of Java-index,General,Talk to the Sysop...