Assigning X-colors

Assigning X-colors

Post by W.J. McEachra » Wed, 21 Jan 1998 04:00:00



On my ODT 3.0 system I often get loads of these errors when running binaries
from Skunkware 2.0. How/where do I accolocate these color settings?

Could not allocate color ScoBackground
Could not allocate color ScoForeground
Could not allocate color ScoForeground
Could not allocate color ScoBackground
Could not allocate color ScoForeground
Could not allocate color ScoForeground
Could not allocate color ScoForeground
Could not allocate color ScoForeground

--

Penny Fuels Inc.                  Tel: (905) 686-5200 ext. 24
339 Westney Road South #202       Fax: (905) 686-5205
Ajax ON L1S-7J6

 
 
 

Assigning X-colors

Post by Mike Hopki » Thu, 22 Jan 1998 04:00:00



>On my ODT 3.0 system I often get loads of these errors when running binaries
>from Skunkware 2.0. How/where do I accolocate these color settings?

>Could not allocate color ScoBackground
>Could not allocate color ScoForeground
>Could not allocate color ScoForeground
>Could not allocate color ScoBackground
>Could not allocate color ScoForeground
>Could not allocate color ScoForeground
>Could not allocate color ScoForeground
>Could not allocate color ScoForeground

(Its using a color system thats not implemented on ODT3)

either : find the X defaults files for the apps you're running
    usually in /usr/lib/X11/app-defaults/<name>
and replace the references to the above color names with real ones

reasonable replacements are
ScoBackground -> grey70
ScoForeground -> MidnightBlue

and restart the app

OR (generically easier)
add the following to (the end of)  /usr/lib/X11/rgb.txt

203 203 192             scoBackground
 11   0 113             scoForeground
255 240 248             scoTopShadow
255 206 137             scoActiveBackground
 43  45  49             scoActiveForeground
254 222 255             scoActiveTopShadow
172 186 204             scoAltBackground
  0   0 255             scoHighlight
(and restart your server)
--
- hops

Everything disclaimed (including disclaimer)

Mike Hopkirk ( hops )  |       Whenever possible steal code.
SCO Inc                |          Tom Duff. Bell Labs

 
 
 

Assigning X-colors

Post by Joe Durusa » Thu, 22 Jan 1998 04:00:00



> On my ODT 3.0 system I often get loads of these errors when running binaries
> from Skunkware 2.0. How/where do I accolocate these color settings?

> Could not allocate color ScoBackground
> Could not allocate color ScoForeground
> --

> Penny Fuels Inc.                  Tel: (905) 686-5200 ext. 24
> 339 Westney Road South #202       Fax: (905) 686-5205
> Ajax ON L1S-7J6

Try running xdpyinfo to see how many colors you colormap has.

This type of messge usually indicates that your X server cannot
get the hardware to display the number of colors it wants.  If
you have at least 16 colors in the colormap, the two you listed above
should have been allocated.

Speaking only for myself,

`               Joe Durusau

 
 
 

Assigning X-colors

Post by W.J. McEachra » Thu, 22 Jan 1998 04:00:00



> > On my ODT 3.0 system I often get loads of these errors when running binaries
> > from Skunkware 2.0. How/where do I accolocate these color settings?

> > Could not allocate color ScoBackground
> > Could not allocate color ScoForeground

Adding the appropriate entries to rgb.txt on the client solved the problem.
Thanks
--

Penny Fuels Inc.                  Tel: (905) 686-5200 ext. 24
339 Westney Road South #202       Fax: (905) 686-5205
Ajax ON L1S-7J6
 
 
 

Assigning X-colors

Post by Mike Hopki » Sat, 24 Jan 1998 04:00:00




>> On my ODT 3.0 system I often get loads of these errors when running binaries
>> from Skunkware 2.0. How/where do I accolocate these color settings?

>> Could not allocate color ScoBackground
>> Could not allocate color ScoForeground
>> --

>Try running xdpyinfo to see how many colors you colormap has.

Won't help

Quote:

>This type of messge usually indicates that your X server cannot
>get the hardware to display the number of colors it wants.  If
>you have at least 16 colors in the colormap, the two you listed above
>should have been allocated.

For color names that X has some cognition of this is generally true

In this case tho the X server has no idea what color the app is asking for
and consequently no way to map it to a RGB value.
--
- hops

Everything disclaimed (including disclaimer)

Mike Hopkirk ( hops )  |       Whenever possible steal code.
SCO Inc                |          Tom Duff. Bell Labs

 
 
 

1. SCSI ID Assigned But No Drive Letters Assigned *** SOLVED ***

Hi,
    I wanted to report a solution to the problem that I posed before.
The answer was staring me in the face. It was in setting the
bios in the Zeos Computer to disable "fast boot".
I did not have the doc on the computer and it was not obvious
of the significance of "fast boot".
   What fast boot did was to disable the floppy from the booting
operation. Previously, the only way that I could get the system
to boot on the floppy was to disable the scsi function in the bios.
So, that was a Catch 22, situation.  I think that that bios could
have been written in a better way with some help built in, at least.

                                                Mike

2. Apache 1.3.3 setup problems

3. Colors Colors Colors...

4. Problem cdrecord and SCSI-/mmc HELP

5. 15+bit color in X and color?

6. A PPTP VPN tunnel and a LAN

7. The Colors The Colors (under Red Hat 6.0)

8. Connecting linux to windows

9. FS - 16" Sun Color Monitors - $59.99 - 17" Sun Color Monitors $69.99

10. Color xterm has no color

11. colour (color) ls

12. Strange colors in X, erratic color blocks in console: Where do I start?

13. Epson Stylus Color 800: Problems with Color Printing